import { type WikiPageIndexRecord } from '../cases/wiki-page-index.js'; import { resolveMemoryEvolution } from './evolution-engine.js'; import { getChannelSummary, upsertChannelSummary } from './channel-summary-store.js'; import { type SearchHitDiagnostics } from '../search/search-quality.js'; import type { MemoryAgentBootstrap, MemoryAuditAck, MemoryEdge, MemoryRecord, MemoryScopeRef, ProfileSnapshot, PublicIngestMemoryInput, PublicSaveMemoryInput, RecallBundle, IngestConversationInput, ExtractedMemoryUnit, IngestConversationResult, RecallMemoryOptions } from './types.js'; import { type TrustedMemoryWriteOptions } from './provenance.js'; type SaveMemoryInput = PublicSaveMemoryInput; type IngestMemoryInput = PublicIngestMemoryInput; export interface FusedHit { source_type: 'decision' | 'wiki_page'; source_id: string; record: MemoryRecord | WikiPageIndexRecord; fused_rank_score: number; page_type?: WikiPageIndexRecord['page_type']; case_id?: string | null; retrieval_diagnostics?: SearchHitDiagnostics; } export declare const LEXICAL_STOPWORDS: Set; export declare function getLexicalQueryTokens(query: string): string[]; export declare function loadEdgesForIds(ids: string[]): Promise; type SaveMemoryResult = { success: boolean; id: string; saved_decision_id?: string; timeline_event_id?: string | null; timeline_event_ids?: string[]; }; export declare function saveMemory(input: SaveMemoryInput): Promise; export declare function saveMemoryWithTrustedProvenance(input: SaveMemoryInput, options: TrustedMemoryWriteOptions): Promise; export declare function buildProfile(scopes: MemoryScopeRef[]): Promise; export declare function recallMemory(query: string, options?: RecallMemoryOptions): Promise; export declare function ingestMemory(input: IngestMemoryInput): Promise<{ success: boolean; id: string; }>; export declare function ingestWithTrustedProvenance(input: IngestMemoryInput, options: TrustedMemoryWriteOptions): Promise<{ success: boolean; id: string; }>; export declare function evolveMemory(input: Parameters[0]): Promise; export declare function buildMemoryBootstrap(params: { scopes: MemoryScopeRef[]; channelKey?: string; currentGoal?: string; mainAgentState?: MemoryAgentBootstrap['main_agent_state']; }): Promise; export declare function createAuditAck(input: MemoryAuditAck): MemoryAuditAck; export declare function recordMemoryAudit(input: { channelKey: string; turnId: string; topic: string; scopeRefs: MemoryScopeRef[]; ack: MemoryAuditAck; savedMemories?: Array<{ id: string; topic: string; summary: string; }>; }): Promise<{ eventIds: string[]; findingIds: string[]; state: import("./types.js").ChannelSummaryStateRecord; }>; declare function callExtractionLLM(prompt: string, options: NonNullable): Promise; export declare function setExtractionFn(fn: typeof callExtractionLLM | null): void; export declare function ingestConversation(input: IngestConversationInput): Promise; export declare function ingestConversationWithTrustedProvenance(input: IngestConversationInput, options: TrustedMemoryWriteOptions): Promise; export { upsertChannelSummary, getChannelSummary }; //# sourceMappingURL=api.d.ts.map