export type ImageErrorCode = "missing_config" | "invalid_base_url" | "auth_failed" | "forbidden" | "not_found" | "rate_limited" | "server_error" | "timeout" | "network_error" | "invalid_request" | "invalid_json" | "invalid_image" | "unsupported_format" | "model_unavailable" | "capability_unknown" | "response_too_large" | "request_too_large" | "download_too_large" | "unsupported_provider"; export declare class ImageGenError extends Error { readonly code: ImageErrorCode; readonly suggestion: string; readonly status?: number | undefined; constructor(code: ImageErrorCode, message: string, suggestion: string, status?: number | undefined); toUserMessage(): string; } export declare function sanitizeSecret(text: string, apiKey?: string): string; export declare function maskApiKey(key: string): string; export declare function errorFromStatus(status: number, action: string, detail?: string): ImageGenError; //# sourceMappingURL=errors.d.ts.map