/** * Helpers for decoding AG-UI custom event payloads — Phase 6b. * * `AgUiTransport.onA2UIEvent` historically forwarded the raw `event.value` * payload as an `ActionStep` directly to `runtime.actions.applyBatch`. * Phase 5's backend now also emits `syntro.element.mutation` envelopes * (mounts/patches/unmounts authored by the LLM via `mount_element` &c.), * which the SDK routes to `ElementInstanceStore.apply` instead. * * Discrimination is by the envelope's `type` field. Non-element payloads * (raw ActionStep, A2UI `createSurface` / `updateDataModel` envelopes * from any A2UI integration) fall through to the legacy path. */ import type { ElementMutation } from './types'; /** * Returns the mutations array if `payload` is a well-formed * `syntro.element.mutation` envelope, otherwise `null`. * * Validates only the discriminator + the structural shape needed to * route to the store. Per-mutation validation lives in the store / its * type handlers (defense in depth), so this stays small. */ export declare function decodeMutationEnvelope(payload: unknown): ElementMutation[] | null; //# sourceMappingURL=envelope.d.ts.map