import { type ResultValue } from "../runtime/result.js"; import { type LocalImageInputs } from "./localImageInputs.js"; /** One input image for `generateImage`. A URL or a data: URI is sent as * it is. A local path is held as its real spelling, the one the * std::uploadImage interrupt shows, and read only after approval. */ export type ImageSource = { source: string; local: boolean; }; /** Backs the checks `generateImage` makes before it asks anything. A * local path is resolved to its real spelling and checked by name and * stat: an image extension, a regular file, under the size cap. No byte * is read, so a bad path fails here, before any approval is asked for. */ export declare function _imageSources(images: string[]): ImageSource[]; /** Where `generateImage` sends its request, as the default client will * resolve it: the model it names or the default image model, and the * provider it names or the one that model belongs to. A custom client may * route the request elsewhere; this is the best that is known before the * call. */ export declare function _imageDestination(model: string, provider: string): { model: string; provider: string; }; /** * Backs `std::image.generateImage`. Calls the active client's image() method, * charges cost/guards + tokens (only on success), emits an `imageGeneration` * statelog event, and returns the first image as base64 + mimeType. */ export declare function _generateImage(prompt: string, model: string, provider: string, size: string, quality: string, images: ImageSource[], apiKey: string, baseUrl: string): Promise; /** Backs `std::image.generateImageLocal`: one image from the model that * `agency local serve --image` is serving. */ export declare function _generateImageLocal(prompt: string, model: string, size: string, steps: number | null, guidance: number | null, seed: number | null, negativePrompt: string, format: string, lora: string, loraScale: number | null, inputs: LocalImageInputs): Promise;