import { ITestAssertionError } from "./test-assertion"; export interface IValidateOptions { /** * This determines whether or not warnings should be tested and returned. * Defaults to true. */ includeWarnings: boolean; /** * The path to a directory containing resource files (eg. voc.xml) which may be necessary for some schematron tests. * Defaults to './', the current directory. */ resourceDir: string; /** * An integer, which is the maximum length of the xml field in validation results. * Defaults to 200. Set to 0 for unlimited length. */ xmlSnippetMaxLength: number; } export declare function clearCache(): void; export interface IValidationResult { type: "error" | "warning"; test: string; simplifiedTest: string | null; description: string; line: number | null; path: string; patternId: string; ruleId?: string; assertionId: string; context: string; xml: string | null; } export interface IIgnoredResult { type: "error" | "warning"; test: string; simplifiedTest: string | null; patternId: string; ruleId?: string; errorMessage: string | ITestAssertionError | ITestAssertionError[]; assertionId: string; context: string; } export interface ICompletedValidation { errors: IValidationResult[]; ignored: IIgnoredResult[]; passed: IValidationResult[]; warnings: IValidationResult[]; } export declare function validate(xml: string, schematron: string, options?: Partial): Promise;