import { Alert } from '@ringcentral-integration/commons/modules/AlertV2' ; import { Auth as RcAuth } from '@ringcentral-integration/commons/modules/AuthV2' ; import { Locale } from '@ringcentral-integration/commons/modules/Locale' ; import { Block } from '@ringcentral-integration/widgets/modules/Block' ; import RouterInteraction from '@ringcentral-integration/widgets/modules/RouterInteraction' ; import { EvAgentData , EvClient , EvTokenType } from '../../lib/EvClient' ; import { EvSubscription } from '../EvSubscription' ; import { EvTabManager } from '../EvTabManager' ; export interface EvAuthOptions { } export interface Deps { locale : Locale ; alert : Alert ; routerInteraction : RouterInteraction ; evClient : EvClient ; auth : RcAuth ; block : Block ; evSubscription : EvSubscription ; tabManager ? : EvTabManager ; evAuthOptions ? : EvAuthOptions ; } export interface State { connected : boolean ; agent : EvAgentData ; } export interface Auth extends State { connecting ? : boolean ; disconnecting ? : boolean ; setConnectionData ( connection ) : void ; } export interface AuthenticateWithTokenType { rcAccessToken ? : string ; tokenType ? : EvTokenType ; shouldEmitAuthSuccess ? : boolean ; }