/** * Small typed helpers for inspecting `pgsql-parser` AST nodes. * * Operates on the raw shape returned by `parse()` rather than the typed * `@pgsql/types` view, so the runtime cost is just object lookups. */ import type { PgAstNode } from './parse'; type Obj = Record; /** Extract the single wrapping key (e.g. `A_Expr`, `BoolExpr`) and its payload. */ export declare function unwrap(node: PgAstNode): { kind: string; body: Obj; } | null; /** Returns the boolean literal value, or null if not an `A_Const(bool)`. */ export declare function boolConst(node: PgAstNode): boolean | null; export {};