import { type AccountTypeEnum, ChainTypeEnum, type EmbeddedAccount, type Openfort, type RecoveryMethod } from '@openfort/openfort-js'; import type { OpenfortWalletConfig } from '../components/Openfort/types.js'; /** Chain-resolved account shape passed straight to the core SDK. */ export type EmbeddedAccountRequest = { accountType: AccountTypeEnum; /** Only sent for account types that are deployed to a specific chain. */ chainId?: number; }; /** Recovery inputs the caller collected from the user. */ export type EmbeddedRecoveryInput = { recoveryMethod?: RecoveryMethod; passkeyId?: string; password?: string; otpCode?: string; }; export type CreateEmbeddedWalletParameters = { client: Openfort; walletConfig: OpenfortWalletConfig | undefined; chainType: ChainTypeEnum; accountRequest: EmbeddedAccountRequest; recovery: EmbeddedRecoveryInput | undefined; assertCurrent: () => void; shouldPublish: () => boolean; setActiveEmbeddedAddress: (address: string | undefined) => void; updateEmbeddedAccounts: (options?: { silent?: boolean; }) => Promise; }; /** * Creates an embedded wallet on the given chain and publishes it as the active account. * * @param parameters - Client, wallet config, chain-resolved account request and recovery inputs. * @returns The created account. * @throws {WalletConfigNotFoundError} When the provider was mounted without a wallet config. */ export declare function createEmbeddedWallet(parameters: CreateEmbeddedWalletParameters): Promise;