/** * gen-image handler — POST ab-api /model/genImg. * * Thin forwarder: the model roster, defaults, size presets and reference-image * caps all come from ab-api's capabilities catalog (see capabilities.ts), not * from this package. Behavior: * - --model accepts a friendly alias or a full id; resolved against the catalog * (ab-api also resolves aliases server-side, so an unknown value still passes * through and is validated by the backend). * - --size accepts a WxH string (→ width/height) or an aspect-ratio preset key * (→ aspectRatio; for Seedream models ab-api maps the preset to pixels). * - --resolution is accepted but inert: it only ever fed the Gemini `size` tier, * and Gemini is not wired up on the gateway, so we no longer send it. * - Reference images: HTTPS URLs and data: URIs pass through; local paths are * read and base64-encoded into a data: URI. * - Async response (generationId + status:'generating'/'pending') is polled * against /model/getImgStatus until completed/failed/timeout. */ import type { HandlerContext, HandlerInput } from './index.js'; export declare function genImage(input: HandlerInput, ctxIn: HandlerContext): Promise;