/** * Constants used by the parser/chunking layer. * These will move to @liendev/parser during extraction. */ export declare const DEFAULT_CHUNK_SIZE = 75; export declare const DEFAULT_CHUNK_OVERLAP = 10; /** * Default glob include patterns for a full-repo scan: source languages, prose * docs, and YAML config. Read by `chunk-only-index.ts`, which is the only * scan path left — `@liendev/core`'s `scanFilesToIndex` was the other * consumer these patterns were kept byte-identical for, and it is gone along * with the index it fed. * * The scanner globs with glob's default `dot:false`, so a bare `**\/*.yml` * never descends into a dot-directory like `.github/`. The explicit * `.github/**` entries below are required for CI workflow YAML (e.g. * `.github/workflows/*.yml`) to be indexed at all -- a literal path segment * (unlike a `**` wildcard) matches under `dot:false`. Other dot-dir CI * configs (`.circleci/`, root `.gitlab-ci.yml`) are a known, YAGNI'd gap. */ export declare const DEFAULT_INDEX_INCLUDE_PATTERNS: string[]; export declare const MAX_CHUNKS_PER_FILE = 100; /** * Largest file Lien will read and chunk, in bytes. * * A backstop independent of path-based filtering: it protects an ordinary * project against an accidentally committed multi-GB blob exactly as much as * it protects an explicitly-overridden home-root index against a keychain * database. 5 MB comfortably clears every real source/config/doc file a * typical codebase produces. * * Defined here rather than in `@liendev/core` (where #1025 first put it) * because the parser is the reader that survived: `lien complexity` and * `lien health` go through `performChunkOnlyIndex`. Core re-exported this * constant from here so the two consumers could not drift; core is gone now, * and this is simply where it lives. * * Skipping is not merely a resource guard. An 8 MB TypeScript file exceeds * the native parser's napi string limit, so it fails AST parsing, falls back * to line-based chunking, and lands in reports carrying meaningless * complexity metrics. Excluding it is more correct, not just cheaper. */ export declare const MAX_INDEXABLE_FILE_SIZE_BYTES: number; /** Whether `sizeBytes` exceeds {@link MAX_INDEXABLE_FILE_SIZE_BYTES}. */ export declare function isOversizedForIndexing(sizeBytes: number): boolean; export declare const PARSE_STAGE_MAX_CONCURRENCY = 4; /** * Effective concurrency for the parse/chunk stage: never exceeds * {@link PARSE_STAGE_MAX_CONCURRENCY}, regardless of the caller's configured * concurrency. Use this only for the stage that calls `chunkFile`/`parseAST`; * I/O-bound stages (file stat/hash walks) should keep using the configured * value directly. */ export declare function getParseStageConcurrency(configuredConcurrency: number): number; //# sourceMappingURL=constants.d.ts.map