import { RedactionViolation } from "./types.js"; //#region src/redaction/errors.d.ts /** * Thrown by the validator when `failOnUnredactedSensitive: true` and * a value would otherwise be dropped or masked. The error never * carries the secret value itself; only the sanitized * {@link RedactionViolation} metadata. * * @stable */ declare class RedactionValidationError extends Error { /** @stable */ readonly kind: "redaction-validation-failed"; /** @stable */ readonly violation: RedactionViolation; constructor(message: string, violation: RedactionViolation); } /** * Thrown at startup when an exporter is registered without going * through `withValidation(...)`. Enforces ADR-035: every exporter * must validate before forwarding. * * @stable */ declare class UnvalidatedExporterError extends Error { /** @stable */ readonly kind: "unvalidated-exporter"; /** Exporter identifier (typically `exporter.constructor.name`). */ readonly exporterId: string; constructor(exporterId: string); } //#endregion export { RedactionValidationError, UnvalidatedExporterError }; //# sourceMappingURL=errors.d.ts.map