import type { DocClock, DocClocks } from './doc'; import { Storage, type StorageOptions } from './storage'; export interface SyncStorageOptions extends StorageOptions {} export abstract class SyncStorage< Opts extends SyncStorageOptions = SyncStorageOptions, > extends Storage { override readonly storageType = 'sync'; abstract getPeerClocks(peer: string): Promise; abstract setPeerClock(peer: string, clock: DocClock): Promise; abstract getPeerPushedClocks(peer: string): Promise; abstract setPeerPushedClock(peer: string, clock: DocClock): Promise; abstract clearClocks(): Promise; }