/** * Pure builder for the `StateManager` persist-failure event — a write the runtime lost, which surfaced * only as a throw out of `set()` (no queryable, first-class record) and risks silent position-state * loss. Pure `(key, error) => EmittableEvent`; the manager emits it through `emitEvent`'s guard before * rethrowing, so telemetry can never disturb the failing write. The thrown error rides the event's * `error` slot (exception semconv + `recordException` on the active span). Identity (`senpi.strategy.*`) * is stamped at emit time from the async-context bag, as for the sibling failure events. */ import { EVENT_NAME } from "../utils/event-catalog.js"; import type { EmittableEvent } from "../actions/event-derivation.js"; /** A `StateManager` write (`set` → atomic temp+rename) failed to persist the given key. */ export declare function buildStatePersistFailedEvent(key: string, error: unknown): EmittableEvent; //# sourceMappingURL=state-events.d.ts.map