import type { Dispatch, DispatchWithoutAction } from 'react'; /** * Hook to debounce the state dispatcher function returned by hooks like `useState()` and `useReducer()`. * * @param pair the state value and dispatcher function pair * @param delay the number of milliseconds to delay the dispatcher * @returns a state value and debounced dispatcher pair * @public */ export declare function useDebouncedUpdates(pair: [state: S, dispatch: DispatchWithoutAction], delay: number): [ S, DispatchWithoutAction & { flush: () => void; cancel: () => void; } ]; /** * Hook to debounce the state dispatcher function returned by hooks like `useState()` and `useReducer()`. * * @param pair the state value and dispatcher function pair * @param delay the number of milliseconds to delay the dispatcher * @returns a state value and debounced dispatcher pair * @public */ export declare function useDebouncedUpdates(pair: [state: S, dispatch: Dispatch], delay: number): [ S, Dispatch & { flush: () => void; cancel: () => void; } ]; //# sourceMappingURL=useDebouncedUpdates.d.ts.map