/** * Run a promise over and over again until you have the right result. Useful for polling. * * Use the enum to tell the function to retry or abort. The function will return the result (even if it is falsy) if it is not a retry or abort variant. * * @param callback The callback to run. * @param interval The interval to wait between each try. * @param maxTries The maximum number of tries to run the callback. If this is exceeded, the function will abort. * @returns The result of the callback. */ export declare function poll(callback: () => Promise, interval?: number, maxTries?: number): Promise; export declare enum PollStatus { Retry = 0, Abort = 1 }