import { AgencyArray, AgencyNode, AgencyObject, BooleanLiteral, NullLiteral, NumberLiteral, StringLiteral } from "../../types.js"; import { SourceLocation } from "../../types/base.js"; /** * Typed constructors for literal AST nodes, so the node shapes have one * owner instead of being hand-assembled with casts through the lifter. * Shapes match what the parser produces (verified against `pnpm run ast` * output; see lib/parsers/literals.test.ts for the string shape). */ export declare function stringLiteral(value: string, loc: SourceLocation): StringLiteral; export declare function numberLiteral(value: number, loc: SourceLocation): NumberLiteral; export declare function booleanLiteral(value: boolean, loc: SourceLocation): BooleanLiteral; export declare function nullLiteral(loc: SourceLocation): NullLiteral; export declare function arrayLiteral(items: AgencyNode[], loc: SourceLocation): AgencyArray; export declare function objectLiteral(entries: { key: string; value: AgencyNode; }[], loc: SourceLocation): AgencyObject;