import { StorageProvider } from '../StorageProvider'; type JsonPrimitive = string | number | boolean; type JsonValue = JsonPrimitive | JsonValue[] | { [key: string]: JsonValue; }; type PortableRow = Record; export interface BRC38Tables { provenTxs: PortableRow[]; provenTxReqs: PortableRow[]; outputBaskets: PortableRow[]; transactions: PortableRow[]; commissions: PortableRow[]; outputs: PortableRow[]; outputTags: PortableRow[]; outputTagMaps: PortableRow[]; txLabels: PortableRow[]; txLabelMaps: PortableRow[]; certificates: PortableRow[]; certificateFields: PortableRow[]; syncStates: PortableRow[]; } export interface BRC38WalletData { brc: 38; title: 'User Wallet Data Format'; formatVersion: 1; exportedAt: string; sourceStorage: PortableRow; user: PortableRow; tables: BRC38Tables; } export interface BRC38ImportOptions { mode: 'merge' | 'restore'; } export interface BRC38ImportResult { mode: 'merge' | 'restore'; identityKey: string; userId: number; inserts: number; updates: number; } export interface BRC39Options { iterations?: number; memoryKiB?: number; parallelism?: number; } export declare function exportBRC38(storage: StorageProvider, identityKey: string): Promise; export declare function exportBRC38Json(storage: StorageProvider, identityKey: string): Promise; export declare function parseBRC38Json(json: string): BRC38WalletData; export declare function importBRC38(storage: StorageProvider, documentOrJson: BRC38WalletData | string, options: BRC38ImportOptions): Promise; export declare function exportBRC39(storage: StorageProvider, identityKey: string, password: string, options?: BRC39Options): Promise; export declare function importBRC39(storage: StorageProvider, bytes: number[] | Uint8Array, password: string, options: BRC38ImportOptions): Promise; export declare function encryptBRC39(documentOrJson: BRC38WalletData | string, password: string, options?: BRC39Options): Promise; export declare function decryptBRC39(bytes: number[] | Uint8Array, password: string): Promise; export {}; //# sourceMappingURL=index.d.ts.map