import { QueryParam } from './client'; /** * Represents a mapping of field names to their corresponding properties in a type `T`. * The keys of the mapping are strings, and the values can be either keys of `T` or nested `FieldMap` objects. * * @template T * The type for which the field mapping is defined */ export interface FieldMap { [key: string]: keyof T | FieldMap; } /** * Converts an object with query parameters to a URLSearchParams object. * * @template T * The type of the input object, which must extend `Record` * @param {T} obj * The object with query parameters to convert * @returns {URLSearchParams} An URLSearchParams object containing the converted query parameters */ export declare const searchParamsFromObj: >(obj: T) => URLSearchParams; /** * Converts keys in object to lowercase * * @param data * The source object to convert * @returns A new object with all keys converted to lowercase */ export declare const convertKeysToLowerCase: (data: any) => any; /** * Applies the {@link FieldMap} to an object, transforming its properties based on the specified mapping. * * @template R * The type of the resulting mapped object * @param dataR * The source object to be mapped * @param mappingR * The mapping that defines how properties should be transformed * @returns The resulting object with properties transformed based on the mapping */ export declare const mapObjectFields: (data: any, mapping: FieldMap) => R; //# sourceMappingURL=utils.d.ts.map