export interface IAccounts { [uid: string]: IAccountInfo; } export interface IAccountInfo { name: string; username: string; password: string; extra: string; } export default function AccountMgmt(connector: IFndrConnector, encryptSecret: string): { createUuid(): string; addAccount(name: string, username?: string | undefined, password?: string | undefined, extraInfo?: string | undefined): Promise; updateAccount(uuid: string, updatedInformation?: any, originalInformation?: any): Promise; deleteAccountByUuid(uid: string): Promise; findAccountByUuid(uid: string): Promise; findAccountByName(name: string): Promise; searchForAccountsByName(searchString?: string | undefined, currentAccounts?: IAccounts | undefined): Promise; searchForAccountsByUsername(searchString?: string | undefined, currentAccounts?: IAccounts | undefined): Promise; searchForAccountsByField(field: 'name' | 'username' | 'password' | 'extra', searchString?: string | undefined, currentAccounts?: IAccounts | undefined): Promise; sortByName(acc1: IAccountInfo, acc2: IAccountInfo): 1 | -1; };