/** * How an array is written to the query string: * - `comma`: one pair, values joined with `,` (`a=1%2C2`) * - `repeat`: one pair per value under the same key (`a=1&a=2`) * - `indices`: one pair per value, keyed by position (`a%5B0%5D=1&a%5B1%5D=2`) * - `brackets`: one pair per value, keyed with empty brackets (`a%5B%5D=1&a%5B%5D=2`) */ export type QueryArrayFormat = 'comma' | 'repeat' | 'indices' | 'brackets'; /** How `encodeQueryString` lays out arrays and nested objects; both are fixed per SDK by its config. */ export type QueryStringOptions = { /** How an array becomes pairs; see {@link QueryArrayFormat}. */ readonly arrayFormat: QueryArrayFormat; /** Writes nested object keys as `a.b` instead of `a[b]`. Array positions keep their brackets. */ readonly allowDots: boolean; }; /** * Encodes the own enumerable properties of `query` as `key=value` pairs joined with `&`, recursing * into nested objects and arrays. Anything that is not an object encodes to an empty string. */ export declare function encodeQueryString(query: unknown, options: QueryStringOptions): string; //# sourceMappingURL=query-string.d.ts.map