UNPKG

@kwiz/common

Version:

KWIZ common utilities and helpers for M365 platform

9 lines (8 loc) 814 B
import { AzureEnvironment, ITenantInfo } from "../../types/auth"; export declare function DiscoverTenantInfo(hostNameOrId: string, sync?: false): Promise<ITenantInfo>; export declare function DiscoverTenantInfo(hostNameOrId: string, sync: true): ITenantInfo; export declare function AutoDiscoverTenantInfo(sync?: false): Promise<ITenantInfo>; export declare function AutoDiscoverTenantInfo(sync: true): ITenantInfo; export declare function GetEnvironmentFromACSEndPoint(ACSEndPoint: string): AzureEnvironment; export declare function GetAzureADLoginEndPoint(environment: AzureEnvironment): string; export declare function GetAzureEnvironmentFromAzureADLogin(login: string): AzureEnvironment.Production | AzureEnvironment.PPE | AzureEnvironment.China | AzureEnvironment.Germany | AzureEnvironment.USGovernmentHigh;