import { Context, Schema } from "koishi"; export declare const name = "comfyui-client"; export interface WorkflowPreset { name: string; description?: string; content: string; } export interface Config { serverEndpoint: string; isSecureConnection: boolean; httpProxy?: string; workflowDir: string; defaultWorkflowName: string; workflowPresets: WorkflowPreset[]; workflowJSON: string; /** * 图片上传方式: * - "base64-first"(默认):直接将图片内联为 base64,占位符 {{image}} 写成 data URI。 * - "image-first":优先上传到 ComfyUI,失败时再回退 base64。 */ imageUploadMode?: "base64-first" | "image-first"; uploadTimeoutMs?: number; uploadMaxAttempts?: number; logEnabled: boolean; debug: boolean; } export declare const Config: Schema; export declare function apply(ctx: Context, config: Config): void;