import type { Provider } from "@prestyj/ai";
import type { CompletedItem } from "./App.js";
import type { Theme } from "./theme/theme.js";
export interface TerminalHistoryPrinter {
    print(items: readonly CompletedItem[], context: TerminalHistoryContext, options?: {
        force?: boolean;
        write?: (data: string) => void;
        reason?: string;
    }): void;
    clear(): void;
    resetPrinted(): void;
    readonly printedIds: ReadonlySet<string>;
}
export interface TerminalHistoryPrinterOptions {
    stream?: NodeJS.WriteStream;
}
export interface TerminalHistoryContext {
    theme: Theme;
    columns: number;
    version: string;
    model: string;
    provider: Provider;
    cwd: string;
}
export declare function createTerminalHistoryPrinter({ stream, }?: TerminalHistoryPrinterOptions): TerminalHistoryPrinter;
export declare function serializeCompletedItemToTerminalHistory(item: CompletedItem, context: TerminalHistoryContext): string;
//# sourceMappingURL=terminal-history.d.ts.map