import { AttachmentDriverIndexedDB } from "https://deno.land/x/earthstar@v10.2.0/src/entries/browser.ts";
Methods
private
getIndexKey(formatName: string, attachmentHash: string)clearStaging(): Promise<void>
close(erase: boolean)
erase(formatName: string, attachmentHash: string): Promise<true | ValidationError>
filter(attachments: Record<string, Set<string>>): Promise<{ format: string; hash: string; }[]>
getAttachment(formatName: string, attachmentHash: string): Promise<DocAttachment | undefined>
isClosed(): boolean
stage(formatName: string, attachment: Uint8Array | ReadableStream<Uint8Array>): Promise<{ hash: string; size: number; commit: () => Promise<void>; reject: () => Promise<void>; } | ValidationError>
wipe(): Promise<void>