1 | interface EncodeOptions {
|
2 | align?: boolean;
|
3 | section?: string;
|
4 | sort?: boolean;
|
5 | whitespace?: boolean;
|
6 | newline?: boolean;
|
7 | platform?: string;
|
8 | bracketedArray?: boolean;
|
9 | }
|
10 |
|
11 | interface DecodeOptions {
|
12 | bracketedArray?: boolean;
|
13 | }
|
14 |
|
15 | export function decode(str: string, options?: DecodeOptions): {
|
16 | [key: string]: any;
|
17 | };
|
18 | export function parse(str: string, options?: DecodeOptions): {
|
19 | [key: string]: any;
|
20 | };
|
21 | export function encode(object: any, options?: EncodeOptions | string): string;
|
22 | export function stringify(object: any, options?: EncodeOptions | string): string;
|
23 | export function safe(val: string): string;
|
24 | export function unsafe(val: string): string;
|