import { GenericFunction } from '../types'; export interface DebounceOptions { leading?: boolean; trailing?: boolean; maxWait?: number; } /** * Creates a debounced function that delays invoking the provided function until after * the specified wait time has elapsed since the last time it was invoked. * * @param func - The function to debounce * @param wait - The number of milliseconds to delay * @param options - Configuration options * @returns A debounced version of the provided function */ export declare function debounce(func: T, wait?: number, options?: DebounceOptions): ((...args: Parameters) => void) & { cancel: () => void; flush: () => ReturnType | undefined; }; export default debounce;