import type { AssetType } from "../types.js"; /** * Upscale / refine — asset-type-aware. * * Routing (from SYNTHESIS.md § Recommendation 19): * - Flat logo/icon/favicon → DAT2 (4x-UltraSharpV2 / 4x-IllustrationJaNai-DAT2) * - Photoreal hero → SUPIR (A100-class) or Real-ESRGAN * - Diffusion polish → Flux img2img 0.12-0.20 denoise * - Typography/text-in-image → DAT2 fine-tunes only; NEVER diffusion (hallucinates letters) * * Local fallback: sharp Lanczos resize. Good for logo-like flat content, acceptable for modest upscales. */ export interface UpscaleInput { image: Buffer; asset_type?: AssetType; target_size: number; mode?: "auto" | "dat2" | "real-esrgan" | "supir" | "img2img" | "lanczos"; } export interface UpscaleResult { image: Buffer; method_used: string; target_size: number; warnings: string[]; } export declare function upscale(input: UpscaleInput): Promise; //# sourceMappingURL=upscale.d.ts.map