import { type SessionEntry } from "../config/sessions.js"; import type { AgentEventPayload } from "../infra/agent-events.js"; import type { GatewaySessionRow } from "./session-utils.types.js"; type LifecycleEventLike = Pick & { data?: { phase?: unknown; startedAt?: unknown; endedAt?: unknown; aborted?: unknown; stopReason?: unknown; }; }; type LifecycleSessionShape = Pick; type PersistedLifecycleSessionShape = Pick; type GatewaySessionLifecycleSnapshot = Partial; export declare function deriveGatewaySessionLifecycleSnapshot(params: { session?: Partial | null; event: LifecycleEventLike; }): GatewaySessionLifecycleSnapshot; export declare function derivePersistedSessionLifecyclePatch(params: { entry?: Partial | null; event: LifecycleEventLike; }): Partial; export declare function persistGatewaySessionLifecycleEvent(params: { sessionKey: string; event: LifecycleEventLike; }): Promise; export {};