import { StoredCommand } from '../types/storage'; import { CommandSegment } from '../types/command-registry'; export interface CommandHistory { storedCommands: StoredCommand[]; position: number | null; } export interface CommandHistoryActions { addStoredCommand: (segments: CommandSegment[]) => Promise; getStoredCommands: () => Promise; navigateHistory: (direction: 'up' | 'down') => Promise<{ segments: CommandSegment[] | null; position: number | null; }>; clear: () => Promise; } export declare function createStoredCommand(segments: CommandSegment[]): StoredCommand; export interface CommandHistoryHook { history: CommandHistory; addStoredCommand: (segments: CommandSegment[]) => Promise; getStoredCommands: () => Promise; navigateHistory: (direction: 'up' | 'down') => Promise<{ segments: CommandSegment[] | null; position: number | null; }>; clear: () => Promise; } export declare function useCommandHistory(): CommandHistoryHook;