export type OoxmlProblemKind = "missing-part" | "xml-malformed" | "content-types-missing" | "content-types-malformed" | "content-types-missing-default" | "content-types-missing-for-part" | "content-types-duplicate-override" | "root-rels-missing-officeDocument" | "rels-malformed" | "rels-missing-target" | "rels-duplicate-id" | "rels-empty-target" | "rels-invalid-target-path" | "rels-source-missing" | "workbook-sheet-missing-rel" | "workbook-sheet-wrong-rel-type" | "workbook-duplicate-sheetId" | "workbook-duplicate-sheet-rid" | "sheet-missing-rels" | "sheet-controls-missing-drawing" | "sheet-control-missing-rel" | "sheet-control-wrong-rel-type" | "sheet-legacyDrawing-missing-rel" | "sheet-legacyDrawing-wrong-rel-type" | "sheet-drawing-missing-rel" | "sheet-drawing-wrong-rel-type" | "sheet-comments-missing-rel" | "sheet-comments-wrong-rel-type" | "sheet-hyperlink-missing-rel" | "sheet-hyperlink-wrong-rel-type" | "sheet-tablePart-missing-rel" | "sheet-tablePart-wrong-rel-type";
export type OoxmlOrderingProblemKind = "sheet-legacyDrawing-after-controls";
export interface OoxmlValidationProblem {
    kind: OoxmlProblemKind;
    file?: string;
    message: string;
}
export interface OoxmlOrderingValidationProblem {
    kind: OoxmlOrderingProblemKind;
    file?: string;
    message: string;
}
export interface OoxmlValidationReport {
    ok: boolean;
    problems: Array<OoxmlValidationProblem | OoxmlOrderingValidationProblem>;
    stats: {
        entryCount: number;
        xmlLikeCount: number;
        relsCount: number;
    };
}
export interface OoxmlValidateOptions {
    /**
     * Whether to check every XML-like entry (.xml, .rels, .vml) for well-formedness.
     * Default: true.
     */
    checkXmlWellFormed?: boolean;
    /**
     * Whether to validate relationship targets exist (TargetMode=External ignored).
     * Default: true.
     */
    checkRelationshipTargets?: boolean;
    /**
     * Whether to validate that every ContentTypes Override PartName exists.
     * Default: true.
     */
    checkContentTypesOverrides?: boolean;
    /**
     * Whether to validate worksheet <controls>/<legacyDrawing> r:id wiring.
     * Default: true.
     */
    checkWorksheetControlWiring?: boolean;
    /**
     * If provided, stops after this many problems.
     */
    maxProblems?: number;
}
export declare function validateXlsxBuffer(xlsxBuffer: Uint8Array, options?: OoxmlValidateOptions): Promise<OoxmlValidationReport>;
