import type * as logger from "@superbuilders/slog"; /** * Validates that no LaTeX content is present in an HTML/XML string fragment. * Throws an error if LaTeX is detected. * @param htmlFragment The string to validate. * @param logger The logger instance. */ export declare function checkNoLatex(htmlFragment: string, logger: logger.Logger): void; /** * NEW: Validates that no Perseus artifacts are present in an HTML/XML string fragment. * Throws an error if an artifact is detected. * @param htmlFragment The string to validate. * @param logger The logger instance. */ export declare function checkNoPerseusArtifacts(htmlFragment: string, logger: logger.Logger): void; /** * NEW: Validates that no deprecated elements are used in an HTML/XML string fragment. * Throws an error if an mfenced element is detected. * @param htmlFragment The string to validate. * @param logger The logger instance. */ export declare function checkNoMfencedElements(htmlFragment: string, logger: logger.Logger): void; /** * A shared utility to convert problematic HTML entities to their character equivalents. * @param htmlFragment The HTML string to process. * @returns The processed string. */ export declare function sanitizeHtmlEntities(htmlFragment: string): string; /** * A shared utility to fix common MathML operator issues. * @param htmlFragment The HTML string to process. * @returns The processed string. */ export declare function sanitizeMathMLOperators(htmlFragment: string): string; /** * Validates that a string contains only XML 1.0 valid characters for character data (PCDATA). * Disallows C0 control characters other than TAB (0x09), LF (0x0A), and CR (0x0D), * as well as non-characters like U+FFFE/U+FFFF and any unpaired UTF-16 surrogates. * * Context: The XML validator surfaced "PCDATA invalid Char value " errors for inputs containing * characters like \u0002, \u0004, \u0019. This function bans such characters early during pre-validation. * * @param fragment The text or markup fragment to validate * @param logger The logger instance */ export declare function checkNoInvalidXmlChars(fragment: string, logger: logger.Logger): void; /** * Validates that no CDATA sections are present in the fragment. * QTI requires properly XML-encoded content; CDATA () is disallowed. * * @param fragment The text or markup fragment to validate * @param logger The logger instance */ export declare function checkNoCDataSections(fragment: string, logger: logger.Logger): void; //# sourceMappingURL=qti-validation.d.ts.map