export interface BFLSubmitParams { prompt: string; input_image?: string; input_image_2?: string; input_image_3?: string; input_image_4?: string; input_image_5?: string; input_image_6?: string; input_image_7?: string; input_image_8?: string; width?: number; height?: number; seed?: number; safety_tolerance?: number; output_format?: 'jpeg' | 'png'; } export interface BFLSubmitResponse { id: string; polling_url: string; status?: string; cost?: number; input_mp?: number; output_mp?: number; } export interface BFLPollResponse { status: 'Pending' | 'Ready' | 'Error' | 'Request Moderated' | 'Content Moderated' | 'Task not found'; result?: { sample?: string; prompt?: string; seed?: number; start_time?: number; end_time?: number; duration?: number; }; progress?: number; } export interface PollOptions { interval?: number; timeout?: number; onProgress?: (status: string, progress?: number) => void; } export declare class BFLClient { private client; constructor(apiKey: string); /** * 提交图像生成/编辑任务 (FLUX.2 Pro) */ submit(params: BFLSubmitParams): Promise; /** * 获取任务结果 */ getResult(taskId: string): Promise; /** * 轮询等待结果 */ poll(taskIdOrUrl: string, options?: PollOptions): Promise; /** * 将本地图像转换为 base64 data URL */ imageToBase64(filePath: string): Promise; /** * 下载图像到本地 */ downloadImage(url: string, outputDir: string, filename?: string): Promise; private sleep; } //# sourceMappingURL=bfl-api.d.ts.map