export interface ITask { (): T; } export declare class Delayer { defaultDelay: number; private timeout; private completionPromise; private onSuccess; private task; constructor(defaultDelay: number); trigger(task: ITask, delay?: number): Promise; forceDelivery(): T | undefined; isTriggered(): boolean; cancel(): void; private cancelTimeout; }