import type { NodeImageFormat } from "./imageValue"; /** * Cache codec for `format: "image"` ports. * * Produces a JSON-safe wire form so persistent caches (e.g. `TaskOutputTabularRepository`, * which stringifies before writing to disk) can round-trip image outputs. The wire form * carries encoded bytes plus dimensions and `previewScale`; the decoded shape is the * platform-native `ImageValue` (browser → `BrowserImageValue`, node/bun → `NodeImageValue`). * * Cross-platform read is supported: a node-written cache entry decodes to a * `BrowserImageValue` when read in the browser (via `createImageBitmap`), and vice versa. */ export interface ImageValueWire { readonly __imageValueWire: 1; readonly format: NodeImageFormat; readonly base64: string; readonly width: number; readonly height: number; readonly previewScale: number; } //# sourceMappingURL=imageCacheCodec.d.ts.map