export type FunctionControlOptions = { leading?: boolean; trailing?: boolean; maxWait?: number; }; declare function debounce(func: (...args: T[]) => S, wait: number, options?: FunctionControlOptions): (...args: T[]) => S; export default debounce;