/** @jsxImportSource preact */ /** * @license * Copyright 2026 Steven Roussey * SPDX-License-Identifier: Apache-2.0 */ import type { JSX } from "preact"; import type { ChatEntry } from "../state"; /** * A conversation, and the box to add to it. * * The run asks for each message the same way it asks for anything else, so this * is a rendering of a human request rather than a channel of its own — what * makes it a conversation rather than a form is that the answers stay on * screen underneath the question. */ export declare function ChatTranscript({ entries, message, canAnswer, onSend, onEnd, }: { readonly entries: readonly ChatEntry[]; /** What the run called the thing it is asking for. */ readonly message: string; /** False while the CLI is not answering; the run cannot receive a reply. */ readonly canAnswer: boolean; readonly onSend: (text: string) => void; readonly onEnd: () => void; }): JSX.Element;