/** * Read and parse a JSON file, returning null on failure. */ export declare function readJson(filePath: string): T | null; /** * Check if a file exists. */ export declare function fileExists(filePath: string): boolean; /** * List files matching glob patterns relative to root. */ export declare function globFiles(patterns: string[], root: string, ignore?: string[]): Promise; /** * Get file size in bytes. Returns 0 if file doesn't exist. */ export declare function getFileSize(filePath: string): number; /** * Resolve a path relative to root. */ export declare function resolveFrom(root: string, ...segments: string[]): string; /** * Read file content as string, null on failure. */ export declare function readFileContent(filePath: string): string | null; /** * Parse a lockfile to extract dependency version mappings. * Supports package-lock.json (v2/v3) and yarn.lock (v1 basic). */ export declare function parseLockfileDependencies(root: string): { name: string; version: string; }[] | null; //# sourceMappingURL=fs.d.ts.map