import fs from "node:fs"; export type SafeOpenSyncFailureReason = "path" | "validation" | "io"; type SafeOpenSyncResult = { ok: true; path: string; fd: number; stat: fs.Stats; } | { ok: false; reason: SafeOpenSyncFailureReason; error?: unknown; }; export type SafeOpenSyncAllowedType = "file" | "directory"; type SafeOpenSyncFs = Pick; export declare function openVerifiedFileSync(params: { filePath: string; resolvedPath?: string; rejectPathSymlink?: boolean; rejectHardlinks?: boolean; maxBytes?: number; allowedType?: SafeOpenSyncAllowedType; ioFs?: SafeOpenSyncFs; }): SafeOpenSyncResult; export {};