import { RxCollection, RxDocument, RxJsonSchema } from 'rxdb'; import { MetaverseLightwalletDatabase } from './database'; import { Observable } from 'rxjs'; export interface Address { a: string; path: string; } export interface MultisigAddress { a: string; k: string[]; m: number; s: number; } export interface Account { name: string; protected: string; addresses?: Address[]; private?: { path: string; xpub: string; xpriv: string; algo: string; multisig: MultisigAddress[]; }; config: { index: number; MST?: { hidden: string[]; order: string[]; }; MIT?: { hidden: string[]; order: string[]; }; }; } export interface AccountConfig { index: number; MST: { order: string[]; hidden: string[]; }; MIT: { order: string[]; hidden: string[]; }; } export declare function initAccountCollection(database: MetaverseLightwalletDatabase): Promise; export declare type AccountDocMethods = {}; export declare type AccountDocument = RxDocument; export declare type AccountCollection = RxCollection; export declare type AccountCollectionMethods = { activeAccount$: () => Observable; addresses$: () => Observable; }; export declare const accountCollectionMethods: AccountCollectionMethods; export declare const multisigAddressSchema: RxJsonSchema; export declare const addressSchema: RxJsonSchema
; export declare const accountConfigSchema: RxJsonSchema; export declare const accountSchema: RxJsonSchema;