import { _ChainInfo } from '@soul-wallet/chain-list/types'; import { AuthRequestV2 } from '@soul-wallet/extension-base/background/KoniTypes'; import { AccountAuthType, AuthorizeRequest, RequestAuthorizeTab } from '@soul-wallet/extension-base/background/types'; import { ChainService } from '@soul-wallet/extension-base/services/chain-service'; import { KeyringService } from '@soul-wallet/extension-base/services/keyring-service'; import RequestService from '@soul-wallet/extension-base/services/request-service'; import { AuthUrls } from '@soul-wallet/extension-base/services/request-service/types'; import { BehaviorSubject } from 'rxjs'; export default class AuthRequestHandler { #private; private keyringService; private readonly authorizeStore; private authorizeCached; private readonly authorizeUrlSubject; private readonly evmChainSubject; readonly authSubjectV2: BehaviorSubject; constructor(requestService: RequestService, chainService: ChainService, keyringService: KeyringService); private getAddressList; get numAuthRequestsV2(): number; private get allAuthRequestsV2(); private updateIconAuthV2; setAuthorize(data: AuthUrls, callback?: () => void): void; getAuthorize(update: (value: AuthUrls) => void): void; getAuthList(): Promise; getDAppChainInfo(options: { accessType: AccountAuthType; autoActive?: boolean; defaultChain?: string; url?: string; }): _ChainInfo | undefined; private authCompleteV2; authorizeUrlV2(url: string, request: RequestAuthorizeTab): Promise; getAuthRequestV2(id: string): AuthRequestV2; get subscribeEvmChainChange(): BehaviorSubject; get subscribeAuthorizeUrlSubject(): BehaviorSubject; ensureUrlAuthorizedV2(url: string): Promise; resetWallet(): void; }