// Copyright © 2022-2026 Partium, Inc. DBA Partium import { BasePaginatedResponse } from '../models/base-paginated-response'; /** * Converts camel case to snake case * * @param data object with properties in camel case format * @returns object in snake case format */ export declare const camelToSnake: (data: {}) => any; /** * Converts snake case to camel case * * @param data object with properties in snake case format * @returns object in camel case format */ export declare const snakeToCamelCase: (data: {}) => any; /** * Add url parameters to the given url and return it as string. * If one of the parameter already exists, it will be added another time. * If an object of the array contains multiple params, all are added. * * @param url the url to add the parameters to * @param paramObjects array of objects with parameters that should be appended, eg: [{ pageNumber: 4 }] * @returns the given url with the appended parameters */ export declare const addUrlParameters: (url: string, paramObjects: Array) => string; /** * Add an url parameter to the given url and return it as string. * If the same parameter already exists, it will be added another time. * If an object of the array contains multiple params, all are added. * * @param url the url to add the parameter to * @param paramObject the object with one or more params to append, eg: { pageNumber: 4 } * @returns the given url with the appended parameter */ export declare const addUrlParameter: (url: string, paramObject: Object) => string; /** * Serialize a params object into single-key query param objects for HttpsService. * Array values are deduplicated (first-seen order) and joined with commas. * * @param params object with scalar or array query param values * @returns query param objects consumable by HttpsService */ export declare const toQueryParams: (params: object) => Array; /** * Extracts the cursor query parameter from a paginated response next URL. * * @param response paginated response with optional next URL * @returns cursor value if present */ export declare const extractNextCursor: (response: BasePaginatedResponse) => string | undefined;