import { Uuid } from '@standardnotes/domain-core' import { Message } from './Message' export interface MessageRepositoryInterface { findByUuid: (uuid: Uuid) => Promise findByRecipientUuid: (uuid: Uuid) => Promise findByRecipientUuidUpdatedAfter: (uuid: Uuid, updatedAtTimestamp: number) => Promise findBySenderUuid: (uuid: Uuid) => Promise findByRecipientUuidAndReplaceabilityIdentifier: (dto: { recipientUuid: Uuid replaceabilityIdentifier: string }) => Promise save(message: Message): Promise remove(message: Message): Promise }