import { useDebouncedState } from './debounced-state';
export function useDebouncedValue(value, delay, maxWait) {
    const [debouncedValue, setDebouncedValue] = useDebouncedState(value, delay, maxWait);
    if (value !== debouncedValue) {
        setDebouncedValue(value);
    }
    return debouncedValue;
}
//# sourceMappingURL=debounced-value.js.map