import type{LyraWidgetDocument}from'../../components/conversation/widget-renderer/resolve.js';import{type ProviderSnapshotLimits}from'../snapshot.js';export interface A2UiLikeAction{id:string;payload?:unknown;}export interface A2UiLikeComponent{id:string;type:string;props?:Record;text?:string;children?:string[];action?:A2UiLikeAction;}export interface A2UiLikeSurface{surfaceId?:string;rootId:string;components:A2UiLikeComponent[];data?:unknown;}export type A2UiTypeMap=Readonly>;export interface A2UiAdapterLimits extends ProviderSnapshotLimits{maxComponents:number;maxDepth:number;maxOutputNodes:number;maxChildrenPerComponent:number;}export declare const DEFAULT_A2UI_ADAPTER_LIMITS:Readonly; /** * Maps a structurally compatible A2UI component graph into Lyra's versioned, allowlisted widget * document. Input, child-cardinality, traversal, and output budgets fail closed as `null`. */ export declare function adaptA2UiSurface(surface:unknown,typeMap:unknown,limits?:Partial):LyraWidgetDocument|null;