/** * XmlSyntaxNode — a node in the lossless SceneGraph XML CST. Mirrors * `../syntaxNode.ts`: children are an interleaved sequence of nodes and * tokens, and `getText()` on the root reproduces the original source * byte-for-byte. */ import { XmlSyntaxKind } from './xmlSyntaxKind.js'; import { XmlTokenKind } from './xmlTokenKind.js'; import { XmlToken } from './xmlToken.js'; export type XmlSyntaxChild = XmlSyntaxNode | XmlToken; export declare function isXmlNode(child: XmlSyntaxChild): child is XmlSyntaxNode; export declare function isXmlToken(child: XmlSyntaxChild): child is XmlToken; export declare class XmlSyntaxNode { readonly kind: XmlSyntaxKind; readonly children: XmlSyntaxChild[]; parent: XmlSyntaxNode | null; private _childNodes; private _childTokens; constructor(kind: XmlSyntaxKind, children?: XmlSyntaxChild[]); get pos(): number; get end(): number; get line(): number; get column(): number; getText(): string; private appendText; findChild(kind: XmlSyntaxKind): XmlSyntaxNode | undefined; findAllChildren(kind: XmlSyntaxKind): XmlSyntaxNode[]; findToken(kind: XmlTokenKind): XmlToken | undefined; get childNodes(): XmlSyntaxNode[]; get childTokens(): XmlToken[]; } /** Finds the first token in `node`'s subtree (depth-first), or `undefined` for a childless node. */ export declare function firstXmlToken(node: XmlSyntaxNode): XmlToken | undefined; /** Finds the last token in `node`'s subtree (depth-first), or `undefined` for a childless node. */ export declare function lastXmlToken(node: XmlSyntaxNode): XmlToken | undefined; //# sourceMappingURL=xmlSyntaxNode.d.ts.map