import type { UseManualStateHistoryOptions, UseManualStateHistoryReturns } from "../use-manual-state-history/index.cjs"; import type { Pausable } from "../use-pausable/index.cjs"; export interface UseStateHistoryOptions extends UseManualStateHistoryOptions { deep?: boolean; } export interface UseStateHistoryReturns extends UseManualStateHistoryReturns, Pausable<[commit?: boolean], [commit?: boolean]> { } /** * A React Hook that track and manipulate the history of a state automatically. */ export declare function useStateHistory(source: Raw, options?: UseStateHistoryOptions): UseStateHistoryReturns;