import type { ErrorType } from '../errors/utils.js'; type PollOptions = { emitOnBegin?: boolean | undefined; initialWaitTime?: ((data: data | void) => Promise) | undefined; interval: number; }; export type PollErrorType = ErrorType; export declare function poll(fn: ({ unpoll }: { unpoll: () => void; }) => Promise, { emitOnBegin, initialWaitTime, interval }: PollOptions): () => boolean; export {}; //# sourceMappingURL=poll.d.ts.map