import type { Api } from "../../../api.js"; export type AskSessionOptions = { api: Api; message?: string; continueChat: boolean; agentUuid?: string; chatUuid?: string; dir: string; }; /** * True when the chat is already on the server. A saved `--continue` uuid can * point at nothing (Esc before the first turn, wiped local DB, different API), * and that must become a create — not chatNotFound on the first message. * * Careful with the false case: it means "not readable", which covers a chat * that was deleted as well as one that never existed. Deletion is soft, so * the row keeps the uuid and creating it again fails on the primary key — * see where `--continue` resolves its uuid. */ export declare function doesChatExist(api: Api, chatUuid: string): Promise; /** * Same tree grammar as the palette: * ◇ * ■ reply… * ◆ * Empty Enter or /exit leaves to the parent palette. */ export declare function runAskSession(options: AskSessionOptions): Promise<"palette" | "exit">; export declare function runAskPrint(input: { api: Api; message: string; agentUuid?: string; chatUuid?: string; dir: string; }): Promise; //# sourceMappingURL=run.d.ts.map