/** * GDScript import resolution for res:// paths. * * GDScript uses preload("res://path/to/file.gd") and load("res://path/to/file.gd") * to import other scripts. The "res://" prefix is Godot's virtual filesystem root, * which maps to the project root directory (where project.godot lives). * * Resolution strategy: * 1. Strip "res://" prefix → get a project-relative path * 2. Find project root by locating project.godot in the file tree * 3. Resolve to an absolute path and check against known files * * Falls back to null (not found) if the res:// path cannot be resolved. */ /** * Resolve a GDScript res:// import path to an absolute file path. * * @param importPath The raw import string, e.g. "res://scripts/Player.gd" * @param projectRoot The absolute path to the Godot project root (directory of project.godot) * @param allFiles Set of all known file paths in the repository */ export declare function resolveGDScriptImport(importPath: string, projectRoot: string | null, allFiles: Set): string | null; /** * Find the Godot project root by looking for project.godot in the file set. * Returns the directory containing project.godot, or null if not found. */ export declare function findGodotProjectRoot(allFiles: Set): string | null;