/** * Adapter to ensure language-service always works with old AST format */ import type * as AST from '@rcs-lang/ast'; import { type ASTNode } from './ast-compatibility.js'; /** * Wraps any function that expects old AST to handle new AST */ export declare function wrapASTFunction any>(fn: T, astArgIndex?: number): T; /** * Ensures AST is in old format */ export declare function ensureOldAST(ast: any): ASTNode; /** * Type guard to check if value is new AST */ export declare function isNewAST(value: any): value is AST.RclFile; //# sourceMappingURL=ast-adapter.d.ts.map