export declare const LIFECYCLE_EVENTS: readonly ["session-start", "user-prompt", "pre-tool-use", "post-tool-use", "pre-compact", "session-end"]; export type LifecycleEventKind = (typeof LIFECYCLE_EVENTS)[number]; export declare const OBSERVATION_CATEGORIES: readonly ["files-read", "files-written", "file-search", "tool-calls", "git-changes", "tasks", "plan-changes", "errors", "error-resolution", "iteration-loop", "decisions", "constraints", "rejected-approaches", "user-prompts", "intent", "goal", "role", "blocked-on", "rules", "skills-invoked", "subagents-spawned", "env-changes", "cwd-changes", "session-settings", "external-refs", "web-fetch", "searches", "memories-stored", "compaction-snapshots", "mcp-calls", "agent-findings", "cost-telemetry", "lifecycle-raw"]; export type ObservationCategory = (typeof OBSERVATION_CATEGORIES)[number]; export interface Observation { id: string; projectId: string; sessionId: string | null; source: LifecycleEventKind; category?: ObservationCategory; payloadJson: string; importance: number; createdAt: number; } export interface ObservationRow { id: string; project_id: string; session_id: string | null; source: string; category: string | null; payload_json: string; importance: number; created_at: number; } export interface ObservationStore { insert(obs: Observation): void; listRecent(projectId: string, limit: number): Observation[]; listBySession(sessionId: string, limit: number): Observation[]; countByProject(projectId: string): number; journalMode(): string; } export declare class MemoryObservationStore implements ObservationStore { rows: Observation[]; insert(row: Observation): void; listRecent(projectId: string, limit: number): Observation[]; listBySession(sessionId: string, limit: number): Observation[]; countByProject(projectId: string): number; journalMode(): string; } export declare function newObservationId(): string; //# sourceMappingURL=observation-contract.d.ts.map