import type { Ref } from '@stacksjs/stx'; /** * Auto-tracked ref history with undo/redo. * Automatically commits a snapshot on every change to the source ref. * * @param source - The reactive source to track * @param options - Capacity limit, deep watching, and clone behavior */ export declare function useRefHistory(source: Ref, options?: UseRefHistoryOptions): UseRefHistoryReturn; export declare interface UseRefHistoryRecord { snapshot: T timestamp: number } export declare interface UseRefHistoryOptions { capacity?: number deep?: boolean clone?: boolean } export declare interface UseRefHistoryReturn { history: Ref[]> commit: () => void undo: () => void redo: () => void canUndo: Ref canRedo: Ref clear: () => void last: Ref> }