UNPKG

@nanocollective/nanocoder

Version:

A local-first CLI coding agent that brings the power of agentic coding tools like Claude Code and Gemini CLI to local models or controlled APIs like OpenRouter

22 lines 764 B
import type { InputState } from './types/hooks.js'; export declare class PromptHistory { private history; private currentIndex; private readonly historyFile; private savePromise; constructor(historyFile?: string); loadHistory(): Promise<void>; private migrateStringArrayToInputState; saveHistory(): Promise<void>; addPrompt(inputState: InputState): void; addPrompt(prompt: string): void; getPrevious(): InputState | null; getNext(): InputState | null; getPreviousString(): string | null; getNextString(): string | null; resetIndex(): void; getHistory(): InputState[]; getHistoryStrings(): string[]; } export declare const promptHistory: PromptHistory; //# sourceMappingURL=prompt-history.d.ts.map