@vibe-kit/grok-cli
Version:
An open-source AI agent that brings the power of Grok directly into your terminal.
10 lines (9 loc) • 367 B
TypeScript
export interface InputHistoryHook {
addToHistory: (input: string) => void;
navigateHistory: (direction: "up" | "down") => string | null;
getCurrentHistoryIndex: () => number;
resetHistory: () => void;
isNavigatingHistory: () => boolean;
setOriginalInput: (input: string) => void;
}
export declare function useInputHistory(): InputHistoryHook;