import type { Dispatch, SetStateAction } from 'react'; /** * Hook to create a state with a debounced setter function. * * @param initialValue - the initial state value or the initial state generator function * @param delay - the number of milliseconds to delay the updater * @returns a state and debounced setter function * @public */ export declare function useDebouncedState(initialValue: S | (() => S), delay: number): [ S, Dispatch> & { flush: () => void; cancel: () => void; } ]; //# sourceMappingURL=useDebouncedState.d.ts.map