import type { ToolOutputImage } from '../../types/protocol'; export declare const MAX_VIEW_IMAGE_BYTES: number; export declare function assertViewImageByteLength(path: string, byteLength: number): void; export declare function imageOutputFromBytes(path: string, bytes: Uint8Array): ToolOutputImage; export declare function sniffImageMediaType(bytes: Uint8Array, path?: string): string | null; export declare function toUint8Array(value: Blob | Uint8Array | ArrayBuffer | ArrayBufferView | string | null | undefined): Promise;