import { z } from "zod"; import type { SessionUpdate } from "./updates.js"; /** A question an agent's message asks without stopping its turn; `id` is what the answer quotes. */ export declare const asyncQuestionSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; options: z.ZodArray; }, z.core.$strip>; export type AsyncQuestion = z.infer; /** * The message that answers async questions, as Codex Desktop writes it: the * agent reads it as the answer, and Desktop (and this app) shows it as one. */ export declare function asyncQuestionReply(answers: { question: AsyncQuestion; answer: string; }[]): string; export interface QuestionReply { /** The question's id, where the reply names it. */ id?: string; question: string; answer: string; } /** * The answers in a reply to async questions, as Codex Desktop writes one (and shows it: each question with * its answer). Anything that isn't exactly the envelope is not a reply. */ export declare function questionReplies(text: string): QuestionReply[] | undefined; /** What a message answers, by question id, if it is such a reply. */ export declare function answeredQuestions(text: string): [id: string, answer: string][]; /** Keeps attention separate from running: async questions do not stop the agent. */ export declare function updateAsyncQuestions(pending: AsyncQuestion[], update: SessionUpdate): AsyncQuestion[];