export declare function debounce(fn: (...args: T[]) => void, threshold: number, leading?: boolean): (...args: T[]) => void;