import type { GodotRunner } from '../utils/godot-runner.js'; import type { HandlerResult, OperationParams } from '../mcp.types.js'; export declare const validateToolDefinitions: readonly [{ readonly name: "validate"; readonly description: "Validate GDScript syntax or scene integrity using headless Godot. Use before attach_script or run_script to catch parse errors early. Give exactly one of scriptPath, source, or scenePath, or a targets array validated in one Godot process. Returns { valid, errors } for one target, { results: [{ target, valid, errors }] } for a batch. An errors entry is { line?, message } for a parse error, or { check, problem?, message } for a checks[] finding. checks requires scenePath and instantiates the scene, running each attached script's _init(). Any parse error yields valid:false."; readonly annotations: { readonly readOnlyHint: true; }; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly projectPath: { readonly type: "string"; readonly description: "Path to the Godot project directory"; }; readonly scriptPath: { readonly type: "string"; readonly description: "[single] Path to a .gd file relative to the project to validate (e.g. \"scripts/player.gd\")"; }; readonly source: { readonly type: "string"; readonly description: "[single] Inline GDScript source code to validate. Written to a temporary file and validated against the project."; }; readonly scenePath: { readonly type: "string"; readonly description: "[single] Path to a .tscn scene file relative to the project to validate (e.g. \"scenes/main.tscn\")"; }; readonly checks: { readonly type: "array"; readonly description: "[single, requires scenePath] Structural and signal-verification checks to run against the scene. Types: \"structure\" (validate node tree against a schema) and \"signals\" (verify signal connections and handler methods, optional nodePath scope). Merged into the errors array with a \"check\" discriminator."; readonly items: { readonly type: "object"; readonly properties: { readonly type: { readonly type: "string"; readonly enum: readonly ["structure", "signals"]; readonly description: "The kind of check to run"; }; readonly schema: { readonly type: "object"; readonly description: "[structure] Recursive node schema: { type?: string, children?: Schema[], hasProperty?: string }. Checks the root node and subtree."; }; readonly nodePath: { readonly type: "string"; readonly description: "[signals] Optional node path to scope the check to a subtree (e.g. \"root/HUD\")"; }; }; readonly required: readonly ["type"]; }; }; readonly targets: { readonly type: "array"; readonly description: "[batch] Array of targets to validate in a single Godot process. Each item must have exactly one of: scriptPath, source, or scenePath."; readonly items: { readonly type: "object"; readonly properties: { readonly scriptPath: { readonly type: "string"; readonly description: "Path to a .gd file relative to the project"; }; readonly source: { readonly type: "string"; readonly description: "Inline GDScript source code"; }; readonly scenePath: { readonly type: "string"; readonly description: "Path to a .tscn scene file relative to the project"; }; readonly checks: { readonly type: "array"; readonly description: "[requires scenePath] Structural / signal checks for this target, run in the same Godot process as the rest of the batch. Same shape as the top-level checks array."; readonly items: { readonly type: "object"; readonly properties: { readonly type: { readonly type: "string"; readonly enum: readonly ["structure", "signals"]; readonly description: "The kind of check to run"; }; readonly schema: { readonly type: "object"; readonly description: "[structure] Recursive node schema: { type?: string, children?: Schema[], hasProperty?: string }. Checks the root node and subtree."; }; readonly nodePath: { readonly type: "string"; readonly description: "[signals] Optional node path to scope the check to a subtree (e.g. \"root/HUD\")"; }; }; readonly required: readonly ["type"]; }; }; }; }; }; }; readonly required: readonly ["projectPath"]; }; }]; export declare function handleValidate(runner: GodotRunner, args: OperationParams): Promise; //# sourceMappingURL=validate-tools.d.ts.map