/// /// import { Stats } from "fs"; import { Readable, Writable } from 'stream'; export declare class File { absolutePath: string; constructor(pathOrName: string, parent?: string | File); static workingDirectory: File; static tempDirectory: File; get name(): string; get url(): string; child(name: string): File; children(): AsyncIterable; get isDirectory(): Promise; get exists(): Promise; get stats(): Promise; descendants(): AsyncIterable; bytes(): Promise; content(newContent?: string): Promise; read(options?: StreamOptions): Readable; append(data: any, options?: FileOptions): Promise; write(options?: StreamOptions): Writable; mkdir(): Promise; delete(): Promise; copy(destination: string | File, flags?: number): Promise; } export declare type FileOptions = { encoding?: string | null; mode?: string | number; flag?: string; } | string; export declare type StreamOptions = string | { flags?: string; encoding?: string; fd?: number; mode?: number; autoClose?: boolean; start?: number; end?: number; highWaterMark?: number; };