export declare enum GrantType { AUTHORIZATION_CODE = "AUTHORIZATION_CODE", CLIENT_CREDENTIALS = "CLIENT_CREDENTIALS", PKCE = "PKCE" } export interface OAuth2CodeExchangeErrorResponse { error?: string; error_description?: string; } export interface OAuth2CodeExchangeResponse { access_token: string; expires_in: string; token_type: string; refresh_token: string; id_token: string; scope: string; } export interface OAuth2CCTokenErrorResponse { error?: string; error_description?: string; } export interface OAuth2CCTokenResponse { access_token: string; expires_in: string; } export interface OAuth2FlowOptions { clientId: string; logoutRedirectURL?: string; authDomain: string; audience?: string | string[]; scope?: string; } export interface SDKHeaderOverrideOptions { framework?: string; frameworkVersion?: string; } export interface AuthorizationCodeOptions extends OAuth2FlowOptions, SDKHeaderOverrideOptions { redirectURL: string; } export interface ClientCredentialsOptions extends OAuth2FlowOptions, SDKHeaderOverrideOptions { clientSecret: string; } export interface AuthURLParams { lang?: string; login_hint?: string; connection_id?: string; [key: string]: string | undefined; } export interface AuthURLOptions { start_page?: 'registration' | 'login'; is_create_org?: boolean; org_name?: string; org_code?: string; state?: string; post_login_redirect_url?: string; authUrlParams?: AuthURLParams; }