import { type CreateLightAccountParams, type CreateModularAccountV2Params, type CreateMultiOwnerLightAccountParams, type CreateMultiOwnerModularAccountParams, type LightAccountVersion } from "@account-kit/smart-contracts"; import { type Transport } from "viem"; import type { AlchemyAccountsConfig, AlchemySigner, SupportedAccountTypes, SupportedAccounts } from "../types.js"; import type { GetAccountParams } from "./getAccount"; type OmitSignerTransportChain = T extends infer U ? Omit : never; export type AccountConfig = TAccount extends "LightAccount" ? OmitSignerTransportChain>> : TAccount extends "MultiOwnerLightAccount" ? OmitSignerTransportChain>> : TAccount extends "MultiOwnerModularAccount" ? OmitSignerTransportChain> : TAccount extends "ModularAccountV2" ? OmitSignerTransportChain> : never; export type CreateAccountParams = { type: TAccount; accountParams?: AccountConfig; }; /** * Creates an account of a specified type using the provided parameters and configuration. Supports creating LightAccount and MultiOwnerModularAccount types. * * @example * ```ts * import { createAccount } from "@account-kit/core"; * // see createConfig for more information on how to create a config * import { config } from "./config"; * * const account = createAccount({ * type: "LightAccount", * }, config); * ``` * * @param {CreateAccountParams} params The parameters required to create the account, including the type and account parameters * @param {AlchemyAccountsConfig} config The configuration object for Alchemy accounts * @returns {Promise} A promise that resolves to the created account object */ export declare function createAccount(params: CreateAccountParams, config: AlchemyAccountsConfig): Promise; export declare const isModularV2AccountParams: (params: CreateAccountParams) => params is GetAccountParams<"ModularAccountV2">; export declare const isLightAccountParams: (params: CreateAccountParams) => params is GetAccountParams<"LightAccount">; export declare const isMultiOwnerLightAccountParams: (params: CreateAccountParams) => params is GetAccountParams<"MultiOwnerLightAccount">; export declare const isMultiOwnerModularAccountParams: (params: CreateAccountParams) => params is GetAccountParams<"MultiOwnerModularAccount">; export {};