/** * Debounces a rapidly changing value, only updating after the specified delay * has passed without the value changing. * * @template T - The type of the value being debounced * @param value - The value to debounce * @param delay - The delay in milliseconds (default: 300ms) * @returns The debounced value * * @example * ```tsx * function SearchComponent() { * const [search, setSearch] = useState(''); * const debouncedSearch = useDebounce(search, 500); * * useEffect(() => { * // Only triggers 500ms after user stops typing * fetchResults(debouncedSearch); * }, [debouncedSearch]); * * return setSearch(e.target.value)} />; * } * ``` */ export declare function useDebounce(value: T, delay?: number): T; //# sourceMappingURL=useDebounce.d.ts.map