/** * AST utility functions for constant propagation. */ import type { Node } from 'web-tree-sitter'; import type { ConstantValue, ConstantType } from './types.js'; /** * Check if a constant value is known (not unknown). */ export declare function isKnown(cv: ConstantValue): boolean; /** * Create an unknown constant value. */ export declare function createUnknown(line: number): ConstantValue; /** * Create a constant value. */ export declare function createConstant(value: string | number | boolean | null, type: ConstantType, line: number): ConstantValue; /** * Get text content of an AST node. */ export declare function getNodeText(node: Node, source: string): string; /** * Get 1-based line number of an AST node. */ export declare function getNodeLine(node: Node): number; //# sourceMappingURL=ast-utils.d.ts.map