import { Account, CustomSource, LocalAccount, PublicClient, Transport, Chain as ViemChain, WalletClient } from 'viem'; import { SignAuthorizationParameters, SignAuthorizationReturnType } from 'viem/accounts'; import { TurnkeyWalletConnectorBase, TurnkeyWalletConnectorNameAndKey } from '@dynamic-labs/embedded-wallet'; import { EthereumWallet, IChainRpcProviders, RegisterEvmProvidersConfig } from '@dynamic-labs/ethereum-core'; import { JwtVerifiedCredential } from '@dynamic-labs/sdk-api-core'; import { EvmNetwork, GenericNetwork, IUITransaction, WalletUiUtils } from '@dynamic-labs/types'; import { WalletBookSchema } from '@dynamic-labs/wallet-book'; import type { Chain, ISendBalanceWalletConnector, InternalWalletConnector } from '@dynamic-labs/wallet-connector-core'; export type TurnkeyEVMConnectorProps = { walletUiUtils: WalletUiUtils; walletBook: WalletBookSchema; evmNetworks: GenericNetwork[]; appName?: string; chainRpcProviders: IChainRpcProviders; providersConfig?: RegisterEvmProvidersConfig; }; type SignAuthorizationParametersWithoutPrivateKey = Omit; export declare class LegacyEVMEmbeddedWalletConnector extends TurnkeyWalletConnectorBase implements ISendBalanceWalletConnector { walletFallback: { brand: { alt: string; spriteId: string; }; name: string; }; ChainWallet: typeof EthereumWallet; connectedChain: Chain; supportedChains: Chain[]; evmNetworks: EvmNetwork[]; verifiedCredentialChain: string; providersConfig: RegisterEvmProvidersConfig; walletUiUtils: WalletUiUtils; private _turnkeyAccount; static lastUsedChainIdStorageKey: string; private _selectedChainId; constructor(nameAndKey: TurnkeyWalletConnectorNameAndKey, props: TurnkeyEVMConnectorProps); private getLastUsedChainId; getNetwork(): Promise; supportsNetworkSwitching(): boolean; switchNetwork({ networkChainId, }: { networkChainId: number | string | undefined; }): Promise; setVerifiedCredentials(verifiedCredentials: JwtVerifiedCredential[]): void; validateActiveWallet(expectedAddress: string): Promise; signAuthorization(parameters: SignAuthorizationParametersWithoutPrivateKey): Promise; getBalance(address: string): Promise; signMessage(messageToSign: string): Promise; getPublicClient(): Promise | undefined>; getSigner(): Promise | undefined>; getAccount(): Promise; getWalletClient(): WalletClient | undefined; private get currentChainId(); get lastUsedChainId(): number | undefined; set lastUsedChainId(chainId: number | undefined); private get networkRpcUrl(); private get currentEvmNetwork(); private internalSign; private internalSignTransaction; private internalSignTypedData; private internalSignMessage; private doRetryableTurnkeyAction; private createTurnkeyAccount; private refreshTurnkeyAccount; getViemAccountCustomSource(): Promise; private getTurnkeyAccount; createUiTransaction(from: string): Promise; getBlockExplorerUrlsForCurrentNetwork(): Promise; getEnabledNetworks(): GenericNetwork[]; isSignAuthorizationSupported(): boolean; } export {};