//#region src/types.d.ts interface Attributes { [key: string]: string | number | undefined; } interface DeclarationAttributes { version?: string | number; encoding?: string; standalone?: string; } interface Element { declaration?: { attributes?: DeclarationAttributes; }; instruction?: string; attributes?: Attributes; cdata?: string; doctype?: string; comment?: string; text?: string | number | boolean; type?: string; name?: string; elements?: Element[]; raw?: string; parent?: Element; } interface ElementCompact { [key: string]: unknown; _declaration?: { _attributes?: DeclarationAttributes; }; _instruction?: { [key: string]: string; }; _attributes?: Attributes; _cdata?: string; _doctype?: string; _comment?: string; _text?: string | number; } interface IgnoreOptions { ignoreDeclaration?: boolean; ignoreInstruction?: boolean; ignoreAttributes?: boolean; ignoreComment?: boolean; ignoreCdata?: boolean; ignoreDoctype?: boolean; ignoreText?: boolean; } interface ParseOptions extends IgnoreOptions { compact?: boolean; trim?: boolean; sanitize?: boolean; nativeType?: boolean; nativeTypeAttributes?: boolean; addParent?: boolean; alwaysArray?: boolean | string[]; alwaysChildren?: boolean; instructionHasAttributes?: boolean; captureSpacesBetweenElements?: boolean; deferElements?: string[]; normalizeNamespaces?: Readonly>; doctypeFn?: (value: string, parentElement: object) => string; instructionFn?: (value: string, instructionName: string, parentElement: string) => string; cdataFn?: (value: string, parentElement: object) => string; commentFn?: (value: string, parentElement: object) => string; textFn?: (value: string, parentElement: object) => string; instructionNameFn?: (instructionName: string, instructionValue: string, parentElement: string) => string; elementNameFn?: (value: string, parentElement: object) => string; attributeNameFn?: (attributeName: string, attributeValue: string, parentElement: string) => string; attributeValueFn?: (attributeValue: string, attributeName: string, parentElement: string) => string; attributesFn?: (value: Attributes, parentElement: string) => Attributes; } interface StringifyOptions extends IgnoreOptions { spaces?: number | string; compact?: boolean; indentText?: boolean; indentCdata?: boolean; indentAttributes?: boolean; indentInstruction?: boolean; fullTagEmptyElement?: boolean; noQuotesForNativeAttributes?: boolean; doctypeFn?: (value: string, currentElementName: string, currentElementObj: object) => string; instructionFn?: (instructionValue: string, instructionName: string, currentElementName: string, currentElementObj: object) => string; cdataFn?: (value: string, currentElementName: string, currentElementObj: object) => string; commentFn?: (value: string, currentElementName: string, currentElementObj: object) => string; textFn?: (value: string, currentElementName: string, currentElementObj: object) => string; instructionNameFn?: (instructionName: string, instructionValue: string, currentElementName: string, currentElementObj: object) => string; elementNameFn?: (value: string, currentElementName: string, currentElementObj: object) => string; attributeNameFn?: (attributeName: string, attributeValue: string, currentElementName: string, currentElementObj: object) => string; attributeValueFn?: (attributeValue: string, attributeName: string, currentElementName: string, currentElementObj: object) => string; attributesFn?: (value: Attributes, currentElementName: string, currentElementObj: object) => Attributes; fullTagEmptyElementFn?: (currentElementName: string, currentElementObj: object) => boolean; } //#endregion //#region src/utils.d.ts declare const OOXML_XML_DECLARATION = ""; type NonEmptyArray = readonly [T, ...ReadonlyArray]; declare const isNonEmpty: (arr: readonly T[]) => arr is NonEmptyArray; declare function findChild(parent: Element | undefined, name: string): Element | undefined; declare function children(parent: Element | undefined, name: string): Element[]; declare function allChildren(parent: Element | undefined): Element[]; declare function childText(parent: Element | undefined, name: string): string; declare function textOf(element: Element | undefined): string; declare function collectText(element: Element | undefined): string; declare function attr(element: Element | undefined, name: string): string | undefined; declare function attrNum(element: Element | undefined, name: string): number | undefined; declare function attrMeasure(element: Element | undefined, name: string): number | string | undefined; declare function attrBool(element: Element | undefined, name: string): boolean | undefined; declare function colorAttr(element: Element | undefined, name: string): string | undefined; declare function hasChild(parent: Element | undefined, name: string): boolean; declare function findDeep(parent: Element | undefined, name: string): Element[]; declare function findFirst(parent: Element | undefined, name: string): Element | undefined; declare function childCount(parent: Element | undefined): number; //#endregion export { IgnoreOptions as C, ElementCompact as S, StringifyOptions as T, isNonEmpty as _, attrBool as a, DeclarationAttributes as b, childCount as c, collectText as d, colorAttr as f, hasChild as g, findFirst as h, attr as i, childText as l, findDeep as m, OOXML_XML_DECLARATION as n, attrMeasure as o, findChild as p, allChildren as r, attrNum as s, NonEmptyArray as t, children as u, textOf as v, ParseOptions as w, Element as x, Attributes as y }; //# sourceMappingURL=utils-qhk6IlD8.d.mts.map