/** * NexArt Code Mode Runtime SDK - Static Engine * Protocol: v1.2.0 (Phase 3) — HARD ENFORCEMENT * * Static mode renderer: executes setup() only, captures single PNG. * Does NOT execute draw() - per NexArt Execution Specification v1. * * Determinism Guarantee: * Same code + same seed + same VARs = identical PNG output * * Security: * All external entropy sources are blocked at runtime via execution sandbox. * * Oracle Support: * When returnImageData is true, returns raw ImageData for determinism hashing. * Works in both browser (HTMLCanvasElement) and Node (canvas package) environments. */ import type { EngineConfig, RunOptions } from './types'; /** * Result of executing a sketch's setup() onto a runtime canvas. * Internal shared shape used by both runStaticMode (public) and the Node-only * renderStaticPng helper. Not re-exported from the public package entries. */ export interface SketchCanvasResult { canvas: HTMLCanvasElement; imageData: ImageData; width: number; height: number; } /** * Execute a sketch's setup() onto a freshly created runtime canvas and capture * its pixels. This is the single source of truth for Static Mode rendering — * both `runStaticMode` and the Node-only PNG helper delegate here so that the * deterministic pixel output never diverges between consumers. * * IMPORTANT: This function performs the exact same operations, in the same * order, that `runStaticMode` historically performed up to and including * `getImageData`. Do not reorder or alter these steps — the oracle hash * (release gate) depends on byte-identical pixel output. */ export declare function executeSketchToCanvas(config: EngineConfig, options: RunOptions): Promise; export declare function runStaticMode(config: EngineConfig, options: RunOptions): Promise; //# sourceMappingURL=static-engine.d.ts.map