import { ErrorCode } from './constants'; /** * Represents the response of a wallet error during the connection process. * * @interface WalletErrorResponse */ export interface WalletErrorResponse { /** * The error code. * * @type {ErrorCode} */ code: ErrorCode; /** * The error message. * * @type {string} */ message: string; /** * Additional details for the error. * * @type {Record} */ details: Record; } /** * Handles a connection error based on the provided wallet and error. * * @param {Error} e - The error object. * @param {string} wallet - The name of the wallet. * @return {WalletErrorResponse} The error response object containing the error code, message, and details. */ export declare function handleSuiConnectionError(e: Error, wallet: string): WalletErrorResponse; /** * Handles a connection error based on the provided wallet and error. * * @param {Error} e - The error object. * @param {string} wallet - The name of the wallet. * @return {WalletErrorResponse} The error response object containing the error code, message, and details. */ export declare function handleAptosConnectionError(e: Error, wallet: string): WalletErrorResponse;