/** * @nexart/ui-renderer v0.8.0 - System Compiler * * Compiles validated systems into protocol-compatible JSON. * Lightweight preview runtime — no protocol enforcement. */ import type { NexArtSystem } from './types'; export interface CompiledDeclarativeSystem { protocol: 'nexart'; systemType: 'declarative'; systemVersion: string; seed: number; background: { color: string; texture: string; gradient?: { type: string; colors: string[]; angle?: number; }; }; elements: Array<{ type: string; [key: string]: unknown; }>; motion: { source: string; speed?: number; }; deterministic: boolean; compiledAt: string; compilerVersion: string; } export interface CompiledCodeSystem { protocol: 'nexart'; systemType: 'code'; systemVersion: string; source: string; mode: 'static' | 'loop'; width: number; height: number; seed: number; totalFrames?: number; deterministic: boolean; compiledAt: string; compilerVersion: string; } export type CompiledSystem = CompiledDeclarativeSystem | CompiledCodeSystem; export declare function compileSystem(system: NexArtSystem): CompiledSystem; export declare function serializeSystem(system: NexArtSystem): string; //# sourceMappingURL=compiler.d.ts.map