export type SuiNetworkName = 'mainnet' | 'testnet' | 'devnet'; /** Raw serialized transaction (base64) */ type SuiRawTransactionArg = { transaction: string; walletId: string; }; /** Transfer parameters — webview builds the transaction */ type SuiTransferArg = { to: string; value: string; walletId: string; gasPrice?: number; gasBudget?: number; }; /** * Messages exchanged for sui requests. */ export type SuiMessages = { sui_signMessage: (arg: { message: string; walletId: string; }) => Promise<{ signature: string; }>; /** Sign a raw base64-encoded transaction */ sui_signTransaction: (arg: SuiRawTransactionArg) => Promise<{ signature: string; }>; /** Sign a transfer transaction built from to/value parameters */ sui_signTransferTransaction: (arg: SuiTransferArg) => Promise<{ signature: string; }>; /** Send (execute) a raw base64-encoded transaction */ sui_sendTransaction: (arg: SuiRawTransactionArg) => Promise<{ digest: string; }>; /** Sign and send a raw base64-encoded transaction */ sui_signAndSendTransaction: (arg: SuiRawTransactionArg) => Promise<{ digest: string; }>; /** Sign and send a transfer transaction built from to/value parameters */ sui_signAndSendTransferTransaction: (arg: SuiTransferArg) => Promise<{ digest: string; }>; sui_getNetworkName: (arg: { walletId: string; }) => Promise; }; export {};