type Use = "read" | "append" | "replace"; type OpenOptions = { followSymlinks?: boolean; use?: Use; }; type ReadOptions = Omit & { maxBytes?: number; }; type WriteOptions = Omit & { use: Exclude; }; /** * A FIFO or device would hold a synchronous read or write for as long as the * other side likes, past any hook deadline. Opening non-blocking and judging * the descriptor leaves no window between the check and the use. The caller * closes it. */ export declare const openRegular: (file: string, options?: OpenOptions) => { fd: number; size: number; } | undefined; export declare const readRegularFile: (file: string, options?: ReadOptions) => Buffer | undefined; export declare const readRegularText: (file: string, options?: ReadOptions) => string | undefined; export declare const writeRegularFile: (file: string, text: string, options: WriteOptions) => boolean; export {}; //# sourceMappingURL=regularFile.d.ts.map