import type { Dispatch, DispatchWithoutAction, Reducer, ReducerState, ReducerStateWithoutAction, ReducerWithoutAction } from 'react'; /** * Hook to create a reduced state with a debounced `dispatch()` function. * * @param reducer - the reducer function * @param initialArg - the initial state value or the argument passed to the * initial state generator function * @param init - the initial state generator function * @param delay - the number of milliseconds to delay the updater * @returns a state and debounced `dispatch()` function * @public */ export declare function useDebouncedReducer>(reducer: R, initialArg: S, init: undefined, delay: number): [ ReducerStateWithoutAction, DispatchWithoutAction & { flush: () => void; cancel: () => void; } ]; /** * Hook to create a reduced state with a debounced `dispatch()` function. * * @param reducer - the reducer function * @param initialArg - the initial state value or the argument passed to the * initial state generator function * @param init - the initial state generator function * @param delay - the number of milliseconds to delay the updater * @returns a state and debounced `dispatch()` function * @public */ export declare function useDebouncedReducer, I>(reducer: R, initialArg: I, init: (arg: I) => ReducerStateWithoutAction, delay: number): [ ReducerStateWithoutAction, DispatchWithoutAction & { flush: () => void; cancel: () => void; } ]; /** * Hook to create a reduced state with a debounced `dispatch()` function. * * @param reducer - the reducer function * @param initialArg - the initial state value or the argument passed to the * initial state generator function * @param init - the initial state generator function * @param delay - the number of milliseconds to delay the updater * @returns a state and debounced `dispatch()` function * @public */ export declare function useDebouncedReducer, I>(reducer: R, initialArg: I, init: (arg: I) => ReducerState, delay: number): [ ReducerState, Dispatch & { flush: () => void; cancel: () => void; } ]; //# sourceMappingURL=useDebouncedReducer.d.ts.map