/** * Converts an object into a URL-encoded query string suitable for HTTP requests. * * @deprecated Use `serializeToQueryString` from `@ts-utilkit/serialization` instead. * The serialization package version supports richer options (arrayFormat, encodeValues). * Will be removed in the next major version. * * @param obj - The object whose properties will be converted to query parameters. * @returns A URL-encoded query string without the leading '?'. * * @example * // Basic usage * objectToQueryString({ name: 'John Doe', age: 30 }); * // 'name=John%20Doe&age=30' * * @example * // With special characters * objectToQueryString({ search: 'price>100', tags: 'promo,sale' }); * // 'search=price%3E100&tags=promo%2Csale' * * @example * // Boolean and number values * objectToQueryString({ active: true, page: 1, limit: 50 }); * // 'active=true&page=1&limit=50' * * @example * // Empty object * objectToQueryString({}); // '' * * @example * // Real-world: Building API request URLs * const filters = { category: 'books', minPrice: 10, maxPrice: 50 }; * const url = `https://api.example.com/products?${objectToQueryString(filters)}`; * // 'https://api.example.com/products?category=books&minPrice=10&maxPrice=50' * * @note All values are converted to strings before encoding using String(value). * @note Does not handle nested objects or arrays specially - they'll be converted using toString(). * @note Does not include the leading '?' character used in URLs. * @note Uses encodeURIComponent() for proper URL encoding of keys and values. * @note For complex nested structures, consider using URLSearchParams or specialized libraries. * * @complexity Time: O(n), Space: O(n) - Where n is the number of properties */ export declare function objectToQueryString(obj: Record): string; //# sourceMappingURL=objectToQueryString.d.ts.map