import type { MemoryTier, MemoryType, MemoryUnit, Frontmatter } from "./types.js"; export declare function parseFrontmatter(content: string): { meta: Frontmatter; body: string; }; export declare function estimateTokens(content: string): number; export declare function inferTypeFromPath(relPath: string): MemoryType; export declare function inferTierFromPath(relPath: string, type: MemoryType): MemoryTier; export declare function extractTagsFromContent(body: string): string[]; export declare function extractSummary(body: string): string; /** * Read a single markdown file from disk and build a MemoryUnit. * Returns null if the file cannot be read. */ export declare function registerFile(absPath: string, relPath: string): MemoryUnit | null; /** * Recursively scan a directory for .md files (skipping INDEX.md). * Returns a map of relPath → MemoryUnit for all successfully registered files. */ export declare function scanDirectory(absDir: string, relDir: string, fs: typeof import("fs"), path: typeof import("path")): Map; /** * Scan the memory root directory and return all discovered MemoryUnits. * Returns an empty map if fs/path are unavailable or root doesn't exist. */ export declare function scanRoot(root: string): Map; //# sourceMappingURL=scanner.d.ts.map