/** * Debounce Utility * * Creates a debounced version of a function that delays execution * until after a specified wait time has elapsed since the last call. */ type AnyFunction = (...args: unknown[]) => void; interface DebouncedFunction { (...args: Parameters): void; cancel: () => void; flush: () => void; pause: () => void; resume: () => void; isPaused: () => boolean; } /** * Creates a debounced function that delays invoking func until after * wait milliseconds have elapsed since the last time the debounced * function was invoked. * * @param func - The function to debounce * @param wait - The number of milliseconds to delay * @returns A debounced version of the function */ export declare function debounce(func: T, wait: number): DebouncedFunction; export {};