/** * WaveFunction — WFC tile solver with adjacency rules and backtracking * * @version 1.0.0 */ export interface WFCTile { id: string; weight: number; adjacency: { up: string[]; down: string[]; left: string[]; right: string[]; }; } export interface WFCCell { x: number; y: number; collapsed: boolean; tileId: string | null; options: string[]; } export declare class WaveFunction { private tiles; private grid; private width; private height; private rng; private contradictions; constructor(width: number, height: number, seed?: number); /** * Register a tile type */ addTile(tile: WFCTile): void; /** * Initialize the grid with all options */ initialize(): void; /** * Get the cell with lowest entropy (fewest options) */ getLowestEntropy(): WFCCell | null; /** * Collapse a cell to a single tile */ collapse(cell: WFCCell): boolean; /** * Propagate constraints from a collapsed cell */ propagate(cell: WFCCell): void; /** * Solve the entire grid */ solve(maxIterations?: number): boolean; private getNeighbors; getCell(x: number, y: number): WFCCell | undefined; getGrid(): WFCCell[][]; isComplete(): boolean; getContradictions(): number; getWidth(): number; getHeight(): number; } //# sourceMappingURL=WaveFunction.d.ts.map