import type { AgentContextApplicationStore, AgentContextApplicationStorage, AgentContextApplicationQuery, AgentContextApplicationPage, AgentContextApplicationRecord, AgentContextRequest, AgentContextSelectionHistory, AgentContextOutcomeEvidence, AgentContextOutcomeUpdate } from './context-director.js'; import type { AgentContextCandidate, AgentContextOutcomeStatus } from './types.js'; /** 应用历史独立存储;页面和任务读取使用索引,旧 JSON 只在首次打开时导入。 */ export declare class SqliteAgentContextApplicationStore implements AgentContextApplicationStore { private readonly file; private readonly legacy?; private migrationSource?; constructor(file: string, legacy?: AgentContextApplicationStorage | undefined); private database; private insert; private values; list(candidateId?: string): Promise; query(query: AgentContextApplicationQuery): Promise; selectionHistory(candidates: readonly AgentContextCandidate[], request: AgentContextRequest): Promise; append(record: AgentContextApplicationRecord): Promise; appendMany(records: readonly AgentContextApplicationRecord[]): Promise; private mutate; setOutcome(id: string, outcome: AgentContextOutcomeStatus, projectId?: string, evidence?: AgentContextOutcomeEvidence): Promise; markAppliedEventDispatched(id: string, at?: string): Promise; markOutcomeEventDispatched(id: string, revision: number, at?: string): Promise; markEventsDispatched(events: readonly { readonly applicationId: string; readonly outcomeRevision?: number; }[], at?: string): Promise; } //# sourceMappingURL=context-application-store.d.ts.map