export type ClocCategories = { source: string; tests: string; tooling: string; }; export type ClocServiceRule = { name: string; match: string[]; }; export type ClocServiceRuleInput = { name: string; match?: string[]; }; /** The repository layout, as a consumer writes it. Every field is optional. */ export type ClocConfigInput = { /** Ordered rules; the first whose `match` patterns match a file wins. Also the table row order. */ services?: ClocServiceRuleInput[]; /** Service for files no rule matches. Appended after the listed services when not among them. */ defaultService?: string; /** Column names for the three categories. */ categories?: Partial; /** Patterns marking test files; checked first. */ testPatterns?: string[]; /** Patterns marking tooling files; checked after tests. Everything else is source. */ toolingPatterns?: string[]; /** Directories counted (themselves or anything under). Omit both root lists to count everything. */ countedRoots?: string[]; /** Individual files counted at exact paths. */ countedRootFiles?: string[]; /** Directory names scc skips. */ excludedDirs?: string[]; /** Directory names whose files are never counted, at any depth. */ ignoredDirs?: string[]; /** scc binary; `--scc-bin` and `SCC_BIN` override it. */ sccBin?: string; /** Appended to the error shown when the scc binary cannot be found. */ missingSccHint?: string; }; export type ClocConfig = { services: ClocServiceRule[]; defaultService: string; categories: ClocCategories; testPatterns: string[]; toolingPatterns: string[]; countedRoots: string[]; countedRootFiles: string[]; excludedDirs: string[]; ignoredDirs: string[]; sccBin?: string; missingSccHint?: string; }; export declare const DEFAULT_EXCLUDED_DIRS: string[]; export declare const DEFAULT_IGNORED_DIRS: string[]; /** Validates a raw config value and fills defaults. Throws a descriptive error when malformed. */ export declare function normalizeClocConfig(raw: unknown): ClocConfig;