/** * Lifecycle hooks — wired into OpenClaw's session_start / session_end events. */ import type { ContextGraph, Session } from "@clawtrail/context-graph"; export interface OpenClawSessionContext { sessionKey: string; initialMessage?: string; agentId?: string; /** Store/retrieve adapter state across hook invocations */ set(key: string, value: unknown): void; get(key: string): unknown; } export interface LifecycleEvent { type: string; [key: string]: unknown; } /** * Register session lifecycle hooks. * In a real OpenClaw integration, `api.on(...)` is called. * Here we export the handlers so the adapter can wire them in. */ export declare function createLifecycleHandlers(cg: ContextGraph, config: { agentId?: string; policyPath?: string; }): { onSessionStart(ctx: OpenClawSessionContext): Promise; onSessionEnd(ctx: OpenClawSessionContext): Promise; }; //# sourceMappingURL=lifecycle.d.ts.map