export type DebounceOptionsType = { leading?: boolean; maxWait?: number; trailing?: boolean; }; export type DebouncedFunctionType any> = { (...args: Parameters): ReturnType | undefined; cancel: () => void; flush: () => ReturnType | undefined; pending: () => boolean; }; export declare function debounce any>(func: T, wait: number, options?: DebounceOptionsType): DebouncedFunctionType;