/** * Serialize a query-params object into a `?a=1&b=2` string, matching Axios' * default `paramsSerializer` so the backend keeps receiving the exact same * wire format it did under the Axios client. The notable Axios conventions * reproduced here: * * - `null` / `undefined` values are omitted. * - A top-level array uses the bracket form: `ids=[1,2]` → `ids[]=1&ids[]=2`. * - Arrays nested inside an object are indexed: * `filter={tags:[a,b]}` → `filter[tags][0]=a&filter[tags][1]=b`. * - Nested objects use bracket paths: `filter={x:1}` → `filter[x]=1`. * * Encoding matches Axios' `AxiosURLSearchParams` byte-for-byte: `encodeURIComponent` * then un-escape the characters Axios leaves literal (`:`, `$`, `,`) and render * space as `+`. Brackets stay percent-encoded (`%5B`/`%5D`), as Axios does for * object/array params. (Plain `URLSearchParams` diverges here — it encodes `:` * and `,` — so we encode by hand.) */ export declare const serializeParams: (params?: Record) => string; /** * Join a base URL and an endpoint the way Axios' `combineURLs` did: exactly one * slash between them regardless of whether the endpoint has a leading slash. * Most endpoints are relative (`connection/connectors`), a few are rooted * (`/initWorkspace`) — both must yield `…/v1/`. Naive concatenation * produced `…/v1connection/...`. Absolute endpoints pass through untouched, * matching Axios. */ export declare const combineUrl: (baseUrl: string, endpoint: string) => string; //# sourceMappingURL=params.d.ts.map