/** * MIME types a browser renders directly, so their bytes can become a preview src. * Everything else an IDML may place — TIFF, PSD (both arrive as graphicType * 'Image'), and the vector formats PDF/EPS/WMF — must be rasterized by bx-files * first, so it stays a placeholder in the serial and only rides the upload path. */ export declare const DISPLAYABLE_IMAGE_MIMES: ReadonlySet; export declare function isDisplayableImageMime(mime: string | undefined): boolean; /** * A browser-displayable preview URL for image `bytes` of the given `mime`, or * `undefined` if the MIME isn't browser-renderable (caller keeps the placeholder). * * Browser: raster bytes are downscaled + recompressed with compressorjs (the same * knobs bx-studio uses — a real wizard re-compresses at upload, an accepted double) * into a blob URL; SVG passes through as a blob unchanged (rasterizing it would be * wrong). Node: no canvas, so a `data:` URL of the raw bytes (preview isn't the * point headless). Blob URLs are session-scoped — a persisting consumer must swap * them for durable URLs before saving the serial. */ export declare function makeImagePreviewSrc(bytes: ArrayBuffer, mime: string): Promise; //# sourceMappingURL=imagePreview.d.ts.map