import { MessageSubscriber } from '../message-subscriber.interface' ; import { SignedMessage } from '../serialization' ; export interface SignedByDBInterface extends MessageSubscriber { param serializedMessage param signature storeSignedMessage ( serializedMessage , signature ) : Promise < void > ; param serializedMessage param signerPublicKey returns getMessageSignature ( serializedMessage , signerPublicKey ) : Promise < string | undefined > ; param publicKey returns getAllSignedBy ( publicKey ) : Promise < SignedMessage [ ] > ; }