export declare const defaultParserOptions: ParserOptions; export declare const defaultBuilderOptions: BuilderOptions; export declare interface NumberParseOptions { hex: boolean leadingZeros: boolean scientific: boolean skipLike?: RegExp } export declare interface ParserOptions { attributeNamePrefix: string attributesGroupName: string | false textNodeName: string ignoreAttributes: boolean removeNSPrefix: boolean allowBooleanAttributes: boolean alwaysCreateTextNode: boolean trimValues: boolean parseTagValue: boolean parseAttributeValue: boolean processEntities: boolean htmlEntities: boolean commentPropName: string | false cdataPropName: string | false piPropName: string | false preserveOrder: boolean stopNodes: string[] unpairedTags: string[] isArray: ((tagName: string, jPath: string, isLeaf: boolean, isAttribute: boolean) => boolean) | undefined tagValueProcessor: ((tagName: string, tagValue: string, jPath: string, hasAttributes: boolean, isLeaf: boolean) => string | undefined) | undefined attributeValueProcessor: ((attrName: string, attrValue: string, jPath: string) => string | undefined) | undefined updateTag: ((tagName: string, jPath: string, attrs: Record) => string | boolean) | undefined numberParseOptions: NumberParseOptions ignorePiTags: boolean transformAttributeName: ((name: string) => string) | undefined transformTagName: ((name: string) => string) | undefined ignoreDeclaration: boolean } export declare interface BuilderOptions { attributeNamePrefix: string attributesGroupName: string | false textNodeName: string ignoreAttributes: boolean cdataPropName: string | false commentPropName: string | false piPropName: string | false format: boolean indentBy: string suppressEmptyNode: boolean suppressBooleanAttributes: boolean suppressUnpairedNode: boolean unpairedTags: string[] processEntities: boolean preserveOrder: boolean tagValueProcessor: ((name: string, value: string) => string) | undefined attributeValueProcessor: ((name: string, value: string) => string) | undefined } export declare interface ValidationError { err: { code: string msg: string line: number col: number } } export declare interface ValidatorOptions { allowBooleanAttributes: boolean unpairedTags: string[] } // Character codes for fast comparison export declare const enum CharCode { Tab = 9, LineFeed = 10, CarriageReturn = 13, Space = 32, ExclamationMark = 33, DoubleQuote = 34, Hash = 35, Ampersand = 38, SingleQuote = 39, Dash = 45, Dot = 46, Slash = 47, Zero = 48, Nine = 57, Colon = 58, Semicolon = 59, LessThan = 60, Equals = 61, GreaterThan = 62, QuestionMark = 63, UpperA = 65, UpperF = 70, UpperZ = 90, LeftBracket = 91, RightBracket = 93, Underscore = 95, LowerA = 97, LowerF = 102, LowerX = 120, LowerZ = 122, }