import { MonoTypeOperatorFunction } from 'rxjs'; import { PollConfig } from './types/config.type'; import { Nil } from './types/utils.type'; /** * ### RxJS Poll Operator * * Automatically re-executes a source observable after completion, \ * using delay strategies and retry mechanisms for handling errors. * * #### Example * * ```ts * import { poll } from 'rxjs-poll'; * import { takeWhile } from 'rxjs'; * * request$ * .pipe( * poll(), * takeWhile(({ status }) => status !== 'done', true) * ) * .subscribe(); * ``` * * @param config - {@link PollConfig} object used for configuration * @returns Function that returns an Observable handling resubscription \ * to the source on complete or error */ export declare function poll(config?: PollConfig | Nil): MonoTypeOperatorFunction; //# sourceMappingURL=poll.d.ts.map