import { JsonRpcProvider, RawSigner } from '@mysten/sui.js'; import { WalletAdapter } from '@mysten/wallet-adapter-base'; import { SuiSignAndExecuteTransactionBlockInput } from '@mysten/wallet-standard'; import { Connection, Keypair, VersionedTransaction, Transaction } from '@solana/web3.js'; import { ethers, Signer, Wallet, Provider } from 'ethers'; import { Aptos, Ed25519Account, KeylessAccount } from '@aptos-labs/ts-sdk'; import type { WalletClient } from 'viem'; export type PromiseOrValue = T | Promise; export type ApiResponse = { status: string; data: any; message: string; }; export type SolanaSignerType = Keypair | SolanaWalletSigner; export type AptosSignerType = Ed25519Account | AptosWalletSigner | KeylessAccount; export type SuiSignerType = RawSigner | SuiWalletSigner; export type EvmSignerType = Signer | Wallet | WalletClient; export type SolanaWalletSigner = (transaction: T) => Promise; export type AptosWalletSigner = AptosTransactionFunction; export type SuiWalletSigner = SignAndExecuteTransactionBlockFunction; export interface AptosTransactionFunction { (transaction: any, options?: any): Promise<{ hash: string; }>; } type OptionalProperties, U extends keyof T> = Omit & Partial>; type SignAndExecuteTransactionBlockFunction = (transactionInput: OptionalProperties) => ReturnType; export declare enum NetworkId { 'solana' = 1, 'aptos' = 2, 'polygon' = 3, 'bsc' = 4, 'sui' = 5, 'ethereum' = 6, 'base' = 7, 'klaytn' = 8, 'zkSync' = 9, 'Avalanche' = 10, 'Arbitrum' = 11, 'hedera' = 12, 'monad' = 13, 'optimistic' = 14 } export declare enum BridgeId { 'native' = 0, 'wormhole' = 1, 'layerzero' = 2, 'cctp' = 3, 'cctpV2' = 4, 'SWFT' = 99, 'LZ_OFT' = 102 } export interface TransactionSigners { solana?: SolanaSignerType; aptos?: AptosSignerType; sui?: SuiSignerType; polygon?: ethers.Wallet | WalletClient; bsc?: ethers.Wallet | WalletClient; base?: ethers.Wallet | WalletClient; eth?: ethers.Wallet | WalletClient; avalanche?: ethers.Wallet | WalletClient; arbitrum?: ethers.Wallet | WalletClient; zkSync?: ethers.Wallet | WalletClient; hedera?: ethers.Wallet | WalletClient; monad?: ethers.Wallet | WalletClient; } export type ConnectionProviders = { solana?: Connection; aptos?: Aptos; sui?: JsonRpcProvider; polygon?: Provider; bsc?: Provider; base?: Provider; eth?: Provider; avalanche?: Provider; arbitrum?: Provider; zkSync?: Provider; hedera?: Provider; monad?: Provider; }; export interface GAS_DATA { APPROVE: string; SWAP?: string; WORMHOLE?: string; WORMHOLE_SWAP?: string; WORMHOLE_REDEEM?: string; CCTP?: string; CCTP_SWAP?: string; CCTP_REDEEM?: string; LZ?: string; LZ_SWAP?: string; LZ_REDEEM?: string; } type EntryFunctionId = string; type MoveType = string; export type EntryFunctionPayload = { function: EntryFunctionId; type_arguments: Array; arguments: Array; }; export type Coin = { coin: { value: string; }; }; export {};