import type { Api } from "../../../api.js"; /** * The earlier turns of a chat, rendered for a Claude Code session that has * never seen them. * * Local Ask starts a fresh harness session on every CLI run — the harness can * only resume Claude Code by rerunning it, and a rerun cancels whatever tool * approval is in flight, which Claude Code then records as the user refusing * the tool. Continuity therefore comes from the chat history the API already * has, replayed into the first prompt. * * Best effort: a chat whose history cannot be read is answered without it * rather than not at all. */ export declare function loadChatHistoryPreamble(input: { api: Api; chatUuid: string; }): Promise; type HistoryMessage = { type: string; status?: string; parts: Array<{ type: string; }>; }; /** * Exported for tests. Takes the API's messages oldest-first and returns the * preamble, or `undefined` when there is nothing worth replaying. */ export declare function renderHistoryPreamble(messages: readonly HistoryMessage[]): string | undefined; export {}; //# sourceMappingURL=history.d.ts.map