/** * File scanner for the semantic search subsystem. * * Discovers project files for indexing by walking the directory tree, * respecting .gitignore rules, and classifying files by type. */ import type { FileType } from "./types.js"; /** A file discovered by the scanner, ready for indexing. */ export interface ScannedFile { /** Path relative to the project root (posix separators). */ filePath: string; /** Detected file type. */ fileType: FileType; /** File modification time in milliseconds since epoch. */ mtime: number; } /** * Detect the {@link FileType} for a file path based on its extension. * Returns `null` for unrecognized extensions or files without an extension. */ export declare function detectFileType(filePath: string): FileType | null; /** * Scan a project directory and return all indexable files. * * Walks the tree rooted at {@link projectRoot}, respects `.gitignore` rules, * skips binary / oversized files, and optionally includes memory files from * a global memory directory. */ export declare function scanProject(projectRoot: string, globalMemoryDir?: string, visibleDirs?: string[]): Promise; //# sourceMappingURL=scanner.d.ts.map