/** * NexArt Code Mode Runtime SDK - Node-only Static PNG Renderer * * ╔══════════════════════════════════════════════════════════════════════════╗ * ║ DETERMINISTIC REPLAY SUPPORT (additive, Node-only) ║ * ║ ║ * ║ Renders a Static Mode sketch to a PNG Buffer in a Node / headless ║ * ║ environment, reusing the canonical render core (executeSketchToCanvas). ║ * ║ ║ * ║ This module is imported ONLY from the Node entry point so that the ║ * ║ `crypto` import is never pulled into browser bundles. ║ * ║ ║ * ║ No silent fallback: if a headless canvas is unavailable the underlying ║ * ║ createRuntimeCanvas throws, and PNG encoding requires a Node canvas ║ * ║ (node-canvas `toBuffer`) — otherwise a clear protocol error is thrown. ║ * ╚══════════════════════════════════════════════════════════════════════════╝ */ import type { EngineConfig, RunOptions } from './types'; /** * Result of a deterministic Node static render. */ export interface StaticPngResult { /** PNG-encoded image bytes (node-canvas `toBuffer('image/png')`). */ png: Buffer; /** SHA-256 of the raw RGBA pixel buffer (canonical determinism hash). */ pixelHash: string; width: number; height: number; } /** * renderStaticPng — deterministic Static Mode render to PNG (Node only). * * Delegates the actual sketch execution to the shared `executeSketchToCanvas` * core (the same code path the oracle release gate exercises), then encodes the * resulting canvas to PNG bytes via node-canvas. * * @throws if a headless canvas is unavailable (no silent fallback) or if the * created canvas does not support Node PNG encoding. */ export declare function renderStaticPng(config: EngineConfig, options: RunOptions): Promise; //# sourceMappingURL=static-png.d.ts.map