/** * Query parameters are URL-encoded into the request URL as `param_*` entries. * Once their encoded length passes this budget, {@link serializeQueryParamsForUrl} * returns null so that they are routed through the multipart body instead, keeping * oversized payloads out of the URL where HTTP intermediaries (nginx, AWS ALB, * CloudFront) reject them with HTTP 414 or 400. The threshold leaves ample * headroom under common request line limits. */ export declare const MAX_URL_BIND_PARAM_LENGTH = 4096; /** * Early-return variant of the `param_*` serialization performed by * {@link toSearchParams}: serializes {@link query_params} into `param_*` * URL entries, returning them so the caller can reuse the result without * serializing the params a second time, or returns null as soon as the * URL-encoded length exceeds {@link MAX_URL_BIND_PARAM_LENGTH} — in which * case the params should be sent as a multipart/form-data body instead. */ export declare function serializeQueryParamsForUrl(query_params: Record): [string, string][] | null; /** * Builds a multipart/form-data body from a record of named string parts. * * Example output: * * --BOUNDARY\r\n * Content-Disposition: form-data; name="query"\r\n * \r\n * SELECT * FROM t WHERE x IN {values:Array(String)}\r\n * --BOUNDARY\r\n * Content-Disposition: form-data; name="param_values"\r\n * \r\n * ['a@b.com','c@d.com']\r\n * --BOUNDARY--\r\n */ export declare function buildMultipartBody(parts: Record, boundary: string): string;