import ts from "typescript"; import type { IValFSHost } from "./ValFSHost.js"; import { ValSourceFileHandler } from "./ValSourceFileHandler.js"; export declare const createModuleLoader: (rootDir: string, host?: IValFSHost) => ValModuleLoader; export declare class ValModuleLoader { readonly projectRoot: string; private readonly compilerOptions; private readonly sourceFileHandler; private readonly host; private readonly disableCache; private cache; private cacheSize; constructor(projectRoot: string, compilerOptions: ts.CompilerOptions, // TODO: remove this? sourceFileHandler: ValSourceFileHandler, host?: IValFSHost, disableCache?: boolean); getModule(modulePath: string): string; resolveModulePath(containingFilePath: string, requestedModuleName: string): string; private findMatchingJsFile; }