/** * Platform-event handler — renders `platform.*` lifecycle events. * * Platform events (core `createPlatformEvent`) carry their information in * `payload`, not `data`, so the ADR-097 domain-message path never sees them. * This handler renders them in the same prose-pipeline manner: the event * type itself is the messageId (`platform.save_completed`, * `platform.undo_failed`, ...) and params bind from the payload. lang-en-us * registers the standard texts; stories override by registering the same id. * * Events with no registered message render nothing — request-phase events * (`platform.save_requested`, ...) are intentionally silent by default. * * Public interface: `handlePlatformEvent`. * Owner context: `@sharpee/engine` — internal prose pipeline. */ import type { ITextBlock } from '@sharpee/text-blocks'; import type { ISemanticEvent } from '@sharpee/core'; import type { HandlerContext } from './types'; /** * Render a `platform.*` event via the message registered under its event * type. Returns [] when no message is registered (silent by design). */ export declare function handlePlatformEvent(event: ISemanticEvent, context: HandlerContext): ITextBlock[]; //# sourceMappingURL=platform.d.ts.map