import type { ApiClient } from '../http/client.js'; import type { ProgressReporter } from '../progress.js'; export interface MockupParams { merchandise_provider_uuid: string; generated_image_uuid: string; provider_product_ref_id: string; templates: Record[]; variant_ids: (number | string)[]; } export interface MockupResult { job_uuid: string; preview_url?: string; /** * Present when the design behind this mockup has an opaque background and * will therefore print as a coloured rectangle on a placed print * (apparelhub-ai#1151). Computed server side and returned by the poll. * * This defect has already shipped through an unattended run: a scheduled * build produced products whose printed artwork carried the green screen it * was generated on, because nothing checked. Carrying it here is what lets a * caller see it BEFORE the product is created. */ design_check?: Record; } export interface MockupDeps { progress?: ProgressReporter; sleep?: (ms: number) => Promise; signal?: AbortSignal; timeoutMs?: number; intervalMs?: number; workspace?: string; } export declare function runMockup(api: ApiClient, params: MockupParams, deps?: MockupDeps): Promise;