export type ComponentId = string; export type SurfaceId = string; export declare const LOCAL_A2UI_CATALOG_ID = "https://agent-runtime.alipay.com/a2ui/catalogs/runtime/v0.9"; export declare const A2UI_BASIC_CATALOG_ID = "https://a2ui.org/specification/v0_9/catalogs/basic/catalog.json"; export declare const JINNI_STANDARD_CATALOG_ID = "https://a2ui.dev/specification/v0_9/standard_catalog.json"; export type JsonPrimitive = string | number | boolean | null; export type JsonData = JsonPrimitive | JsonData[] | { [key: string]: JsonData; }; export type JsonValue = JsonData; export type JsonObject = { [key: string]: JsonValue; }; export type JsonSchemaObject = Record; export type DataBinding = { path: string; }; export type A2UIDataBinding = DataBinding; export type DynamicValue = JsonData | DataBinding | DynamicValue[]; export type EventAction = { event: { name: string; context?: Record; 'x2-user-message'?: string | DataBinding; }; }; export type LocalDataSetAction = { local: { name: 'data.set'; path: string; value: DynamicValue; }; }; export type A2UIAction = EventAction | LocalDataSetAction; export type ChildList = ComponentId[] | { componentId: ComponentId; path: string; }; export type ComponentDef = { id: ComponentId; component: string; child?: ComponentId; children?: ChildList; action?: A2UIAction; [key: string]: unknown; }; export type A2UIComponent = ComponentDef; export type CreateSurfaceInstruction = { createSurface: { surfaceId: SurfaceId; catalogId?: string; theme?: Record; 'x2-scene'?: string; }; }; export type UpdateComponentsInstruction = { updateComponents: { surfaceId: SurfaceId; components: ComponentDef[]; }; }; export type UpdateDataModelInstruction = { updateDataModel: { surfaceId: SurfaceId; path: string; value: unknown; }; }; export type DeleteSurfaceInstruction = { deleteSurface: { surfaceId: SurfaceId; }; }; export type X2DeleteComponentInstruction = { x2DeleteComponent: { surfaceId: SurfaceId; componentId: ComponentId; }; }; export type A2UIInstruction = CreateSurfaceInstruction | UpdateComponentsInstruction | UpdateDataModelInstruction | DeleteSurfaceInstruction | X2DeleteComponentInstruction; export type A2UIMessage = { version: string; datas: A2UIInstruction[]; }; export type A2UIProtocol = A2UIMessage[]; //# sourceMappingURL=protocol.d.ts.map