/** * @license * Copyright 2026 Steven Roussey * SPDX-License-Identifier: Apache-2.0 */ /** * Structural match for `RawImage` from `@huggingface/transformers`. The HF * class carries helpers (`save`, `toCanvas`, `rgb`, ...) that the provider * runtime does not invoke on inputs, so a minimal shim over the four data * fields is sufficient. If a consumer later needs HF-specific methods we can * widen this shim lazily — no need to pull the transformers dep into * `@workglow/util/media` today. */ export declare class MediaRawImage { readonly data: Uint8ClampedArray; readonly width: number; readonly height: number; readonly channels: number; constructor(data: Uint8ClampedArray, width: number, height: number, channels: number); } export declare function isMediaRawImageShape(value: unknown): value is { data: Uint8ClampedArray; width: number; height: number; channels: number; }; //# sourceMappingURL=MediaRawImage.d.ts.map