import type { ImageBackend } from './types.js'; export type BackendType = 'auto' | 'bfl' | 'comfyui'; export { ImageBackend, ImageParams, ImageResult } from './types.js'; export { BFLBackend } from './bfl.js'; export { ComfyUIBackend } from './comfyui.js'; /** * 获取 BFL API Key(优先环境变量,其次配置文件) */ export declare function getBFLApiKey(): string | undefined; /** * 获取图像生成后端 * * - auto: 有 BFL API Key 则用 BFL,否则用 ComfyUI * - bfl: 强制使用 BFL(需要 API Key) * - comfyui: 强制使用 ComfyUI * * API Key 优先级: 环境变量 BFL_API_KEY > 配置文件 bfl.apiKey */ export declare function getBackend(type?: BackendType): ImageBackend; /** * 获取当前会使用的后端名称 */ export declare function getCurrentBackendName(type?: BackendType): 'bfl' | 'comfyui'; //# sourceMappingURL=index.d.ts.map