/** * @fileoverview TS SourceFile helper for framework/import-graph.ts. * * Sole export: `getSharedSourceFile`, a TS-specific convenience wrapper * that resolves the TypeScript adapter from the language registry and * parses through the language-aware cache (core/src/languages/ * parse-cache.ts), falling back to a direct parse when no adapter is * registered (e.g. unit tests without CLI bootstrap). * * This file no longer re-exports the parse-cache lifecycle/getParseTree * API — `import-graph.ts` is its only internal consumer. New TS check * authors should import the canonical AST helpers from * @opensip-cli/lang-typescript instead. */ import ts from 'typescript'; /** * Get a TypeScript SourceFile via the language-aware cache when the TS * adapter is registered, falling back to a direct parse otherwise. * * @internal Used by framework/import-graph.ts. New TS check authors * should import getSharedSourceFile from @opensip-cli/lang-typescript. */ export declare function getSharedSourceFile(filePath: string, content: string): ts.SourceFile | null; //# sourceMappingURL=parse-cache.d.ts.map