import { open } from "node:fs/promises"; type FileHandle = Awaited>; export interface SafeBodyFileReaderDependencies { platform: NodeJS.Platform; noFollow: number | undefined; nonBlock: number | undefined; open: (filePath: string, flags: number) => Promise; } /** * Reads a regular file after rejecting unsafe final path entries without exposing its contents. * Callers must trust parent directories: O_NOFOLLOW only protects the final path entry. */ export declare function readSafeBodyFile(filePath: string, dependencies?: SafeBodyFileReaderDependencies): Promise; export {};