import { SuiClient } from "@mysten/sui/client"; import { Ed25519Keypair } from "@mysten/sui/keypairs/ed25519"; import { Transaction } from "@mysten/sui/transactions"; import { z } from "zod"; export declare const GAS_BUDGET = 10000000; export declare const SUI_GAS_COIN_TYPE = "0x2::sui::SUI"; export declare const SUI_DEFAULT_DECIMALS = "9"; export declare const getCoin: (client: SuiClient, owner: string, coinType: string, excludeObjectId?: string) => Promise; export declare const getKeypairFromMnemonic: (mnemonic: string) => Ed25519Keypair; export declare const getKeypairFromPrivateKey: (privateKey: string) => Ed25519Keypair; export interface KeypairOptions { mnemonic?: string; name?: string; privateKey?: string; } export declare const getKeypair: (options: KeypairOptions) => Ed25519Keypair; export interface SignAndExecuteTransactionOptions { client: SuiClient; gasBudget: bigint; keypair: Ed25519Keypair; tx: Transaction; } export declare const signAndExecuteTransaction: ({ client, keypair, tx, gasBudget, }: SignAndExecuteTransactionOptions) => Promise; export declare const chainIds: readonly ["105", "103", "104"]; export declare const networks: readonly ["mainnet", "testnet", "localnet"]; export type SuiNetwork = (typeof networks)[number]; export declare const getNetwork: (network?: SuiNetwork, chainId?: (typeof chainIds)[number]) => SuiNetwork; export declare const toSmallestUnit: (amount: string, decimals?: number) => bigint; export declare const commonDepositObjectSchema: z.ZodObject<{ amount: z.ZodString; chainId: z.ZodEnum<["105", "103", "104"]>; coinType: z.ZodDefault; decimals: z.ZodString; gasBudget: z.ZodString; gatewayObject: z.ZodOptional; gatewayPackage: z.ZodOptional; mnemonic: z.ZodOptional; name: z.ZodOptional; privateKey: z.ZodOptional; receiver: z.ZodString; }, "strip", z.ZodTypeAny, { receiver: string; decimals: string; chainId: "105" | "103" | "104"; amount: string; gasBudget: string; coinType: string; privateKey?: string | undefined; mnemonic?: string | undefined; gatewayObject?: string | undefined; gatewayPackage?: string | undefined; name?: string | undefined; }, { receiver: string; decimals: string; chainId: "105" | "103" | "104"; amount: string; gasBudget: string; privateKey?: string | undefined; mnemonic?: string | undefined; gatewayObject?: string | undefined; gatewayPackage?: string | undefined; name?: string | undefined; coinType?: string | undefined; }>; export declare const commonDepositOptionsSchema: z.ZodEffects; coinType: z.ZodDefault; decimals: z.ZodString; gasBudget: z.ZodString; gatewayObject: z.ZodOptional; gatewayPackage: z.ZodOptional; mnemonic: z.ZodOptional; name: z.ZodOptional; privateKey: z.ZodOptional; receiver: z.ZodString; }, "strip", z.ZodTypeAny, { receiver: string; decimals: string; chainId: "105" | "103" | "104"; amount: string; gasBudget: string; coinType: string; privateKey?: string | undefined; mnemonic?: string | undefined; gatewayObject?: string | undefined; gatewayPackage?: string | undefined; name?: string | undefined; }, { receiver: string; decimals: string; chainId: "105" | "103" | "104"; amount: string; gasBudget: string; privateKey?: string | undefined; mnemonic?: string | undefined; gatewayObject?: string | undefined; gatewayPackage?: string | undefined; name?: string | undefined; coinType?: string | undefined; }>, { receiver: string; decimals: string; chainId: "105" | "103" | "104"; amount: string; gasBudget: string; coinType: string; privateKey?: string | undefined; mnemonic?: string | undefined; gatewayObject?: string | undefined; gatewayPackage?: string | undefined; name?: string | undefined; }, { receiver: string; decimals: string; chainId: "105" | "103" | "104"; amount: string; gasBudget: string; privateKey?: string | undefined; mnemonic?: string | undefined; gatewayObject?: string | undefined; gatewayPackage?: string | undefined; name?: string | undefined; coinType?: string | undefined; }>; /** * Parses and validates a Sui gateway address string * @param gatewayAddress - The gateway address string in format "package,object" * @returns Parsed gateway address with package and object properties * @throws Error if the gateway address format is invalid */ export declare const parseSuiGatewayAddress: (gatewayAddress: string) => { gatewayObject: string; gatewayPackage: string; }; /** * Gets the gateway address from chain ID and parses it, or uses provided package and object * @param chainId - The chain ID to get the gateway address for * @param gatewayPackage - Optional gateway package to use instead of getting from chain ID * @param gatewayObject - Optional gateway object to use instead of getting from chain ID * @returns Parsed gateway address with package and object properties * @throws Error if the gateway address is not found or format is invalid */ export declare const getSuiGatewayAndClient: (chainId: (typeof chainIds)[number], gatewayPackage?: string, gatewayObject?: string) => { client: SuiClient; gatewayObject: string; gatewayPackage: string; }; export declare const getSuiRpcByChainId: (chainId: (typeof chainIds)[number]) => "https://fullnode.mainnet.sui.io:443" | "https://fullnode.testnet.sui.io:443" | "https://fullnode.devnet.sui.io:443" | "http://127.0.0.1:9000";