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