import { MessageDB } from './message-db.interface' ; import { ParsedMessage } from '../serialization' ; import { SignedByDBInterface } from './signed-by-db.interface' ; /**
 * The MessageDB interface specific to StateChannelMessages, offering various
 * StateChannelMessage-specific CRUD operations.
 */ export interface StateChannelMessageDBInterface extends MessageDB , SignedByDBInterface { param channelID returns getMostRecentValidStateChannelMessage ( channelID ) : Promise < ParsedMessage > ; param channelID param address returns getMostRecentMessageSignedBy ( channelID , address ) : Promise < ParsedMessage > ; param message returns conflictsWithAnotherMessage ( message ) : Promise < ParsedMessage > ; param channelID returns isChannelExited ( channelID ) : Promise < boolean > ; param channelID markChannelExited ( channelID ) : Promise < void > ; param address returns getChannelForCounterparty ( address ) : Promise < string > ; param channelID returns channelIDExists ( channelID ) : Promise < boolean > ; }