/** * Debounces a function, ensuring that it is only called once after a specified * time has elapsed since the last call. * * @param func The function to debounce. * @param wait The number of milliseconds to wait before invoking the function. * @returns A debounced function with the same type as the original function. * * @example * // Example usage: * function myFunction(value: string) { * console.log('Value:', value); * } * * const debouncedFunction = debounce(myFunction, 500); * * debouncedFunction('First call'); * debouncedFunction('Second call'); * debouncedFunction('Third call'); * */ export declare function debounce(func: T, wait?: number): T; type AnyFunction = (...args: any[]) => void; export {}; //# sourceMappingURL=debounce.d.ts.map