import type { Connection } from '../connection'; import type { Storage } from './storage'; export interface BlobSyncStorage extends Storage { readonly storageType: 'blobSync'; setBlobUploadedAt( peer: string, blobId: string, uploadedAt: Date | null ): Promise; getBlobUploadedAt(peer: string, blobId: string): Promise; } export abstract class BlobSyncStorageBase implements BlobSyncStorage { readonly storageType = 'blobSync'; abstract readonly connection: Connection; abstract setBlobUploadedAt( peer: string, blobId: string, uploadedAt: Date | null ): Promise; abstract getBlobUploadedAt( peer: string, blobId: string ): Promise; }