import { type QuestionImage, type StagedQuestionImage } from "../protocol.js"; import type { SqliteDatabase } from "../db/database.js"; export declare class ImageError extends Error { readonly code: string; readonly retryable: boolean; constructor(code: string, message: string, retryable?: boolean); } export declare class ImageStore { private db; readonly directory: string; private now; readonly instanceId: string; private decoding; constructor(db: SqliteDatabase, directory: string, now: () => number, instanceId: string); stage(bytes: Buffer, declaredType: string, sessionId: string): Promise<{ uploadId: string; }>; commit(questionId: string, revision: number, sessionId: string, images: StagedQuestionImage[]): void; copy(questionId: string, from: number, to: number): void; gallery(questionId: string, revision: number): QuestionImage[]; read(imageId: string): { bytes: Buffer; mediaType: string; etag: string; } | undefined; prune(): void; } //# sourceMappingURL=imageStore.d.ts.map