export declare function debounce(fn: Function, wait?: number, immediate?: boolean): { (): void; cancel(): void; }; export type ThrottledFunction any> = (...args: Parameters) => ReturnType; export declare function throttle any>(func: T, ms: number): ThrottledFunction;