import type { AccountGroupMultichainAccountObject } from "../../group.cjs"; import type { AccountWalletEntropyObject } from "../../wallet.cjs"; import type { BackupAndSyncContext, LegacyUserStorageSyncedAccount, UserStorageSyncedWallet, UserStorageSyncedWalletGroup } from "../types.cjs"; /** * Retrieves the wallet from user storage. * * @param context - The backup and sync context. * @param entropySourceId - The entropy source ID. * @returns The wallet from user storage or null if not found or invalid. * @throws When network operations fail after maximum retry attempts. * @throws When messenger calls to UserStorageController fail due to authentication errors, encryption/decryption failures, or network issues. */ export declare const getWalletFromUserStorage: (context: BackupAndSyncContext, entropySourceId: string) => Promise; /** * Pushes the wallet to user storage. * * @param context - The backup and sync context. * @param wallet - The wallet to push to user storage. * @returns A promise that resolves when the operation is complete. * @throws When network operations fail after maximum retry attempts. * @throws When messenger calls to UserStorageController fail due to authentication errors, encryption/decryption failures, or network issues. * @throws When JSON.stringify fails on the formatted wallet data. */ export declare const pushWalletToUserStorage: (context: BackupAndSyncContext, wallet: AccountWalletEntropyObject) => Promise; /** * Retrieves all groups from user storage. * * @param context - The backup and sync context. * @param entropySourceId - The entropy source ID. * @returns An array of groups from user storage. * @throws When network operations fail after maximum retry attempts. * @throws When messenger calls to UserStorageController fail due to authentication errors, encryption/decryption failures, or network issues. */ export declare const getAllGroupsFromUserStorage: (context: BackupAndSyncContext, entropySourceId: string) => Promise; /** * Retrieves a single group from user storage by group index. * * @param context - The backup and sync context. * @param entropySourceId - The entropy source ID. * @param groupIndex - The group index to retrieve. * @returns The group from user storage or null if not found or invalid. * @throws When network operations fail after maximum retry attempts. * @throws When messenger calls to UserStorageController fail due to authentication errors, encryption/decryption failures, or network issues. */ export declare const getGroupFromUserStorage: (context: BackupAndSyncContext, entropySourceId: string, groupIndex: number) => Promise; /** * Pushes a group to user storage. * * @param context - The backup and sync context. * @param group - The group to push to user storage. * @param entropySourceId - The entropy source ID. * @returns A promise that resolves when the operation is complete. * @throws When network operations fail after maximum retry attempts. * @throws When messenger calls to UserStorageController fail due to authentication errors, encryption/decryption failures, or network issues. * @throws When JSON.stringify fails on the formatted group data. */ export declare const pushGroupToUserStorage: (context: BackupAndSyncContext, group: AccountGroupMultichainAccountObject, entropySourceId: string) => Promise; /** * Pushes a batch of groups to user storage. * * @param context - The backup and sync context. * @param groups - The groups to push to user storage. * @param entropySourceId - The entropy source ID. * @returns A promise that resolves when the operation is complete. * @throws When network operations fail after maximum retry attempts. * @throws When messenger calls to UserStorageController fail due to authentication errors, encryption/decryption failures, or network issues. * @throws When JSON.stringify fails on any of the formatted group data. */ export declare const pushGroupToUserStorageBatch: (context: BackupAndSyncContext, groups: AccountGroupMultichainAccountObject[], entropySourceId: string) => Promise; /** * Retrieves legacy user storage accounts for a specific entropy source ID. * * @param context - The backup and sync context. * @param entropySourceId - The entropy source ID to retrieve data for. * @returns A promise that resolves with the legacy user storage accounts. * @throws When network operations fail after maximum retry attempts. * @throws When messenger calls to UserStorageController fail due to authentication errors, encryption/decryption failures, or network issues. */ export declare const getAllLegacyUserStorageAccounts: (context: BackupAndSyncContext, entropySourceId: string) => Promise; //# sourceMappingURL=network-operations.d.cts.map