import type OpenAI from "openai"; import type { ImagesResponse } from "openai/resources/images"; import { type GenerateImage, type GenerateImageOptions, type ImagePrompt } from "@use-crux/core"; /** OpenAI-only image controls forwarded to the native Images API. */ export interface OpenAIImageExtra extends Record { readonly background?: "transparent" | "opaque" | "auto" | null; readonly input_fidelity?: "high" | "low" | null; readonly moderation?: "low" | "auto" | null; readonly output_compression?: number | null; readonly output_format?: "png" | "jpeg" | "webp" | null; readonly quality?: "standard" | "hd" | "low" | "medium" | "high" | "auto" | null; readonly user?: string; } /** * Flat OpenAI image operation attached to a bound adapter. * * @example * ```ts * const result = await openai.generateImage({ model: 'gpt-image-1', prompt: 'A quiet canal' }) * await assetStore.put(result.image) // optional, explicit persistence * ``` */ export type OpenAIGenerateImage = GenerateImage; type OpenAIImageInput = GenerateImageOptions; /** Create one stateless OpenAI image operation sharing the bound SDK client. */ export declare function createOpenAIGenerateImage(client: OpenAI): OpenAIGenerateImage; /** Define OpenAI image mechanics for first-class provider-runtime compilation. */ export declare function createOpenAIImageOperation(client: OpenAI): import("@use-crux/core/adapter").CompletedOperationDefinition, { kind: string; count: number; }>; export {};