/** * Converts a plain object into a `URLSearchParams` object. * * @remarks * This function handles various data types: * - `undefined` values are skipped. * - Arrays are appended as multiple entries with the same key. * - Objects (including nested objects in arrays) are JSON stringified. * - Other values are converted to strings. * * @param obj - The object to convert. * @returns A `URLSearchParams` instance populated with the object's data. * * @example * ```ts * const params = objectToSearchParams({ * id: 123, * tags: ["a", "b"], * meta: { valid: true } * }); * // Result: "id=123&tags=a&tags=b&meta=%7B%22valid%22%3Atrue%7D" * ``` */ export declare function objectToSearchParams(obj: Record): URLSearchParams;