export interface ScanOptions { /** Recurse into subdirectories. Defaults to `true`. */ recursive?: boolean; /** * Glob patterns to include. Each pattern is matched against both the file * basename and the path relative to `directory` (POSIX-normalized), so * legacy `*.md` and new-style `docs/**\/*.md` both work. */ include?: string[]; /** Glob patterns to exclude (same matching semantics as `include`). */ exclude?: string[]; } /** * Scan a directory and return matching file paths (synchronous). * * Patterns support `*`, `?`, `**`, and character classes; basename and * full relative-path matching are both considered, so `*.md` works for * nested files and `docs/**\/*.md` restricts to a subtree. * * @returns Sorted array of absolute paths. */ export declare function scanDirectory(directory: string, options?: ScanOptions): string[]; /** * Async variant of {@link scanDirectory}. Prefer this for large trees where * `readdirSync` blocking the event loop would hurt responsiveness (CR P5). */ export declare function scanDirectoryAsync(directory: string, options?: ScanOptions): Promise; //# sourceMappingURL=scanner.d.ts.map