/** * Appends query parameters to a URL string. * Handles both URLs with existing query strings and those without. * * @param url - The base URL to append parameters to. Can be absolute or relative * (relative URLs are resolved against the current window location). * @param params - An object containing key-value pairs to add as query parameters * @returns The complete URL with the new parameters appended * * @example * ```typescript * // Add parameters to a URL without existing query string * addParamToURL('https://example.com/page', { foo: 'bar' }); * // Returns: 'https://example.com/page?foo=bar' * * // Add parameters to a URL with existing query string * addParamToURL('https://example.com/page?existing=value', { foo: 'bar' }); * // Returns: 'https://example.com/page?existing=value&foo=bar' * ``` */ export default function addParamToURL(url: string, params: Record): string; //# sourceMappingURL=addParamToURL.d.ts.map