import type { SQLNode } from '../ast/node.js'; /** * SQL AST traversal visitor callback result. * A falsy value (including `undefined`, `null`, `false`, and `0`) indicates * that traversal should continue. * A negative number values indicates that traversal should stop immediately. * Any other truthy value indicates that traversal should not recurse on the * current node, but should otherwise continue. */ export type VisitorResult = boolean | number | null | undefined | void; /** * SQL AST traversal callback function. */ export type VisitorCallback = (node: SQLNode) => VisitorResult; /** * Perform a traversal of a SQL expression AST. * @param node Root node for AST traversal. * @param visit Visitor callback function. */ export declare function walk(node: unknown, visit: VisitorCallback): VisitorResult; //# sourceMappingURL=walk.d.ts.map