/** * Action element handler — dispatches an ActionStep through * `ActionEngine.applyBatch`. * * The `content` field of an action `MountedElement` carries the action's * params; the executor `kind` comes from the template (which the SDK * doesn't have locally yet — for v1 the template's `kind` is encoded * into `content.__kind`, set by the backend tool). When proper * template loading lands on the SDK side, this handler resolves the * kind from the loaded template instead. * * **Imperative actions never re-fire on boot.** The `lifecycle` field * here is `imperative` — `ElementInstanceStore` skips boot rehydrate * for imperative instances with `state === 'applied'`. The backend * record exists for audit; replaying a scroll/navigate on every page * load would be visibly wrong. * * Stateful actions (e.g. `content:insertHtml`, `content:setText`, * `content:addClass` once Phase 7's renderer lands) ARE re-applied on * boot. v1 supports the imperative shape; stateful action handling * waits on the Portable Text renderer. */ import type { ElementHandlerContext, ElementTypeHandler, ValidateResult } from './ElementTypeHandler'; import type { MountedElement } from './types'; export declare class ActionHandler implements ElementTypeHandler { readonly typeName: "action"; readonly lifecycle: "imperative"; validate(instance: MountedElement, _ctx: ElementHandlerContext): ValidateResult; mount(instance: MountedElement, ctx: ElementHandlerContext): Promise; patch(_instance: MountedElement, _ctx: ElementHandlerContext): Promise; unmount(_instance: MountedElement, _ctx: ElementHandlerContext): Promise; private _actionFromInstance; } //# sourceMappingURL=ActionHandler.d.ts.map