1 | export declare type arrayFormat = 'none' | 'brackets' | 'index';
|
2 | export declare type booleanFormat = 'none' | 'string' | 'unicode' | 'empty-true';
|
3 | export declare type nullFormat = 'default' | 'string' | 'hidden';
|
4 | export interface IOptions {
|
5 | arrayFormat?: arrayFormat;
|
6 | booleanFormat?: booleanFormat;
|
7 | nullFormat?: nullFormat;
|
8 | }
|
9 | export interface IFinalOptions {
|
10 | arrayFormat: arrayFormat;
|
11 | booleanFormat: booleanFormat;
|
12 | nullFormat: nullFormat;
|
13 | }
|
14 | export declare const makeOptions: (opts?: IOptions) => IFinalOptions;
|
15 | export declare const decodeValue: (value: string) => string;
|
16 | export declare const encodeArray: (name: string, arr: any[], opts: IFinalOptions) => string;
|
17 | export declare const encode: (name: string, value: any, opts: IFinalOptions) => string;
|
18 | export declare const decode: (value: any, opts: IFinalOptions) => string | boolean | null;
|