/** * Shared state and methods for timing functions (debounce/throttle) */ export declare class TimingFunctionState any> { timeoutId: ReturnType | null; lastResult: ReturnType | undefined; pendingArgs: Parameters | null; pendingContext: any; clearPending(): void; setPending(args: Parameters, context: any): void; clearTimer(): void; setTimer(callback: () => void, delay: number): void; executePending(func: T): ReturnType | undefined; } /** * Creates cancel method for timing functions */ export declare function createCancelMethod any>(state: TimingFunctionState, onCancel?: () => void): () => void; /** * Creates flush method for timing functions */ export declare function createFlushMethod any>(state: TimingFunctionState, func: T): () => ReturnType | undefined; //# sourceMappingURL=createTimingFunction.d.ts.map