import type { AccountState } from "../store/types.js"; import type { AlchemyAccountsConfig, SupportedAccountTypes } from "../types.js"; import { type CreateAccountParams } from "./createAccount.js"; export type GetAccountResult = AccountState; export type GetAccountParams = CreateAccountParams; /** * Retrieves the account of the specified type from the client store based on the provided configuration. * * @example * ```ts * import { getAccount } from "@account-kit/core"; * // see createConfig for more information on how to create a config * import { config } from "./config"; * * const { account, status } = getAccount({ * type: "LightAccount" * }, config) * ``` * * @param {GetAccountParams} params The parameters containing the type of the account to retrieve * @param {AlchemyAccountsConfig} config The configuration containing the client store * @returns {GetAccountResult} The result which includes the account if found and its status */ export declare const getAccount: (params: GetAccountParams, config: AlchemyAccountsConfig) => GetAccountResult;