/** Escape a string for embedding in a GDScript string literal via runtime template * interpolation (participates in GDScript % formatting). % → %% and ' → \'. */ export declare function gdEscape(s: string): string; /** Escape a string for a GDScript property-value literal (does NOT participate in % * formatting, so % and ' are preserved verbatim). Used by scene-commit serializeGdValue. * Shares escapeGdStringCore with gdEscape — change escape logic in one place. */ export declare function escapeForGdLiteral(s: string): string; /** Format a number as a Godot-compatible float literal (e.g. 2 → 2.0). */ export declare const ff: (n: number) => string; /** Normalize leading spaces to tabs to prevent "Mixed tabs and spaces" errors. * Detects the smallest nonzero leading-space count as the indent unit, * then replaces each group of that many spaces with one tab. */ export declare function normalizeIndentToTabs(code: string): string; export declare function normalizeNodePath(input: string): string; export declare function sanitizeResPath(raw: unknown, field: string): string; /** * Unified GDScript value serializer. * * Converts a JS value into a GDScript expression string. * Used by scene.ts, ui-tools.ts, animation-shared.ts, and animation-ops.ts. * * Returns a bare GDScript literal / constructor call: * null, true/false, 42, "string", Vector2(1,2), Vector3(1,2,3), Color(1,0,0,1) * * Throws on unsupported types (objects with unexpected keys, arbitrary arrays, etc.). * Throws on NaN / Infinity values. * * @param v The value to serialize. * @param trackType Optional animation track type hint (e.g. 'rotation_3d' → Quaternion). */ export declare function valueToGd(v: unknown, trackType?: string): string;