export interface DebouncedFunction any> { (context: ThisParameterType, ...args: Parameters): void; cancel: () => void; } export declare function debounce) => any>(fn: F, waitMs?: number): DebouncedFunction;