export interface IPromiseIntervalOptions { func: () => Promise; delay: number; immediate?: boolean; } export interface IPromiseIntervalHandle { stop(): Promise; pending(): Promise; } /** * Runs callback function f periodically. * The next call is queued only after the * promise returned by f is resolved. * * Returns a function that stops execution if invoked. */ export declare function setPromiseInterval({ func, delay, immediate, }: IPromiseIntervalOptions): IPromiseIntervalHandle;