import type { Node, NodeArray } from "./ast.ts"; /** * Creates a deep clone of a node and its subtree, synthesizing new nodes for every child. * The resulting tree has fully set parent pointers. * * @param node The node to clone. * @param includeTrivia Whether to preserve the text range (pos/end) on the clone. */ export declare function getSynthesizedDeepClone(node: T, includeTrivia?: boolean): T; export declare function getSynthesizedDeepClone(node: T | undefined, includeTrivia?: boolean): T | undefined; /** * Creates deep clones of a NodeArray and all its elements. */ export declare function getSynthesizedDeepClones(nodes: NodeArray, includeTrivia?: boolean): NodeArray; export declare function getSynthesizedDeepClones(nodes: NodeArray | undefined, includeTrivia?: boolean): NodeArray | undefined; //# sourceMappingURL=clone.d.ts.map