import fs from 'node:fs'; export type UnsafeFilesystemEntryKind = 'symbolic-link' | 'non-regular' | 'changed-during-read'; export declare class UnsafeFilesystemEntryError extends Error { readonly kind: UnsafeFilesystemEntryKind; readonly filePath: string; constructor(filePath: string, kind: UnsafeFilesystemEntryKind, options?: ErrorOptions); } export declare function sameFileIdentity(first: fs.Stats, second: fs.Stats): boolean; /** Read one stable regular file without following a symlink or blocking on a FIFO. */ export declare function readRegularFileNoFollow(filePath: string): Buffer;