import { Node, NodeScaffoldDataReadonly } from "./node.js"; export declare class NodeList extends Array { /** Creates a new ast.NodeList containing an Node scaffoldedd from the given data */ static scaffold(data?: NodeScaffoldDataReadonly): NodeList; /** Returns whether this ast.NodeList contains a node of the given type. */ hasNodeOfType(nodeType: string): boolean; /** * provides exactly one node matching any of the given types, * multiple or zero matches cause an exception */ nodeOfTypes(...nodeTypes: string[]): Node; /** * Assuming the given Node is an opening node, * returns all nodes until it closes. */ nodesFor(openingNode: Node): NodeList; /** Returns the Nodes matching any of the given types. */ nodesOfTypes(...nodeTypes: string[]): NodeList; /** Returns all node types encountered in this list. */ nodeTypes(): string[]; /** Adds a new Node with the given data to this list. */ pushNode(data: NodeScaffoldDataReadonly): void; /** Returns the concatenated textual content of all nodes in this list. */ text(): string; /** Returns the textual content for the given node. */ textInNode(astNode: Node): string; /** * Returns the text in the node of the given types. * Expects that exactly one matching node exists, * throws otherwise. */ textInNodeOfType(...nodeTypes: string[]): string; /** * Returns the text in the node that has one of the given types. * Expects that exactly one matching node exists, throws otherwise. */ textInNodeOfTypes(...nodeTypes: string[]): string; /** provides the text in the nodes of the given types */ textInNodesOfType(...nodeTypes: string[]): string[]; } //# sourceMappingURL=node-list.d.ts.map