/** * QuiltCompiler — Generates multi-view quilt images for Looking Glass displays. * * Compiles HoloScript scenes to quilt format: a tile grid of 45-100 views * stored in a single image. Each tile is rendered from a different camera * position along a horizontal baseline using view shearing (asymmetric frustum) * to prevent toe-in artifacts. * * @see W.151: Quilt format is the interchange standard for holographic images * @see P.151.01: Multi-View Camera Rig pattern * @see G.153.01: Inpainting Seams in Quilt Views */ export interface HoloObjectDecl { traits?: Array<{ name: string; config?: Record; }>; properties: Array<{ key: string; value: unknown; }>; } export interface HoloComposition { name?: string; objects: HoloObjectDecl[]; } export interface QuiltConfig { /** Number of views in the quilt. Default: 48 */ views: number; /** Number of columns in the tile grid. Default: 8 */ columns: number; /** Number of rows in the tile grid. Default: 6 */ rows: number; /** Resolution of the full quilt image [width, height]. Default: [3360, 3360] */ resolution: [number, number]; /** Total camera baseline in scene units (horizontal offset range). Default: 0.06 */ baseline: number; /** Target Looking Glass device. Default: '16inch' */ device: 'go' | '16inch' | '27inch' | '65inch'; /** Focus distance from camera rig center. Default: 2.0 */ focusDistance: number; } export interface QuiltTile { /** View index (0 = leftmost, N-1 = rightmost) */ index: number; /** Column position in tile grid */ column: number; /** Row position in tile grid */ row: number; /** Camera offset from center along horizontal baseline */ cameraOffset: number; /** View shear amount for asymmetric frustum */ viewShear: number; } export interface QuiltCompilationResult { /** Quilt configuration used */ config: QuiltConfig; /** Per-tile camera parameters for rendering */ tiles: QuiltTile[]; /** Browser delegate code for rendering the quilt through BrowserQuiltRenderer */ rendererCode: string; /** Runtime that owns the actual per-tile render loop. */ rendererRuntime: 'BrowserQuiltRenderer'; /** Metadata for Looking Glass Bridge SDK */ metadata: { quiltAspect: number; tileWidth: number; tileHeight: number; numViews: number; }; } export declare class QuiltCompiler { compile(composition: HoloComposition, agentToken: string, outputPath?: string): string; /** * Compile a HoloComposition to full quilt output with tile parameters. */ compileQuilt(composition: HoloComposition, overrides?: Partial): QuiltCompilationResult; /** * Resolve quilt configuration from composition @quilt trait and device presets. */ private resolveConfig; /** * Generate tile parameters for the camera rig. * Uses view shearing (asymmetric frustum) instead of camera rotation * to prevent toe-in artifacts. * * @see P.151.01: Multi-View Camera Rig pattern */ generateTiles(config: QuiltConfig): QuiltTile[]; /** * Generate browser delegate code for the real quilt renderer. */ private generateRendererCode; } //# sourceMappingURL=QuiltCompiler.d.ts.map