import type { ReactSetState, UseSafeStateOptions } from "../use-safe-state/index.cjs"; import type { Gettable } from "../utils/basic.cjs"; export interface UseResetStateOptions extends UseSafeStateOptions { } /** * A React Hook similar to [React.useState](https://react.dev/reference/react/useState), but it additionally provides a `reset` function to reset the state back to the initial value. */ export declare function useResetState(initialState: Gettable, options?: UseResetStateOptions): readonly [T, ReactSetState, (initialState?: T) => void, T]; export declare function useResetState(): readonly [ T | undefined, ReactSetState, (initialState?: T) => void, T | undefined ];