import type { MemoryFact, MemoryKind, MemoryScope, MemoryTier } from "../types.js"; export declare const MEMORY_MAX_CONTENT_LENGTH = 500; export declare const MEMORY_NOTE_PREFIX = "[note] "; export declare const MEMORY_EPISODE_PREFIX = "[episode] "; export declare const PROFILE_FILENAME = "profile.md"; export declare const LOG_DIRNAME = "log"; export declare const PROFILE_HEADER: string; export declare const LOG_HEADER: string; /** Host FACT_LINE. */ export declare const FACT_LINE: RegExp; export declare function clampLine(raw: string, maxLength: number): string; export declare function normalizeMemoryContent(raw: string): string; export declare function memoryDedupeKey(content: string): string; export declare function memoryIdFor(content: string): string; export declare function formatMemoryDate(createdAtMs: number): string; export declare function serializeFactLine(content: string, createdAt: number): string; export declare function parseFacts(raw: string, kind: MemoryKind, base: number, path: string): MemoryFact[]; export declare function memoryDirFor(agentId: string, scope: MemoryScope, sandRoot?: string): string; export declare function listMemoryFacts(agentId: string, options?: { scope?: MemoryScope; sandRoot?: string; }): MemoryFact[]; export type WriteMemoryInput = { agentId: string; content: string; tier?: MemoryTier; scope?: MemoryScope; createdAt?: number; sandRoot?: string; }; /** * Disk fallback for host `rememberFact` → `FileMemoryStore.addMemory`. * Prefer gateway / update_state when the host is up. * * Appends one fact line (rewrite the whole file with previous + new line). * Notes get MEMORY_NOTE_PREFIX before normalize. Dedupes on normalize + * toLowerCase. Returns null if empty or already present. */ export declare function writeMemoryFact(input: WriteMemoryInput): MemoryFact | null; export type ForgetMemoryInput = { agentId: string; content: string; scope?: MemoryScope; sandRoot?: string; }; /** * Disk fallback for host `forgetFact` → `removeMemoryByContent`. * Prefer gateway / update_state when the host is up. * * Forget by exact recorded text (after host normalize), including any * `[note] ` / `[episode] ` prefix. Matches host * removeMemoryByContent → memoryIdFor(normalized). */ export declare function forgetMemoryFact(input: ForgetMemoryInput): boolean; //# sourceMappingURL=memory.d.ts.map