import { type AlchemySmartAccountClient, type AlchemySmartAccountClientConfig } from "@account-kit/infra"; import { type AccountLoupeActions, type LightAccount, type LightAccountClientActions, type ModularAccountV2, type MultiOwnerLightAccount, type MultiOwnerLightAccountClientActions, type MultiOwnerModularAccount, type MultiOwnerPluginActions, type PluginManagerActions } from "@account-kit/smart-contracts"; import type { Address, Chain } from "viem"; import type { AlchemyAccountsConfig, AlchemySigner, SupportedAccount, SupportedAccounts, SupportedAccountTypes } from "../types"; import { type GetAccountParams } from "./getAccount.js"; export type GetSmartAccountClientParams = Omit>, "transport" | "account" | "chain"> & GetAccountParams; export type ClientActions = TAccount extends LightAccount ? LightAccountClientActions : TAccount extends MultiOwnerModularAccount ? MultiOwnerPluginActions> & PluginManagerActions> & AccountLoupeActions> : TAccount extends MultiOwnerLightAccount ? MultiOwnerLightAccountClientActions : TAccount extends ModularAccountV2 ? {} : never; export type GetSmartAccountClientResult = { client?: AlchemySmartAccountClient>; address?: Address; isLoadingClient: boolean; error?: Error; }; export declare function getSmartAccountClient(params: GetSmartAccountClientParams, config: AlchemyAccountsConfig): GetSmartAccountClientResult>;