/** * @license * Copyright 2025 Steven Roussey * SPDX-License-Identifier: Apache-2.0 */ /** * Thrown synchronously from validateInput() when the requested model cannot * support a feature on the provided input (e.g., Gemini + mask, HF + multiple images). * Surfaces before any worker/queue dispatch. */ export declare class ProviderUnsupportedFeatureError extends Error { readonly field: string; readonly modelId: string; readonly retryable = false; constructor(field: string, modelId: string, detail: string); } /** * Thrown when a provider returns a content-policy refusal (OpenAI moderation, * Gemini SAFETY block, HF NSFW filter). Non-retryable. */ export declare class ImageGenerationContentPolicyError extends Error { readonly modelId: string; readonly providerReason: string; readonly retryable = false; constructor(modelId: string, providerReason: string); } /** * Wraps any other provider failure (rate limits, transient 5xx, malformed responses). * Retryable per the existing job-queue retry policy. */ export declare class ImageGenerationProviderError extends Error { readonly modelId: string; readonly retryable = true; constructor(modelId: string, message: string, options?: ErrorOptions); } //# sourceMappingURL=ImageGenerationErrors.d.ts.map