import typescript from 'typescript'; import { R as RemoteOptions, H as HostOptions, a as RemoteInfo, D as DTSManagerOptions } from './DTSManagerOptions-3bdefa15.js'; import { UpdateMode } from '@module-federation/dev-server'; import '@module-federation/sdk'; declare const retrieveRemoteConfig: (options: RemoteOptions) => { tsConfig: typescript.CompilerOptions; mapComponentsToExpose: Record; remoteOptions: Required; }; declare const retrieveHostConfig: (options: HostOptions) => { hostOptions: Required; mapRemotesToDownload: Record; }; interface UpdateTypesOptions { updateMode: UpdateMode; remoteName?: string; remoteTarPath?: string; } declare class DTSManager { options: DTSManagerOptions; runtimePkgs: string[]; remoteAliasMap: Record>; loadedRemoteAPIAlias: string[]; constructor(options: DTSManagerOptions); generateAPITypes(mapComponentsToExpose: Record): string; generateTypes(): Promise; requestRemoteManifest(remoteInfo: RemoteInfo): Promise>; consumeTargetRemotes(hostOptions: Required, remoteInfo: Required): Promise<[string, string] | undefined>; downloadAPITypes(remoteInfo: Required, destinationPath: string): Promise; consumeAPITypes(hostOptions: Required): void; consumeArchiveTypes(options: HostOptions): Promise<{ hostOptions: Required; downloadPromisesResult: PromiseSettledResult<[string, string] | undefined>[]; }>; consumeTypes(): Promise; updateTypes(options: UpdateTypesOptions): Promise; } declare function getDTSManagerConstructor(implementation?: string): typeof DTSManager; declare const validateOptions: (options: HostOptions) => void; declare function retrieveTypesAssetsInfo(options: RemoteOptions): { apiTypesPath: string; zipTypesPath: string; zipName: string; apiFileName: string; }; declare const retrieveMfTypesPath: (tsConfig: typescript.CompilerOptions, remoteOptions: Required) => string; declare const retrieveOriginalOutDir: (tsConfig: typescript.CompilerOptions, remoteOptions: Required) => string; declare const retrieveTypesZipPath: (mfTypesPath: string, remoteOptions: Required) => string; declare function generateTypes(options: DTSManagerOptions): Promise; declare function generateTypesInChildProcess(options: DTSManagerOptions): Promise; declare function consumeTypes(options: DTSManagerOptions): Promise; export { DTSManager, DTSManagerOptions, HostOptions, RemoteOptions, consumeTypes, generateTypes, generateTypesInChildProcess, getDTSManagerConstructor, retrieveHostConfig, retrieveMfTypesPath, retrieveOriginalOutDir, retrieveRemoteConfig, retrieveTypesAssetsInfo, retrieveTypesZipPath, validateOptions };