import type { DatabaseSync } from 'node:sqlite'; import type { HomeEvidence, HomeOpportunity, ObservationCommandRequest, ObservationState } from '@xopcai/gateway-contract'; import type { HomePrincipal } from './repository.js'; export declare class ObservationConflictError extends Error { } /** Durable observation state; model work is leased and budgeted by HomeIntelligenceHost. */ export declare class HomeObservation { private readonly db; private readonly principal; private readonly canRead; private readonly repository; constructor(db: DatabaseSync, principal: HomePrincipal, canRead: (conversationId: string) => boolean); private readable; private session; private topic; private bump; private entry; command(input: ObservationCommandRequest, now?: number): ObservationState; /** Notifications are hints: authoritative transcript rows provide crash recovery. */ collect(now?: number): boolean; private hasObservableWorkHistory; state(topicIds?: readonly string[]): ObservationState; context(now: number): { revision: number; evidence: HomeEvidence[]; feedback: Array<{ topicId: string; text: string; scope: string; projectId?: string; }>; understanding: Array<{ topicId: string; summary: string; projectId?: string; }>; }; analyzed(revision: number): void; recordAnalysis(generationId: string, opportunities: HomeOpportunity[], now: number): void; topicFor(opportunity: HomeOpportunity): string | undefined; trialFeedback(topicId: string): string[]; recordTrial(topicId: string, opportunityId: string, taskId: string, now: number): void; }