import type { Prettify } from "../../utils/type-utils.js"; import type { Wallet } from "../interfaces/wallet.js"; import type { WalletId } from "../wallet-types.js"; import type { WalletCapabilities, WalletCapabilitiesRecord } from "./types.js"; export type GetCapabilitiesOptions = { wallet: Wallet; chainId?: number; }; export type GetCapabilitiesResult = Prettify>; /** * Get the capabilities of a wallet based on the [EIP-5792](https://eips.ethereum.org/EIPS/eip-5792) specification. * * This function is dependent on the wallet's support for EIP-5792, but will not throw. * **The returned object contains a `message` field detailing any issues with the wallet's support for EIP-5792.** * * @param {GetCapabilitiesOptions} options * @param {Wallet} options.wallet - The wallet to get the capabilities of. * @returns {Promise} - A promise that resolves to the capabilities of the wallet based on the [EIP-5792](https://eips.ethereum.org/EIPS/eip-5792) spec. * @beta * @example * ```ts * import { getCapabilities } from "thirdweb/wallets/eip5792"; * * const wallet = createWallet("com.coinbase.wallet"); * const capabilities = await getCapabilities({ wallet }); * ``` * * @extension EIP5792 */ export declare function getCapabilities({ wallet, chainId, }: GetCapabilitiesOptions): Promise; export declare function toGetCapabilitiesResult(result: Record, chainIdFilter?: number): GetCapabilitiesResult; //# sourceMappingURL=get-capabilities.d.ts.map