import { type Account, type Address, type Chain, type CustomTransport, type PublicClient, type WalletClient } from 'viem'; import { type Wallet, type WalletAccount } from '@mysten/wallet-standard'; import { SuiClient } from '@mysten/sui/client'; import type { ChainName, ChainType } from '../types.js'; export type CustomProvider = { request(...args: any): Promise; }; export type EvmUninitializedConfig = { userAddress: Address; chain: ChainName; provider: CustomProvider; }; export type EvmInitializedConfig = { walletClient: WalletClient; publicClient: PublicClient; }; export declare class EvmProvider { readonly walletClient: WalletClient; readonly publicClient: PublicClient; constructor(payload: EvmUninitializedConfig | EvmInitializedConfig); } export type SuiInitializedConfig = { wallet: Wallet; account: WalletAccount; client: SuiClient; }; export declare class SuiProvider { readonly wallet: Wallet; readonly account: WalletAccount; readonly client: SuiClient; constructor(payload: SuiInitializedConfig); } export type ChainProviderType = EvmProvider | SuiProvider; export type ChainProvider = T extends 'evm' ? EvmProvider : T extends 'sui' ? SuiProvider : ChainProviderType; export type GetChainProviderType = T extends 'arb' ? ChainProvider<'evm'> : T extends 'sui' ? ChainProvider<'sui'> : never; export type NonEmptyChainProviders = [ChainProvider, ...ChainProvider[]]; //# sourceMappingURL=Providers.d.ts.map