type ThirdPartyExtractorOptions = { destDir: string; context?: string; exclude?: Array; }; declare class ThirdPartyExtractor { pkgs: Record; pattern: RegExp; context: string; destDir: string; exclude: Array; constructor({ destDir, context, exclude, }: ThirdPartyExtractorOptions); addPkgs(pkgName: string, dirName: string): void; inferPkgDir(importPath: string): string | void; collectTypeImports(str: string): string[]; collectPkgs(str: string): void; copyDts(): Promise; } export { ThirdPartyExtractor };