type Token = { bearerToken: { tokenType: string; expiresIn: number; accessToken: string; refreshToken: string; domain: string; }; clientId: string; scopes: string[]; }; type PopupConfiguration = { title?: string; width?: number; height?: number; top?: number; left?: number; }; type AuthConfigurationInput = { domain?: string; clientId: string; scopes: string[]; }; declare function authorize(configuration: AuthConfigurationInput, popupConfiguration?: PopupConfiguration): Promise; declare function refresh(tokenInput: Token): Promise; declare function revoke(tokenInput: Token): Promise; export { authorize, refresh, revoke }; export type { AuthConfigurationInput, PopupConfiguration, Token };