/** * Package.json structure (partial). */ export interface PackageJson { name?: string; version?: string; dependencies?: Record; devDependencies?: Record; [key: string]: unknown; } /** * Reads and parses a package.json file from a directory. * * @param dirPath - Directory containing package.json * @returns Parsed package.json or undefined if not found/invalid */ export declare function readPackageJson(dirPath: string): Promise; /** * Checks if a file or directory exists. * * @param filePath - Path to check * @returns True if exists, false otherwise */ export declare function exists(filePath: string): Promise; /** * Finds files matching a glob pattern. * * @param pattern - Glob pattern to match * @param options - Glob options including cwd * @returns Array of matching file paths */ export declare function glob(pattern: string, options: { cwd: string; }): Promise; /** * Finds directories matching a glob pattern. * * @param pattern - Glob pattern to match * @param options - Glob options including cwd * @returns Array of matching directory paths */ export declare function globDirs(pattern: string, options: { cwd: string; }): Promise;