import { type Dispatch, type SetStateAction } from 'react'; /** State, setter, and reset action returned by {@link useResetState}. @public */ export type UseResetStateResult = readonly [ state: S, setState: Dispatch>, resetState: () => void ]; /** * Manages state with a stable action that restores its first resolved value. * * The snapshot is taken from the first state initialization and is not changed * when a later render receives a different initializer. The setter is safe to * call from delayed work after unmount. * * @param initialState - Initial state or a lazy initializer. * @returns State, a state setter, and a stable reset action. * @public */ export declare function useResetState(initialState: S | (() => S)): UseResetStateResult;