interface Delay { isPending: boolean; cancel: VoidFunction; delay: (wait: number, ...args: Parameters) => void; } export type DelayedFunc = ((...args: Parameters) => void) & AsObject & Delay; export declare function delayed(fn: T, wait: number): DelayedFunc; export declare namespace delayed { type Func = DelayedFunc; } export {};