import { GeneratedWorld } from '../worldgen/index.js'; import { PatchCommand } from './schema.js'; export interface PatchResult { success: boolean; commandsExecuted: number; errors: PatchError[]; warnings: PatchWarning[]; } export interface PatchError { command: string; message: string; location?: { x: number; y: number; }; } export interface PatchWarning { command: string; message: string; } /** * Options for patch application */ export interface PatchOptions { /** If true, skip invalid commands instead of failing. Default: false */ skipInvalid?: boolean; /** If true, validate but don't apply. Default: false */ dryRun?: boolean; } /** * Applies a list of patch commands to a generated world. * Mutates the world object in place for performance. * * @returns PatchResult with success status and any errors/warnings */ export declare function applyPatch(world: GeneratedWorld, commands: PatchCommand[], options?: PatchOptions): PatchResult; //# sourceMappingURL=engine.d.ts.map