import { useState } from 'react';
import { useDebouncedCallback } from '../useDebouncedCallback/index.js';
export function useDebouncedState(initialState, delay, maxWait = 0) {
    const [state, setState] = useState(initialState);
    return [state, useDebouncedCallback(setState, [], delay, maxWait)];
}
