export declare const MAX_PREVIEW_WIDTH = 1024; export declare const MAX_PREVIEW_HEIGHT = 1024; export declare const MAX_PREVIEW_BYTES: number; export interface GeneratedImagePreview { bytes: Uint8Array; mimeType: "image/png" | "image/jpeg"; width: number; height: number; } export interface ImagePreviewGenerator { generate(bytes: Uint8Array, mimeType: string): Promise; close(): Promise; } /** One worker keeps Photon decode/resize work off the ordered SSE path. */ export declare class ImagePreviewWorker implements ImagePreviewGenerator { /** Injectable worker URL keeps abnormal-exit handling deterministic in tests. */ private readonly workerUrl; private worker; private nextId; private closed; private readonly pending; constructor( /** Injectable worker URL keeps abnormal-exit handling deterministic in tests. */ workerUrl?: import("url").URL); generate(bytes: Uint8Array, mimeType: string): Promise; close(): Promise; private getWorker; } //# sourceMappingURL=image-preview.d.ts.map