import { type FarmRunRecord, type FarmBranchRecord } from './farm-run-record.js'; export type { FarmRunRecord, FarmBranchRecord }; export interface IMemoryStore { storeFact(fact: { session_id?: string; category: 'preference' | 'convention' | 'decision' | 'learning'; content: string; source_surface: string; }): number; } export declare function writeFarmFact(record: FarmRunRecord, opts?: { _store?: IMemoryStore; }): { factId: number; } | { skipped: true; reason: string; }; export declare function writeFarmDecisionFact(args: { taskSlug: string; decision: NonNullable; decidedAt: string; via: 'telegram' | 'cli'; }, opts?: { _store?: IMemoryStore; }): { factId: number; } | { skipped: true; reason: string; };