interface IDebounceOptions {
    leading?: boolean;
    maxWait?: number;
    trailing?: boolean;
}
type IThrottleOptions = IDebounceOptions;
declare function throttle(func: any, wait: number, options?: IThrottleOptions): {
    (): any;
    cancel: () => void;
    flush: () => any;
};
declare function debounce(func: any, wait: number, options?: IDebounceOptions): {
    (): any;
    cancel: () => void;
    flush: () => any;
};
export { debounce, throttle, };
