import { default as queryString, StringifyOptions } from 'query-string'; export type APIParams = Record; interface QueryArgs { [k: string]: any; } export type QueryParams = string | string[][] | QueryArgs | APIParams | URLSearchParams | null; declare function buildQueryString(params: QueryParams, opts?: StringifyOptions): string | null; declare function buildQueryURL(route: string, params?: QueryParams, opts?: StringifyOptions): string; declare const getHashString: (hashString: string | null) => queryString.ParsedQuery | null; declare const setHashString: (args: QueryArgs, opts?: StringifyOptions) => void; declare const getQueryString: (queryString: string | null) => queryString.ParsedQuery | null; declare const setQueryString: (args: QueryArgs, opts?: StringifyOptions) => void; export { buildQueryString, buildQueryURL, getQueryString, setQueryString, getHashString, setHashString, }; export declare function joinURL(...args: any[]): any; export declare function addQueryString(url: string, params: any): string;