/** * OG image renderer — deterministic, no diffusion by default. * * Primary path (research 18-asset-pipeline-tools): Satori (JSX → SVG) + * @resvg/resvg-js (SVG → PNG). Satori requires a TTF/OTF font buffer. * Source: docs/research/18-asset-pipeline-tools/. * * Font resolution order: * 1. input.fontData (caller-provided buffer) * 2. input.fontPath (caller-provided path) * 3. env PROMPT_TO_BUNDLE_OG_FONT (filesystem path) * 4. @fontsource/inter (optional dep) — bundled Inter 400 and 700 weights. * * If none available or optional deps (`satori`, `@resvg/resvg-js`) missing, * falls back to a hand-authored SVG + sharp rasterization path. Still * produces a valid 1200×630 PNG. */ export interface OgRenderInput { title: string; subtitle?: string; template: "centered_hero" | "left_title" | "minimal" | "quote" | "product_card"; palette?: string[]; logoSvg?: string; backgroundImage?: Buffer; fontData?: Buffer; fontPath?: string; /** * Brand-provided font family name. Passed to Satori as the fontFamily * `name`. The matching font data must also be resolvable via fontData / * fontPath / PROMPT_TO_BUNDLE_OG_FONT; otherwise Satori falls back to the * bundled Inter. Satori does not fetch webfonts by name. */ fontFamily?: string; } export interface OgRenderResult { png: Buffer; svg: string; renderer: "satori+resvg" | "sharp-fallback" | "svg-only"; warnings: string[]; } export declare function renderOg(input: OgRenderInput): Promise; //# sourceMappingURL=og-render.d.ts.map