import type { Theme } from "@design-parity/core"; /** A request to rasterize one variant of an HTML export. */ export interface RasterRequest { /** Absolute path to the HTML export to render. */ htmlPath: string; /** Variant state, e.g. `"default"`. */ state: string; theme?: Theme; size?: string; } /** The product of rasterization: an absolute PNG path and its dimensions. */ export interface RasterResult { /** Absolute path to the written PNG. */ pngPath: string; width: number; height: number; } /** Renders an HTML export variant to a PNG on disk. */ export type Rasterizer = (req: RasterRequest) => Promise; /** * Default rasterizer: drives a headless Chrome/Chromium via `--screenshot`. * * It writes the PNG into a fresh temp directory and reads back its dimensions. * Never invoked by the adapter for exports that ship pre-rendered `src` images; * only raw exports (or `src`-less variants) reach it. * * @throws a clear, actionable error if no Chrome/Chromium binary is found. */ export declare const browserRasterizer: Rasterizer; //# sourceMappingURL=rasterizer.d.ts.map