/** * PD Profile Config Validation — PRI-304 / PRI-466 * * Runtime validation from `unknown` (parsed YAML/JSON profile section). * No `as` bypasses on untrusted input (ERR-001, ERR-005). * Uses `Object.hasOwn()` for key checks (ERR-013). * Unknown keys produce warnings rather than hard errors (forward compat). */ import { type ProfileConfig } from './pd-config-types.js'; export interface ProfileValidationWarning { path: string; message: string; } export type ProfileValidationResult = { ok: true; value: Partial; warnings: ProfileValidationWarning[]; } | { ok: false; errors: ProfileValidationWarning[]; }; /** * Validate a parsed profile config value from unknown input. * Profile is optional — missing profile is OK (defaults applied in effective config). * Partial input is accepted (warnings for invalid sub-fields, valid partial fields kept). */ export declare function validateProfileConfig(raw: unknown, path?: string): ProfileValidationResult; //# sourceMappingURL=pd-validate-profile.d.ts.map