import { Account } from '../domain/account' ; export interface IAccountRepo { getAccountByAccountId ( id ) : Promise < Account | undefined > ; getAccountByAccountName ( name ) : Promise < Account | undefined > ; getAccountBySecretKey ( key ) : Promise < Account | undefined > ; insert ( account ) : Promise < void > ; save ( account ) : Promise < void > ; }