1 | export { Parser as JSONParser };
|
2 | export default Parser;
|
3 | declare class Parser {
|
4 | static toknam(code: any): any;
|
5 | tState: number;
|
6 | value: any;
|
7 | string: string | undefined;
|
8 | stringBuffer: Uint8Array;
|
9 | stringBufferOffset: number;
|
10 | unicode: string | undefined;
|
11 | highSurrogate: number | undefined;
|
12 | key: any;
|
13 | mode: any;
|
14 | stack: any[];
|
15 | state: number;
|
16 | bytes_remaining: number;
|
17 | bytes_in_sequence: number;
|
18 | temp_buffs: {
|
19 | "2": Uint8Array;
|
20 | "3": Uint8Array;
|
21 | "4": Uint8Array;
|
22 | };
|
23 | encoder: TextEncoder;
|
24 | decoder: TextDecoder;
|
25 | offset: number;
|
26 | encode(string: any): Uint8Array;
|
27 | decode(buffer: any): string;
|
28 | onError(err: any): void;
|
29 | charError(buffer: any, i: any): void;
|
30 | appendStringChar(char: any): void;
|
31 | appendStringBuf(buf: any, start: any, end: any): void;
|
32 | write(buffer: any): void;
|
33 | parseError(token: any, value: any): void;
|
34 | push(): void;
|
35 | pop(): void;
|
36 | emit(value: any): void;
|
37 | onValue(value: any): void;
|
38 | onToken(token: any, value: any): void;
|
39 | numberReviver(text: any): void;
|
40 | }
|
41 | declare namespace Parser {
|
42 | export { C };
|
43 | }
|
44 | declare namespace C {
|
45 | const LEFT_BRACE: number;
|
46 | const RIGHT_BRACE: number;
|
47 | const LEFT_BRACKET: number;
|
48 | const RIGHT_BRACKET: number;
|
49 | const COLON: number;
|
50 | const COMMA: number;
|
51 | const TRUE: number;
|
52 | const FALSE: number;
|
53 | const NULL: number;
|
54 | const STRING: number;
|
55 | const NUMBER: number;
|
56 | const START: number;
|
57 | const STOP: number;
|
58 | const TRUE1: number;
|
59 | const TRUE2: number;
|
60 | const TRUE3: number;
|
61 | const FALSE1: number;
|
62 | const FALSE2: number;
|
63 | const FALSE3: number;
|
64 | const FALSE4: number;
|
65 | const NULL1: number;
|
66 | const NULL2: number;
|
67 | const NULL3: number;
|
68 | const NUMBER1: number;
|
69 | const NUMBER3: number;
|
70 | const STRING1: number;
|
71 | const STRING2: number;
|
72 | const STRING3: number;
|
73 | const STRING4: number;
|
74 | const STRING5: number;
|
75 | const STRING6: number;
|
76 | const VALUE: number;
|
77 | const KEY: number;
|
78 | const OBJECT: number;
|
79 | const ARRAY: number;
|
80 | }
|