interface DebounceOptions { /** 是否在延迟开始前调用函数(立即执行) */ leading?: boolean; /** 是否在延迟结束后调用函数 */ trailing?: boolean; /** 最大等待时间(毫秒) */ maxWait?: number; } /** * 高级防抖函数 * @param func 需要防抖的函数 * @param wait 等待时间(毫秒) * @param options 配置选项 * @returns 防抖处理后的函数(带取消功能) */ export declare function useDebounce any>(func: T, wait: number, options?: DebounceOptions): { (...args: Parameters): void; cancel: () => void; flush: () => void; }; export default useDebounce;