import { type ScanExclusion } from '../utils/scan.js'; import type { RAGServerConfig } from './types.js'; /** * `list_files` presentation over {@link bfsCollectSupportedFiles}: renders the * walker's coverage facts as sorted absolute paths plus non-fatal warnings. * * A `readdir` failure becomes a warning rather than aborting the call — one * unreadable root must not hide files under the others. The depth-limit * warning names the base directory and is emitted at most once per call, * however many branches were pruned. Symlinks are skipped and not surfaced. */ export declare function scanBaseDir(baseDir: string, exclusion: ScanExclusion, scope?: string[]): Promise<{ files: string[]; warnings: string[]; }>; /** * Normalize both {@link RAGServerConfig} shapes into `{ baseDirs, baseDir }`. * * Empty `baseDirs` is accepted ONLY in degraded mode, where the server must * stay constructible so `status` remains callable and `assertConfigOk` fails * every root-dependent tool first. Without a configError an empty array is * misuse — reject it rather than build a parser that rejects every path. * * `baseDir` is the legacy accessor, `baseDirs[0]`; empty-string in degraded * mode, where nothing reaches it. */ export declare function normalizeBaseDirs(config: RAGServerConfig): { baseDirs: string[]; baseDir: string; }; //# sourceMappingURL=list-scanner.d.ts.map