import { listImageGenerationProvidersSummary } from '../agent/image/generation/provider-registry.js'; import type { AgentModelsDefaults } from '../agent-config/index.js'; import { type Config } from '../config/schema.js'; export type ImageGenerationSetupInput = { providerId: string; modelId?: string; providerConfig?: Record; }; export type ImageGenerationCatalogItem = ReturnType[number] & { configured: boolean; config: Record; }; export declare function getImageGenerationCatalog(config: Config): ImageGenerationCatalogItem[]; export declare function getAgentImageGenerationConfig(agentIdRaw: string): { agentId: string; model: { primary: string; fallbacks: string[]; autoProviderFallback: boolean; timeoutMs?: number; }; }; export declare function getDefaultImageGenerationConfig(): { model: { primary: string; fallbacks: string[]; autoProviderFallback: boolean; timeoutMs?: number; }; }; type ImageGenerationModel = NonNullable; export type ImageGenerationCatalogUpdate = { target: 'defaults'; model: ImageGenerationModel; } | { target: 'agent'; agentId: string; model: ImageGenerationModel; }; type PreparedImageGenerationSetup = { ok: true; config: Config; providerId: string; modelId: string; catalogUpdate: ImageGenerationCatalogUpdate; }; export declare function prepareDefaultImageGenerationSetup(config: Config, input: ImageGenerationSetupInput): PreparedImageGenerationSetup | { ok: false; error: string; }; export declare function prepareImageGenerationSetup(config: Config, agentIdRaw: string, input: ImageGenerationSetupInput): PreparedImageGenerationSetup | { ok: false; error: string; }; export declare function applyImageGenerationCatalogUpdate(update: ImageGenerationCatalogUpdate): Promise; export declare function verifyImageGenerationCredential(input: { providerId: string; apiKey: string; baseUrl?: string; }): Promise<{ verified: boolean; supported: boolean; message?: string; }>; export {};