import type { Node } from '@babel/types'; export type Visitor = (node: Node, parent: Node | null, ancestors: Node[]) => boolean | void; /** * Walk an AST depth-first. Visits the root and all descendants. * If the visitor returns `false`, the node's children are skipped. */ export declare function walk(root: Node, visitor: Visitor): void;