/** * @fileoverview Target config loader * * Loads target configuration from opensip-cli.config.yml in the project root. * Validates with Zod and populates a TargetRegistry. */ import { TargetRegistry } from './target-registry.js'; import type { TargetsConfig } from './types.js'; /** * Load full targets config including per-check target overrides. * * SCOPE-FIRST (ADR-0023 one-reader): when the current `RunScope` carries the * host-validated config document (`scope.configDocument`), the fitness shapes * are projected from THAT document — no second file read. The registry build * inside `buildFromParsed` additionally mirrors `scope.targets` (ADR-0037) * when the host built it. The file read below serves scope-less callers only * (programmatic use, unit tests); it resolves via the shared project-config * resolver. * * @throws {ValidationError} When no targets config file is found or it cannot be loaded * @throws {ValidationError} When the config file fails schema validation */ export declare function loadTargetsConfig(rootDir: string, explicitPath?: string): { registry: TargetRegistry; config: TargetsConfig; }; //# sourceMappingURL=loader.d.ts.map