export interface ThrottleOptions { leading?: boolean; trailing?: boolean; } export interface ThrottledFunction any> { (...args: Parameters): void; cancel(): void; } export declare function throttle any>(func: F, delay: number, { trailing }?: ThrottleOptions): ThrottledFunction;