export * from './dist/shared' export interface PackageInfo { name: string rootPath: string packageJsonPath: string version: string packageJson: { name: string version: string dependencies?: Record devDependencies?: Record [key: string]: any } } export interface PackageResolvingOptions { paths?: string[] } export function isPackageExists(name: string, options?: PackageResolvingOptions): boolean export function getPackageInfo(name: string, options?: PackageResolvingOptions): Promise export function getPackageInfoSync(name: string, options?: PackageResolvingOptions): PackageInfo | undefined export function resolveModule(path: string, options?: PackageResolvingOptions): string | undefined export function importModule(path: string): Promise