import * as tsvfs from "@typescript/vfs";
import type { IndexedDbCache } from "./cache";
type EnvOptions = {
    cache: IndexedDbCache;
    code: {
        content: string;
        fileName: string;
    };
};
export declare function removeUnusedLibs(fsMap: Map<string, string>): void;
export declare function setupTypescriptEnv({ cache, code }: EnvOptions): Promise<tsvfs.VirtualTypeScriptEnvironment>;
export declare function loadCDNTypes(fsMap: Map<string, string>): Promise<void>;
export {};
