import { QueryParams, QueryParamKey, QueryParamPathComponent } from "./types";
/**
 * Expands a search params into structural types. Supported types are Arrays,
 * Objects and basic value types. Heavily inspired by
 * {@link https://github.com/rack/rack/blob/bad8fe37c8867596855dcd0b3fe3030acc6b8621/lib/rack/query_parser.rb#L63-L68|Rack's nested query parser}.
 *
 * @example
 * // returns { one: { two: "3" } };
 * parseQuery("?one[two]=3")
 */
export declare function parseQuery(query: string): QueryParams;
/**
 * Parses nested search parameters keys into their individual path components.
 */
export declare function parseQueryParamKey(key: QueryParamKey): QueryParamPathComponent[];
