import ts from 'typescript'; /** Get the TypeScript type checker for use in other compiler modules */ export declare const getTypeChecker: () => ts.TypeChecker | undefined; /** Get the TypeScript program for use in other compiler modules */ export declare const getTsProgram: () => ts.Program | undefined; /** Get cached source file for a given filename */ export declare const getSourceFile: (filename: string) => ts.SourceFile | undefined; /** Get cached type-check result for a symbol */ export declare const getCachedTypeCheck: (filename: string, symbolName: string) => boolean | undefined; /** Check if type-check result is cached for a symbol */ export declare const hasCachedTypeCheck: (filename: string, symbolName: string) => boolean; /** Cache type-check result for a symbol */ export declare const setCachedTypeCheck: (filename: string, symbolName: string, result: boolean | undefined) => void; /** * Ensure a file is loaded into the TypeScript Language Service. * Initializes the Language Service lazily on first use. * Only called when type inference is actually needed. */ export declare const ensureFileLoaded: (filename: string, code: string) => void; /** * Lazy-load an imported file when its symbol is referenced. * Supports both static imports (import X from 'Y') and dynamic imports (await import('Y')). * Uses Language Service's AST to find the import declaration, then loads the file on-demand. * @param symbolName - The name of the symbol being referenced (e.g., 'MyComponent') * @param containingFile - The file that references the symbol */ export declare const ensureImportLoaded: (symbolName: string, containingFile: string) => void; /** * Clean up TypeScript Language Service. * In dev mode, you may want to keep it alive across transforms. */ export declare const cleanupTypeInference: () => void; //# sourceMappingURL=ts-program-manager.d.ts.map