/** * Generates a random string. * @param length Length of string. */ export declare function generateRandomString(length: number): string; /** * Clears the hash and search fragments from window location. */ export declare function clearWindowLocationFragments(): void; /** * Generates the code verifier for the authorization code flow with PKCE * (see: https://tools.ietf.org/html/rfc7636#section-4.1) */ export declare function encodeCodeVerifier(cv: string): string; /** * Creates a code challenge. * @param codeVerifier Code verifier. */ export declare function createCodeChallenge(codeVerifier: string): string; /** * Generates a code verifier. * @param codeVerifierLength Code verifier length. */ export declare function generateCodeVerifier(codeVerifierLength: number): string; /** * Generates tenant based auth host url with the given auth host url * if a tenant is 'system', auth host will be of region based * @param inputURL Host URL * @param tenant Tenant's name * @param region Region */ export declare function generateTenantBasedAuthHost(inputURL: string, tenant?: string, region?: string): string; /** * Generates region based auth host url with the given auth host url * @param inputURL Host URL * @param region Region */ export declare function generateRegionBasedAuthHost(inputURL: string, region?: string): string;