Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / packages / docs-core / lib / Services / Websockets / AckLedger / AckLedgerInterface.ts
blobaf0c0b2172dc1ed010e31be6713f9cee2d2c8f5b
1 import type { ClientMessageWithDocumentUpdates, DocumentUpdate, ServerMessageWithMessageAcks } from '@proton/docs-proto'
3 export interface AckLedgerInterface {
4   messagePosted(message: ClientMessageWithDocumentUpdates): void
5   messageAcknowledgementReceived(message: ServerMessageWithMessageAcks): void
6   destroy(): void
7   hasConcerningMessages(): boolean
8   hasErroredMessages(): boolean
9   getUnacknowledgedUpdates(): DocumentUpdate[]