/********************************************************************** * * @模块名称: debounce * * @模块用途: debounce * * @date: 2021/8/31 10:02 * * @版权所有: pgli * **********************************************************************/ import type { FunctionCallback } from "@gaopeng123/utils.ts-types"; declare type DebounceFunction = FunctionCallback; export declare type DebounceOptions = { leading?: boolean; notDebounce?: (...arg: T) => void; }; export declare const createDebounce: (fn: FunctionCallback, _wait: number, options: DebounceOptions, _timeout: any) => FunctionCallback; export declare const debounceOptions: (options?: DebounceOptions) => { leading: boolean; } & DebounceOptions; export declare const debounce: (fn: FunctionCallback, wait?: number, options?: DebounceOptions) => FunctionCallback; export {};