export interface RepoSnapshotOptions { /** Maximum number of files to include in the tree. Default: 1000. */ maxFiles?: number; /** Maximum bytes per file before contents are omitted. Default: 32_000. */ maxFileBytes?: number; /** Maximum total text bytes injected into the snapshot. Binary files and non-content sections (tree header, separators) do not count toward this limit. Default: 262_144 (256 KiB). */ maxTotalTextBytes?: number; /** Maximum directories traversed. Default: 2000. */ maxDirs?: number; /** Maximum entries read from a single directory. Caps memory use when an agent creates a directory with millions of entries. Default: 10_000. */ maxDirEntries?: number; /** Directory names skipped anywhere in the tree. Default: {@link DEFAULT_IGNORE_DIRS}. */ ignoreDirs?: ReadonlySet; /** * Exact basenames (`.env`) and glob extensions (`*.pem`) omitted from the snapshot. * Default: {@link DEFAULT_SENSITIVE_FILES}. Pass an empty set to disable. */ sensitiveFiles?: ReadonlySet; } export type RepoSnapshotResult = { ok: true; snapshot: string; } | { ok: false; error: string; }; /** Basenames, `*.ext` globs, and `.prefix.*` prefix globs omitted from the snapshot by default. Covers env files, package-manager auth configs, and private key files. */ export declare const DEFAULT_SENSITIVE_FILES: ReadonlySet; /** * Directory names skipped during the workspace walk. * * Covers build artifacts, caches, and dependency trees for the languages most * common in language-migration tasks. Languages: VCS, Python, Node/JS/TS, Rust, * Go, Java/Kotlin, .NET/C#, C/C++. */ export declare const DEFAULT_IGNORE_DIRS: ReadonlySet; /** Returns a bounded text snapshot of {@link workDir}, or a failing result when missing/unreadable. */ export declare function buildRepoSnapshot(workDir: string, options?: RepoSnapshotOptions): Promise; //# sourceMappingURL=repo-snapshot.d.ts.map