import { type SupportedPackageManagers } from '@o3r/schematics'; import type { MigrationCheckGranularity } from './metadata-comparator-interface'; /** * Returns a file from an npm package. * @param packageRef Npm compatible package descriptor (version or range) * @param filePaths List of files paths to extract * @param packageManager Name of the package manager to use * @param cwd working directory */ export declare function getFilesFromRegistry(packageRef: string, filePaths: string[], packageManager: SupportedPackageManagers, cwd?: string): Promise<{ [key: string]: string; }>; /** * Read and parses a JSON file * @param metadataPath Path of the file */ export declare function getLocalMetadataFile(metadataPath: string): T; /** * Given a path to a folder and a name pattern, returns the content of the file with the latest version in its name. * @param migrationDataFiles Migration data files paths */ export declare function getLatestMigrationMetadataFile(migrationDataFiles: string[]): Promise<{ version: string; path: string; } | undefined>; /** * Returns the range of package versions from which we will get the previous version according to granularity. * @param latestMigrationVersion Latest version in the migration files * @param granularity 'major' or 'minor' */ export declare function getVersionRangeFromLatestVersion(latestMigrationVersion: string, granularity: MigrationCheckGranularity): Promise; //# sourceMappingURL=metadata-files-helper.d.ts.map