/** * 防抖搜索 Hook */ export interface UseDebounceSearchOptions { /** * 关键词 */ keyword: string; /** * 防抖时间(毫秒) */ debounceTime: number; /** * 搜索触发回调 */ onSearch?: (keyword: string) => void; /** * 是否启用防抖 */ enabled?: boolean; /** * 上次搜索的关键词(用于去重) */ lastSearchKeyword?: string; /** * 是否跳过防抖触发(用于手动选择场景) */ skipDebounce?: boolean; } export interface UseDebounceSearchResult { /** * 防抖后的关键词 */ debouncedKeyword: string; } /** * 防抖搜索 Hook * 用于实时搜索模式的防抖处理 */ export declare const useDebounceSearch: (options: UseDebounceSearchOptions) => UseDebounceSearchResult;