export declare namespace URLUtils { const isLocalhost: boolean; const searchParams: URLSearchParams; /** * * @param shouldExist */ function validateSearchParams(shouldExist: string[]): void; /** * url?test=1 * getUrlParameters().test * @param href override search */ /** * removes all parameters from the window.location.url * url?test=1 -> url * @param add */ function changeLocationURL(newUrl: string): void; /** * maybe there is something better? URL class? * @param values */ function joinUrl(...values: string[]): string; function toAbsUrl(url: string): string; /** * todo should check for hash tag * @param url like www.google.nl * @param param "test=1" */ function addParameterStr(url: string, param: string): string; /** * @deprecated use addParameterStr instead * todo should check for hash tag * @param url like www.google.nl * @param param */ function addParameterToURL(url: string, param: string): string; /** * addParameters('google.nl?v=2', {test:2}) -> google.nl?v=2&test=2 * todo should check for hash tag * @param url like www.google.nl * @param parameters {test:1} */ function addParameters(url: string, parameters: { [key: string]: string; }): string; /** * 'http://localhost/\example//author/admin///' -> 'http://localhost/example/author/admin/' * @param url */ function clean(url: string): string; function resolve(...parts: readonly string[]): string; }