import { Node } from "../model/model"; import { Indexer } from "./indexing"; export declare const TO_JSON_SYMBOL: unique symbol; export declare function toJSON(node: Node, withIds?: Indexer): any; export declare class JSONGenerator { toJSON(node: Node, withIds?: Indexer): any; } export declare function defaultToJSON(node: Node, withIds?: Indexer): { type: string; };