import type { NoParamCallback, OpenMode, PathLike, Stats, WriteFileOptions } from "node:fs"; export interface AbstractFs { stat(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void; statSync(path: PathLike): Stats; open(path: PathLike, flags: OpenMode, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void; write(fd: number, buffer: TBuffer, offset: number | undefined | null, length: number | undefined | null, position: number | undefined | null, callback: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffer: TBuffer) => void): void; read(fd: number, buffer: TBuffer, offset: number, length: number, position: number | null, callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void): void; close(fd: number, callback: NoParamCallback): void; writeFile(path: PathLike | number, data: string | NodeJS.ArrayBufferView, options: WriteFileOptions, callback: NoParamCallback): void; readFile(path: PathLike | number, options: { encoding: BufferEncoding; flag?: string; } | string, callback: (err: NodeJS.ErrnoException | null, data: string) => void): void; existsSync(filename: string): boolean; } //# sourceMappingURL=abstract_fs.d.ts.map