import type { ResolvedImageInput } from './types.js'; export declare function resolveImageInputs(raw: string[] | undefined, cwd: string, fetchImpl: typeof fetch, signal?: AbortSignal): Promise; export declare function sniffMime(bytes: Uint8Array): string | undefined; export declare function toDataUri(input: ResolvedImageInput): string; /** * Classify a string returned by an image-generation API as either a URL the * caller should fetch, or base64 image bytes the caller already has. * * Different providers / gateways return image output in different shapes: * - http(s):// URL → fetch it * - `data:image/...;base64,...` → strip prefix, decode bytes * - bare base64 string (PNG/JPEG/WebP/GIF magic bytes) → decode bytes * - empty / whitespace → invalid, return null * * Returning `null` lets adapters skip junk entries (e.g. when a provider's * response had `text` parts but no actual image). */ export declare function classifyImageOutput(value: string | undefined | null): { kind: 'url'; url: string; } | { kind: 'base64'; bytes: string; mimeType: string; } | null; //# sourceMappingURL=image-input.d.ts.map