import { XmlNode } from "@svta/cml-utils"; //#region src/getElementsByName.d.ts /** * Recursively finds all elements by name within an XML structure. * * @param node - The current XML node to search within. * @param name - The name of the target nodes to find. * @param found - An array to collect matching nodes. * @returns An array of all matching XmlNodes. * * @public * */ declare function getElementsByName(node: XmlNode, name: string, found?: XmlNode[]): XmlNode[]; //#endregion //#region src/XmlParseOptions.d.ts /** * XML parsing options * * @public */ type XmlParseOptions = { pos?: number; keepWhitespace?: boolean; keepComments?: boolean; includeParentElement?: boolean; }; //#endregion //#region src/parseXml.d.ts /** * Parse XML into a JS object with no validation and some failure tolerance * * @param input - The input XML string * @param options - Optional parsing options * @returns The parsed XML * * @public * * @example * {@includeCode ../test/parseXml.test.ts#example} */ declare function parseXml(input: string, options?: XmlParseOptions): XmlNode; //#endregion //#region src/serializeXml.d.ts /** * Basic xml encoding utility. Encodes XML into a string. * * @param xml - The XML node to encode * @returns The parsed XML * * @public * * @example * {@includeCode ../test/serializeXml.test.ts#example} */ declare function serializeXml(xml: XmlNode): string; //#endregion export { type XmlNode, XmlParseOptions, getElementsByName, parseXml, serializeXml }; //# sourceMappingURL=index.d.ts.map