1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | import { SourceRange } from '../model/model';
|
15 | import { ParsedDocument, StringifyOptions } from '../parser/document';
|
16 | export declare type Json = JsonObject | JsonArray | number | string | boolean | null;
|
17 | export interface JsonObject {
|
18 | [key: string]: Json;
|
19 | }
|
20 | export interface JsonArray extends Array<Json> {
|
21 | }
|
22 | export interface Visitor {
|
23 | visit(node: Json): void;
|
24 | }
|
25 | export declare class ParsedJsonDocument extends ParsedDocument<Json, Visitor> {
|
26 | readonly type = "json";
|
27 | visit(visitors: Visitor[]): void;
|
28 | private _visit;
|
29 | protected _sourceRangeForNode(_node: Json): SourceRange;
|
30 | stringify(options?: StringifyOptions): string;
|
31 | }
|