import { Catalog, type ComponentApi, type SurfaceModel } from '@a2ui/web_core'; import type { AIUIDocument } from '../AIComponents/GenerativeUI/AIUIDocument'; import type { A2UIEngine } from './A2UIRenderer'; type Entry = ComponentApi; /** * The catalogs a reply's surfaces are made with: the basic catalog with the app's components, * under the renderer's catalog id (and the default's former id, for the default) and under the * basic catalog's own, so a surface naming any of them shows them. Links open the way the host allows. */ export declare const catalogsOf: (engine: A2UIEngine) => Catalog[]; /** * The surfaces of one reply: its own processor, fed the messages of its document as they * complete. Messages that changed, rather than grew, start its surfaces again. */ export declare class A2UIReplyState { isStreaming: boolean; private applied; private readonly engine; private listeners; private readonly messageId; private processor; private reported; private shown; private showedNothing; private stopWatching; constructor(engine: A2UIEngine, messageId: string); /** The reply's surfaces, in the order the agent made them. */ surfaces: () => SurfaceModel[]; subscribe: (listener: () => void) => () => void; /** Applies the messages of `source` not applied yet. */ update(source: string, isStreaming: boolean): void; dispose(): void; private feed; private oneAtATime; private makeProcessor; private act; private secretContextKeys; private buttonText; private watch; private refresh; private report; } /** The surfaces of a reply, made with its messages so far the first time they are asked for. */ export declare const replyOf: (engine: A2UIEngine, document: AIUIDocument, messageId: string) => A2UIReplyState; /** Whether a finished reply's A2UI made no surface, so its text shows instead. */ export declare const showsNothing: (engine: A2UIEngine, document: AIUIDocument, messageId: string) => boolean; /** A reply's surfaces, following its document as the agent writes it. */ export declare const A2UIReplyContent: ({ document, engine, messageId, }: { document: AIUIDocument; engine: A2UIEngine; messageId: string; }) => import("react/jsx-runtime").JSX.Element | null; /** What the renderer's entry reaches once the runtime loads. */ export type A2UIRuntime = { A2UIReplyContent: typeof A2UIReplyContent; showsNothing: typeof showsNothing; }; export {}; //# sourceMappingURL=runtime.d.ts.map