import { BigNumber } from '@pigi/core-utils' ; import { ParsedMessage } from '../serialization' ; export interface MessageDB { returns getMyAddress ( ) : string ; param message storeMessage ( message ) : Promise < void > ; param channelID param nonce returns getConflictingCounterpartyMessage ( channelID , nonce ) : Promise < ParsedMessage > ; param channelID param nonce returns getMessageByChannelIdAndNonce ( channelID , nonce ) : Promise < ParsedMessage > ; param signer param channelID param nonce returns getMessagesSignedBy ( signer , channelID ? , nonce ? ) : Promise < ParsedMessage [ ] > ; param sender param channelID param nonce returns getMessagesBySender ( sender , channelID ? , nonce ? ) : Promise < ParsedMessage [ ] > ; param recipient param channelID param nonce returns getMessagesByRecipient ( recipient , channelID ? , nonce ? ) : Promise < ParsedMessage [ ] > ; }