1 | import { IOptions } from './encode';
|
2 | export { IOptions };
|
3 | export declare type SearchParams = Record<string, string | boolean | null | Array<string | boolean | null> | undefined>;
|
4 |
|
5 |
|
6 |
|
7 | export declare const parse: <T extends Record<string, any> = Record<string, string | boolean | (string | boolean | null)[] | null | undefined>>(path: string, opts?: IOptions | undefined) => T;
|
8 |
|
9 |
|
10 |
|
11 | export declare const build: <T extends Record<string, any> = Record<string, string | boolean | (string | boolean | null)[] | null | undefined>>(params: T, opts?: IOptions | undefined) => string;
|
12 | export interface IOmitResponse {
|
13 | querystring: string;
|
14 | removedParams: object;
|
15 | }
|
16 |
|
17 |
|
18 |
|
19 | export declare const omit: (path: string, paramsToOmit: string[], opts?: IOptions | undefined) => IOmitResponse;
|
20 | export interface IKeepResponse {
|
21 | querystring: string;
|
22 | keptParams: object;
|
23 | }
|
24 |
|
25 |
|
26 |
|
27 | export declare const keep: (path: string, paramsToKeep: string[], opts?: IOptions | undefined) => IKeepResponse;
|