/** * daemon/image-gen/types.ts — Shared types for image generation providers. */ export interface GenerateImageOptions { prompt: string; model?: string; width?: number; height?: number; numOutputs?: number; } export interface GenerateImageResult { images: Buffer[]; model: string; durationMs: number; } export interface RefineImageOptions { /** The modification instruction (what to change). */ prompt: string; /** The image to modify. */ sourceImage: Buffer; /** MIME type of sourceImage ("image/webp" | "image/png"). */ sourceMime: string; /** How much to deviate from the source image. 0.0 = minimal change, 1.0 = ignore source. Default 0.7. */ strength?: number; } export interface ImageProvider { name: string; generate(opts: GenerateImageOptions): Promise; /** Optional: native img2img refinement. Falls back to prompt chaining if absent. */ refine?(opts: RefineImageOptions): Promise; } export interface ImageProviderConfig { provider: string; model?: string; apiToken?: string; apiTokenEnv?: string; accountId?: string; modulePath?: string; options?: Record; } //# sourceMappingURL=types.d.ts.map