import type { AccountGroupMultichainAccountObject } from "../../group.mjs"; import type { AccountWalletEntropyObject } from "../../wallet.mjs"; import type { BackupAndSyncContext, LegacyUserStorageSyncedAccount, UserStorageSyncedWallet, UserStorageSyncedWalletGroup } from "../types.mjs"; /** * Formats the wallet for user storage usage. * This function extracts the necessary metadata from the wallet * and formats it according to the user storage requirements. * * @param context - The backup and sync context. * @param wallet - The wallet object to format. * @returns The formatted wallet for user storage. */ export declare const formatWalletForUserStorageUsage: (context: BackupAndSyncContext, wallet: AccountWalletEntropyObject) => UserStorageSyncedWallet; /** * Formats the group for user storage usage. * This function extracts the necessary metadata from the group * and formats it according to the user storage requirements. * * @param context - The backup and sync context. * @param group - The group object to format. * @returns The formatted group for user storage. */ export declare const formatGroupForUserStorageUsage: (context: BackupAndSyncContext, group: AccountGroupMultichainAccountObject) => UserStorageSyncedWalletGroup; /** * Parses the wallet from user storage response. * This function attempts to parse the wallet data from a string format * and returns it as a UserStorageSyncedWallet object. * * @param wallet - The wallet data in string format. * @returns The parsed UserStorageSyncedWallet object. * @throws If the wallet data is not in valid JSON format or fails validation. */ export declare const parseWalletFromUserStorageResponse: (wallet: string) => UserStorageSyncedWallet; /** * Parses the group from user storage response. * This function attempts to parse the group data from a string format * and returns it as a UserStorageSyncedWalletGroup object. * * @param group - The group data in string format. * @returns The parsed UserStorageSyncedWalletGroup object. * @throws If the group data is not in valid JSON format or fails validation. */ export declare const parseGroupFromUserStorageResponse: (group: string) => UserStorageSyncedWalletGroup; /** * Parses the legacy account from user storage response. * This function attempts to parse the account data from a string format * and returns it as a LegacyUserStorageSyncedAccount object. * * @param account - The account data in string format. * @returns The parsed LegacyUserStorageSyncedAccount object. * @throws If the account data is not in valid JSON format or fails validation. */ export declare const parseLegacyAccountFromUserStorageResponse: (account: string) => LegacyUserStorageSyncedAccount; //# sourceMappingURL=format-utils.d.mts.map