import { ConsultationDexieDb } from "../db/ConsultationDexieDb"; import { PayloadStore } from "./PayloadStore"; export declare class MissingPayloadError extends Error { constructor(payloadKey: string); } export declare class EncryptionUnavailableError extends Error { constructor(); } export declare class EncryptionKeyHolder { private encryptionKey?; constructor(encryptionKey?: CryptoKey | undefined); get(): CryptoKey | undefined; clear(): void; } type EncryptedPayload = { iv: Uint8Array; payload: Blob; }; export declare class IdbPayloadStore implements PayloadStore { private readonly db; private readonly encryptionKeyHolder?; constructor(db: ConsultationDexieDb, encryptionKeyHolder?: EncryptionKeyHolder | undefined); clearEncryptionKey(): void; private blobToArrayBuffer; private toArrayBuffer; encryptSegment(payloadKey: string, bytes: Uint8Array): Promise; putEncryptedSegment(payloadKey: string, sessionId: string, segmentId: number, byteLength: number, checksum32: number | undefined, encryptedPayload: EncryptedPayload, createdAt: number): Promise; putSegment(payloadKey: string, sessionId: string, segmentId: number, bytes: Uint8Array, checksum32?: number): Promise; readSegment(payloadKey: string): Promise; deleteSegment(payloadKey: string): Promise; } export {}; //# sourceMappingURL=IdbPayloadStore.d.ts.map