export declare const memoryPackage = "@runx/memory"; import type { LocalReceipt } from "../../receipts/src/index.js"; export interface LocalMemoryIndex { readonly schema_version: "runx.memory.v1"; readonly receipts: readonly MemoryReceiptRecord[]; readonly facts: readonly MemoryFactRecord[]; readonly answers: readonly MemoryAnswerRecord[]; readonly artifacts: readonly MemoryArtifactRecord[]; } export interface MemoryReceiptRecord { readonly receipt_id: string; readonly kind: LocalReceipt["kind"]; readonly status: LocalReceipt["status"]; readonly subject: string; readonly source_type?: string; readonly receipt_path?: string; readonly project?: string; readonly started_at?: string; readonly completed_at?: string; readonly indexed_at: string; } export interface MemoryFactRecord { readonly id: string; readonly project: string; readonly scope: string; readonly key: string; readonly value: unknown; readonly source: string; readonly confidence: number; readonly freshness: string; readonly receipt_id?: string; readonly created_at: string; } export interface MemoryAnswerRecord { readonly id: string; readonly project: string; readonly question_id: string; readonly answer_hash: string; readonly receipt_id?: string; readonly created_at: string; } export interface MemoryArtifactRecord { readonly id: string; readonly project: string; readonly path: string; readonly receipt_id?: string; readonly created_at: string; } export interface IndexReceiptOptions { readonly receipt: LocalReceipt; readonly receiptPath?: string; readonly project?: string; readonly indexedAt?: string; } export interface AddFactOptions { readonly project: string; readonly scope: string; readonly key: string; readonly value: unknown; readonly source: string; readonly confidence: number; readonly freshness: string; readonly receiptId?: string; readonly createdAt?: string; } export interface LocalMemoryStore { readonly init: () => Promise; readonly read: () => Promise; readonly indexReceipt: (options: IndexReceiptOptions) => Promise; readonly addFact: (options: AddFactOptions) => Promise; readonly listFacts: (filter?: { readonly project?: string; }) => Promise; readonly listReceipts: (filter?: { readonly project?: string; }) => Promise; } export declare function createFileMemoryStore(memoryDir: string): LocalMemoryStore;