import DocId from "./types/DocId"; import SyncItemAction from "./types/SyncItemAction"; /** Contains an ID that identifies the synchronizable object, the document data itself, and `updatedAt` (which is used to determine whether the document must be synchronized or not). */ declare abstract class SyncItem { private _id; private _updatedAt; private _document; private _action; get id(): DocId; get updatedAt(): Date; get document(): any; /** Determines whether the item should be updated or not. */ get isUpdate(): boolean; /** Determines whether the item should be removed from the database or not. */ get isDelete(): boolean; constructor(id: DocId, document: any, updatedAt: Date, action?: SyncItemAction); update(document: any, updatedAt: Date): void; } export default SyncItem;