import type { SessionImageRef } from '@dfy-plugins/image-protocol'; export declare const IMAGE_QUALITIES: readonly ["auto", "low", "medium", "high"]; export type ImageQuality = typeof IMAGE_QUALITIES[number]; export type ImageOperation = 'generate' | 'edit'; export interface ImageApiItem { b64Json?: string; url?: string; revisedPrompt?: string; } export interface GeneratedImageValue { ref: string; image: SessionImageRef; } export interface ImageGenerationValue { operation: ImageOperation; model: string; quality: ImageQuality; size: string; images: GeneratedImageValue[]; } export declare function normalizeBaseUrl(value: string): string; export declare function imageApiEndpoint(baseUrl: string, operation: ImageOperation): string; export declare function parseImageQuality(value: string): ImageQuality; export declare function validateImageSize(value: string): string; export declare function parseImageApiResponse(value: unknown): ImageApiItem[]; export declare function decodeImageBase64(value: string): Uint8Array; export declare function renderImageGenerationResult(value: ImageGenerationValue): string; export declare const IMAGE_GENERATION_SKILL_CONTENT = "# Image generation and editing\n\nUse this Skill before every call to `dfy_image_generate`. The tool uses a dedicated image route; it does not change the parent conversation model.\n\n## Choose the operation\n\n- With no input images, generate a new image.\n- With one or more `input_image_refs` or `input_file_paths`, edit, compose, restyle, or continue from those images.\n- Treat an image as a reference rather than an edit target unless the user explicitly asks to preserve and change it.\n- If unseen pixels must be understood before an edit, load the `dfy-vision` Skill and inspect the image first.\n\n## Build the prompt\n\nNormalize the request in this order when useful: intended use, primary request, input image roles, scene, subject, style or medium, composition, lighting, palette, materials, exact text, constraints, and avoid list.\n\n- Preserve every user-provided requirement. Add only practical composition or polish details that materially help a generic request.\n- Do not invent extra characters, props, brands, slogans, story beats, or arbitrary left/right placement.\n- Put literal in-image text in quotes and require verbatim rendering with no extra characters.\n- For edits, state `change only X; keep Y unchanged` and repeat identity, layout, lighting, or background invariants on every iteration.\n- Label multiple inputs by index and role. For compositing, state what moves where and require matching perspective, scale, lighting, and shadows.\n- Prefer one targeted follow-up change at a time instead of rewriting a successful image from scratch.\n\n## Tool arguments\n\n- `prompt` is required and should be a clean image brief, not conversational filler.\n- Omit `quality` and `size` to use the plugin defaults. Use `low` for drafts; use `medium`, `high`, or `auto` for final assets.\n- `size` may be `auto` or a valid `WIDTHxHEIGHT`. Useful values include `1024x1024`, `1536x1024`, `1024x1536`, `2048x2048`, `2048x1152`, `3840x2160`, and `2160x3840`.\n- Copy opaque uploaded-attachment or generated-session-image tokens unchanged into `input_image_refs`. Use `input_file_paths` only for images already in the session workspace.\n- Keep `count` at 1 unless the user asks for alternatives.\n\nThe result contains durable, session-owned `image_ref` values and the Harness UI displays the images after the final response. Copy those opaque tokens unchanged when editing a generated result again. After success, give only a concise explanation or usage hint. Do not repeat the image, embed it in Markdown, call the tool again, or claim success before the tool returns.";