/** * Returns a value that lags `input` by `delayMs`. Each new `input` * resets the timer; the returned value updates once `input` has been * stable for `delayMs` ms. * * Companion to `useDebouncedCallback` — use this when you want the * debounced *value* (to drive a derived effect, query, or render), * and use the callback hook when you want the debounced *action*. * * @example * const [query, setQuery] = useState(''); * const debouncedQuery = useDebouncedValue(query, 250); * useEffect(() => { void search(debouncedQuery); }, [debouncedQuery]); */ export declare function useDebouncedValue(input: T, delayMs: number): T; //# sourceMappingURL=use-debounced-value.d.ts.map