import type { JsonRpcRequest, PendingJsonRpcResponse, Hex } from "@metamask/utils"; import type { UpgradeAccountParams } from "./types.mjs"; export type WalletUpgradeAccountHooks = { upgradeAccount: (address: string, upgradeContractAddress: string, chainId?: Hex) => Promise<{ transactionHash: string; delegatedTo: string; }>; getCurrentChainIdForDomain: (origin: string) => Hex | null; isEip7702Supported: (request: { address: string; chainId: Hex; }) => Promise<{ isSupported: boolean; upgradeContractAddress?: string; }>; getPermittedAccountsForOrigin: (origin: string) => Promise; }; /** * The RPC method handler middleware for `wallet_upgradeAccount` * * @param req - The JSON RPC request's end callback. * @param res - The JSON RPC request's pending response object. * @param hooks - The hooks required for account upgrade functionality. */ export declare function walletUpgradeAccount(req: JsonRpcRequest & { origin: string; }, res: PendingJsonRpcResponse, hooks: WalletUpgradeAccountHooks): Promise; //# sourceMappingURL=wallet_upgradeAccount.d.mts.map