import type { ErrorType } from "../types/errors.js"; export declare function wait(time: number): Promise; type PollOptions = { emitOnBegin?: boolean | undefined; initialWaitTime?: ((data: data | void) => Promise) | undefined; interval: number; }; export type PollErrorType = ErrorType; /** * @description Polls a function at a specified interval. */ export declare function poll(fn: ({ unpoll }: { unpoll: () => void; }) => Promise, { emitOnBegin, initialWaitTime, interval }: PollOptions): () => boolean; export {}; //# sourceMappingURL=poll.d.ts.map