export declare class UrlHelper { /** * Test if the provided string is a valid URL * @param url the URL to check */ static isValidUrl(url: string): boolean; /** * Get the value of a querystring * @param {String} field The field to get the value of * @param {String} url The URL to get the value from (optional) * @return {String} The field value */ static getQueryStringParam(field: string, url: string): string; /** * @param {String} field The field name of the query string to remove * @param {String} sourceURL The source URL * @return {String} The updated URL */ static removeQueryStringParam(field: string, sourceURL: string): string; /** * Add or replace a query string parameter * @param url The current URL * @param param The query string parameter to add or replace * @param value The new value */ static addOrReplaceQueryStringParam(url: string, param: string, value: string): string; /** * Gets the current query string parameters * @returns query string parameters as object */ static getQueryStringParams(): { [parameter: string]: string; }; /** * Decodes a provided string * @param encodedStr the string to decode */ static decode(encodedStr: string): string; } export declare enum PageOpenBehavior { "Self" = "self", "NewTab" = "newTab" } export declare enum QueryPathBehavior { "URLFragment" = "fragment", "QueryParameter" = "queryparameter" }