export type DebounceCallback = ((...args: Args) => unknown) & { clear: () => void; }; /** * Debounce a function. Wraps a function, ensuring it's only called after it * hasn't been called for a certain amount of time. * @param callback Function to call * @param delayArg Delay in milliseconds, or a function that returns the delay */ export declare function debounce(callback: (...args: Args) => unknown, delayArg: number | ((...args: Args) => number)): DebounceCallback; //# sourceMappingURL=debounce.d.ts.map