/** One schema-invalid value found in a document model. */ export interface ValidationIssue { /** Location of the offending object, e.g. `blocks[2].runs[0]`. */ path: string; /** Model field on that object, e.g. `fontSize`. */ field: string; /** The rejected value. */ value: unknown; /** Human-readable rule that was violated, including the offending value. */ rule: string; } /** Thrown by `saveDocx` (and `assertValidDocumentModel`) when the model cannot be written as valid OOXML. */ export declare class DocxModelValidationError extends Error { readonly issues: readonly ValidationIssue[]; constructor(issues: readonly ValidationIssue[]); } export declare const show: (value: unknown) => string; export declare const isInteger: (value: unknown) => boolean; export declare const isUnsignedInteger: (value: unknown) => boolean; /** `ST_HexColor` as the model stores it: `auto`, or RRGGBB with an optional leading `#`. */ export declare function isHexColorInput(value: unknown): boolean; /** `xsd:dateTime` with calendar and clock ranges checked (24:00:00 is the only hour-24 value). */ export declare function isXsdDateTime(value: unknown): boolean; /** Collects issues for one object; every check is skipped when the value is `undefined`. */ export declare class Checker { readonly issues: ValidationIssue[]; readonly path: string; constructor(issues: ValidationIssue[], path: string); at(suffix: string): Checker; fail(field: string, value: unknown, rule: string): void; check(field: string, value: unknown, test: (v: unknown) => boolean, describe: string): void; enum(field: string, value: unknown, guard: (v: unknown) => boolean, type: string): void; unsigned(field: string, value: unknown, type: string): void; signed(field: string, value: unknown, type: string): void; hex(field: string, value: unknown): void; theme(field: string, value: unknown): void; dateTime(field: string, value: unknown): void; language(field: string, value: unknown): void; } //# sourceMappingURL=validate-issues.d.ts.map