/** * Hook that debounces a value * * @template T - The type of the value * @param value - The value to debounce * @param delay - Delay in milliseconds (default: 500) * @returns The debounced value * * @example * ```tsx * const SearchInput = () => { * const [search, setSearch] = useState(''); * const debouncedSearch = useDebounce(search, 300); * * useEffect(() => { * // API call with debouncedSearch * }, [debouncedSearch]); * * return setSearch(e.target.value)} />; * }; * ``` */ export declare function useDebounce(value: T, delay?: number): T; //# sourceMappingURL=useDebounce.d.ts.map