import { IRNode } from "../types.js"; /** * Recursively walks an IR tree, visiting each node and optionally replacing it. * Returns the (potentially replaced) root node. * * @param visitor Return an IRNode to replace the current node, or void/null to keep it. * @param order 'pre' visits before children; 'post' (default) visits after children. */ export declare function walkIR(ir: IRNode, visitor: (node: IRNode) => IRNode | void | null, order?: "pre" | "post"): IRNode;