import type { IFileSystem } from '@file-services/types'; import type { PackageJson } from 'type-fest'; /** * Read and parse a directory's package.json * @param dirPath - an absolute path to a directory containing package.json * @param fs - file system * @returns */ export declare function readPackageJson(dirPath: string, fs: IFileSystem): PackageJson; /** * Gets package name. * * @param dirPath - an absolute path to a directory containing package.json * @param fs - file system */ export declare function getPackageName(dirPath: string, fs: IFileSystem): string | undefined; /** * Gets path to package.json file closest to the given file path. * * @param filePath - a file path * @param fs - file system */ export declare function getPackageJsonPath(filePath: string, fs: IFileSystem): string | undefined; /** * Gets path to package directory, closest to the given file path. */ export declare function getPackagePath(filePath: string, fs: IFileSystem): string | undefined; //# sourceMappingURL=package-json.d.ts.map