import { IUri } from "./IUri"; import { User } from "./User"; /** * @hidden */ export declare class Utils { static compareObjects(u1: User, u2: User): boolean; static expiresIn(expires: string): number; static now(): number; static isEmpty(str: string): boolean; static extractIdToken(encodedIdToken: string): any; static base64EncodeStringUrlSafe(input: string): string; static base64DecodeStringUrlSafe(base64IdToken: string): string; static encode(input: string): string; static utf8Encode(input: string): string; static decode(base64IdToken: string): string; static decodeJwt(jwtToken: string): any; static deserialize(query: string): any; static isIntersectingScopes(cachedScopes: Array, scopes: Array): boolean; static containsScope(cachedScopes: Array, scopes: Array): boolean; static convertToLowerCase(scopes: Array): Array; static removeElement(scopes: Array, scope: string): Array; static decimalToHex(num: number): string; static getLibraryVersion(): string; /** * Given a url like https://a:b/common/d?e=f#g, and a tenantId, returns https://a:b/tenantId/d * @param href The url * @param tenantId The tenant id to replace */ static replaceFirstPath(href: string, tenantId: string): string; static createNewGuid(): string; static GetUrlComponents(url: string): IUri; static CanonicalizeUri(url: string): string; /** * Checks to see if the url ends with the suffix * Required because we are compiling for es5 instead of es6 * @param url * @param str */ static endsWith(url: string, suffix: string): boolean; }