/** * Parser for `.contextatlas.yml`. * * Strict per ADR-05: unknown keys (top-level or nested) are errors, not * warnings. The `version` field is the migration handle — locked at 1 in * this release. Every thrown error includes the resolved config file * path so multi-repo users can diagnose failures unambiguously. * * All paths coming out of this parser are normalized through * `normalizePath()` per ADR-01's ingest-boundary rule. */ import type { ContextAtlasConfig } from "../types.js"; /** * Canonical list of top-level config keys. Exported for test substrate * to check against (per v0.5 Step 10.3 schema-driven test data * candidate; eliminates hardcoded-regex fragility recurrence per v0.4 * STEP-PLAN-V0.4 §Cycle close process-hygiene notes #1). Adding a new * top-level key requires both: (a) extending this list; (b) adding the * corresponding `validate` call in `validate()` below. */ export declare const TOP_LEVEL_KEYS: readonly ["version", "architecture", "languages", "adrs", "docs", "git", "index", "atlas", "source", "extraction", "mcp", "observability", "lsp"]; /** * Load and validate a ContextAtlas config file. * * @param repoRoot Absolute or relative path to the repo root; the * caller is responsible for passing a sensible value (this parser * does not normalize the root itself, per ADR-01's boundary rule). * @param configPath Optional explicit path (defaults to * `.contextatlas.yml` inside `repoRoot`). */ export interface LoadConfigOptions { /** * Test seam: where deprecation warnings + other stderr output * go. Defaults to `process.stderr.write`. Lets tests inspect * deprecation warning emission without polluting test runner * stderr. Added at v0.7 Step 1.4b per Path-3 architecture-field * deprecation cycle. */ readonly writeStderr?: (chunk: string) => void; } export declare function loadConfig(repoRoot: string, configPath?: string, options?: LoadConfigOptions): ContextAtlasConfig; /** * Generate the architecture-field-deprecation warning text per * field value (3 variants). All three variants share the core * message "field deprecated at v0.7+; removed at v0.8+; please * remove from .contextatlas.yml"; value-specific framing surfaces * the entry-point-determined model for users to migrate. * * Exported for direct test-verification of warning text content * stability. */ export declare function architectureDeprecationWarning(value: "claude-code-only" | "anthropic-api-direct" | "anthropic-api-claude-code"): string; //# sourceMappingURL=parser.d.ts.map