declare type Debounce = <T extends (...args: any[]) => any>(func: T, wait: number) => (...args: Parameters<T>) => ReturnType<T> extends Promise<any> ? ReturnType<T> : Promise<ReturnType<T>>;
export declare const debounce: Debounce;
export {};
