import { Result } from "../../util/result.js"; import { KumoriServices } from "../../language/kumori.js"; import { AstNodeValue, ValueError } from "./value.js"; import { AstNode } from "langium"; export interface ToJSONContext { svcs: KumoriServices; nodes?: Map; } export type AsJSON = AsJSONPrimitive | AsJSONArray | AsJSONStruct; type AsJSONPrimitive = number | boolean | string | null; type AsJSONArray = AsJSON[]; type AsJSONStruct = { [x: string]: AsJSON | undefined; }; export declare function toJSON(ctx: ToJSONContext, v: AstNodeValue): Result; export {};