import { imageGenerationInputSchema, type GatewayImageModelId, type ImageGenerationResult as BaseImageGenerationResult } from "@automate.ax/api-contract/runtime"; import { createDeepInfra } from "@ai-sdk/deepinfra"; import { createFireworks } from "@ai-sdk/fireworks"; import { createGoogleGenerativeAI } from "@ai-sdk/google"; import { createOpenAI } from "@ai-sdk/openai"; import { createTogetherAI } from "@ai-sdk/togetherai"; import { createXai } from "@ai-sdk/xai"; import { type ActionObjectInput } from "../../automation/actions.js"; import type { IntegrationAccountReference } from "../../automation/integrations.js"; import { type Signal } from "../../automation/signal-protocol.js"; declare const AI_IMAGE_ACCOUNT_SERVICE_IDS: readonly ["deepinfra", "fireworks", "google-genai", "openai", "togetherai", "vercel-ai-gateway", "xai"]; type AiImageAccountServiceId = (typeof AI_IMAGE_ACCOUNT_SERVICE_IDS)[number]; /** Serializable AI SDK image-generation result. */ export type GenerateImageResult = BaseImageGenerationResult; interface AiImageModelIdsByService { deepinfra: Parameters["image"]>[0]; fireworks: Parameters["image"]>[0]; "google-genai": Parameters["image"]>[0]; openai: Parameters["image"]>[0]; togetherai: Parameters["image"]>[0]; "vercel-ai-gateway": GatewayImageModelId; xai: Parameters["image"]>[0]; } /** Image model IDs suggested for one provider, including newly released IDs. */ export type GenerateImageModelId = AiImageModelIdsByService[TServiceId] | (string & {}); /** Inputs accepted by the built-in image-generation action. */ export type GenerateImageOptions = Omit, "model"> & { /** User-managed provider account. Omit to use the platform AI Gateway. */ account?: IntegrationAccountReference; /** Provider image model ID. Defaults according to the selected account. */ model?: GenerateImageModelId> | Exclude["model"], GatewayImageModelId | undefined>; }; /** * Generates or edits images through the platform AI Gateway. * * @param options - Prompt, source images, model, and generation settings. */ export declare function generateImage(options: Omit, "account"> & { account?: never; }): Signal; /** * Generates or edits images through an explicit provider account. * * @param options - Provider account, prompt, source images, and settings. */ export declare function generateImage(options: GenerateImageOptions & { account: IntegrationAccountReference; }): Signal; /** * Generates or edits images when the account may vary at authoring time. * * @param options - Account, prompt, source images, and settings. */ export declare function generateImage(options: GenerateImageOptions): Signal; export {}; //# sourceMappingURL=generate-image.d.ts.map