import type { ProjectMemoryKind } from './project-memory-service/types.js'; export { defaultIdeMemoryDir, encodeIdeProjectDir, renderNormalizedMemory } from './memory-ingest-support.js'; export interface MemoryIngestOptions { projectRoot: string; /** Override the IDE-side source dir (defaults to `~/.claude/projects//memory`). */ sourceDir?: string; /** Injectable home dir (tests); defaults to `os.homedir()`. */ homeDir?: string; apply?: boolean; } export interface MemoryIngestImported { name: string; kind: ProjectMemoryKind; sourcePath: string; targetPath: string; } export interface MemoryIngestSkipped { name: string; sourcePath: string; targetPath: string; } export interface MemoryIngestConflict { name: string; sourcePath: string; targetPath: string; reason: string; } export interface MemoryIngestNeedsClassification { name: string; sourcePath: string; rawKind: string | null; reason: string; } export interface MemoryIngestRefused { name: string; sourcePath: string; reason: string; } export interface MemoryIngestReport { apply: boolean; projectRoot: string; sourceDir: string; sourceExists: boolean; memoryDir: string; scannedFiles: number; imported: MemoryIngestImported[]; skippedIdentical: MemoryIngestSkipped[]; conflicts: MemoryIngestConflict[]; needsClassification: MemoryIngestNeedsClassification[]; refused: MemoryIngestRefused[]; writtenFiles: string[]; warnings: string[]; } /** * Import IDE-side memories into `.peaks/memory/`. Always returns the full * envelope; `apply` only controls whether files are actually written. */ export declare function executeMemoryIngest(options: MemoryIngestOptions): MemoryIngestReport;