/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { File, type Bytes, type Filesystem, type FilesystemNode, type MaybeAsyncIterable, type MaybePromise } from "@matter/general";
export declare class NodeJsFile extends File {
    #private;
    constructor(fs: Filesystem, path: string, name: string, cachedStat?: FilesystemNode.Stat);
    get fs(): Filesystem;
    get name(): string;
    get path(): string;
    exists(): Promise<boolean>;
    stat(): MaybePromise<FilesystemNode.Stat>;
    readBytes(): AsyncIterable<Uint8Array>;
    readText(options?: File.ReadTextOptions): AsyncIterable<string>;
    write(data: Bytes | string | MaybeAsyncIterable<Bytes> | MaybeAsyncIterable<string>): Promise<void>;
    open(purpose: string, mode?: File.OpenMode): Promise<File.Handle>;
    rename(newName: string): Promise<void>;
    delete(): Promise<void>;
}
//# sourceMappingURL=NodeJsFile.d.ts.map