/// <reference types="node" />
/// <reference types="graceful-fs" />
import { promises as _fs } from "fs";
declare function fileExists(at: string): Promise<boolean>;
declare function folderExists(at: string): Promise<boolean>;
declare function readTextFile(at: string): Promise<string>;
declare function writeTextFile(at: string, contents: string): Promise<void>;
export declare const fs: {
    fileExists: typeof fileExists;
    folderExists: typeof folderExists;
    readTextFile: typeof readTextFile;
    writeTextFile: typeof writeTextFile;
    access(path: import("fs").PathLike, mode?: number | undefined): Promise<void>;
    copyFile(src: import("fs").PathLike, dest: import("fs").PathLike, flags?: number | undefined): Promise<void>;
    open(path: import("fs").PathLike, flags: string | number, mode?: string | number | undefined): Promise<_fs.FileHandle>;
    read<TBuffer extends Uint8Array>(handle: _fs.FileHandle, buffer: TBuffer, offset?: number | null | undefined, length?: number | null | undefined, position?: number | null | undefined): Promise<{
        bytesRead: number;
        buffer: TBuffer;
    }>;
    write<TBuffer_1 extends Uint8Array>(handle: _fs.FileHandle, buffer: TBuffer_1, offset?: number | null | undefined, length?: number | null | undefined, position?: number | null | undefined): Promise<{
        bytesWritten: number;
        buffer: TBuffer_1;
    }>;
    write(handle: _fs.FileHandle, string: any, position?: number | null | undefined, encoding?: string | null | undefined): Promise<{
        bytesWritten: number;
        buffer: string;
    }>;
    rename(oldPath: import("fs").PathLike, newPath: import("fs").PathLike): Promise<void>;
    truncate(path: import("fs").PathLike, len?: number | undefined): Promise<void>;
    ftruncate(handle: _fs.FileHandle, len?: number | undefined): Promise<void>;
    rmdir(path: import("fs").PathLike, options?: import("fs").RmDirAsyncOptions | undefined): Promise<void>;
    fdatasync(handle: _fs.FileHandle): Promise<void>;
    fsync(handle: _fs.FileHandle): Promise<void>;
    mkdir(path: import("fs").PathLike, options: import("fs").MakeDirectoryOptions & {
        recursive: true;
    }): Promise<string>;
    mkdir(path: import("fs").PathLike, options?: string | number | (import("fs").MakeDirectoryOptions & {
        recursive?: false | undefined;
    }) | null | undefined): Promise<void>;
    mkdir(path: import("fs").PathLike, options?: string | number | import("fs").MakeDirectoryOptions | null | undefined): Promise<string | undefined>;
    readdir(path: import("fs").PathLike, options?: "utf8" | "ascii" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex" | {
        encoding?: "utf8" | "ascii" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex" | null | undefined;
        withFileTypes?: false | undefined;
    } | null | undefined): Promise<string[]>;
    readdir(path: import("fs").PathLike, options: {
        encoding: "buffer";
        withFileTypes?: false | undefined;
    } | "buffer"): Promise<Buffer[]>;
    readdir(path: import("fs").PathLike, options?: string | {
        encoding?: string | null | undefined;
        withFileTypes?: false | undefined;
    } | null | undefined): Promise<string[] | Buffer[]>;
    readdir(path: import("fs").PathLike, options: {
        encoding?: string | null | undefined;
        withFileTypes: true;
    }): Promise<import("fs").Dirent[]>;
    readlink(path: import("fs").PathLike, options?: "utf8" | "ascii" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex" | {
        encoding?: "utf8" | "ascii" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex" | null | undefined;
    } | null | undefined): Promise<string>;
    readlink(path: import("fs").PathLike, options: "buffer" | {
        encoding: "buffer";
    }): Promise<Buffer>;
    readlink(path: import("fs").PathLike, options?: string | {
        encoding?: string | null | undefined;
    } | null | undefined): Promise<string | Buffer>;
    symlink(target: import("fs").PathLike, path: import("fs").PathLike, type?: string | null | undefined): Promise<void>;
    fstat(handle: _fs.FileHandle): Promise<import("fs").Stats>;
    lstat(path: import("fs").PathLike): Promise<import("fs").Stats>;
    stat(path: import("fs").PathLike): Promise<import("fs").Stats>;
    link(existingPath: import("fs").PathLike, newPath: import("fs").PathLike): Promise<void>;
    unlink(path: import("fs").PathLike): Promise<void>;
    fchmod(handle: _fs.FileHandle, mode: string | number): Promise<void>;
    chmod(path: import("fs").PathLike, mode: string | number): Promise<void>;
    lchmod(path: import("fs").PathLike, mode: string | number): Promise<void>;
    lchown(path: import("fs").PathLike, uid: number, gid: number): Promise<void>;
    fchown(handle: _fs.FileHandle, uid: number, gid: number): Promise<void>;
    chown(path: import("fs").PathLike, uid: number, gid: number): Promise<void>;
    utimes(path: import("fs").PathLike, atime: string | number | Date, mtime: string | number | Date): Promise<void>;
    futimes(handle: _fs.FileHandle, atime: string | number | Date, mtime: string | number | Date): Promise<void>;
    realpath(path: import("fs").PathLike, options?: "utf8" | "ascii" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex" | {
        encoding?: "utf8" | "ascii" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex" | null | undefined;
    } | null | undefined): Promise<string>;
    realpath(path: import("fs").PathLike, options: "buffer" | {
        encoding: "buffer";
    }): Promise<Buffer>;
    realpath(path: import("fs").PathLike, options?: string | {
        encoding?: string | null | undefined;
    } | null | undefined): Promise<string | Buffer>;
    mkdtemp(prefix: string, options?: "utf8" | "ascii" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex" | {
        encoding?: "utf8" | "ascii" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex" | null | undefined;
    } | null | undefined): Promise<string>;
    mkdtemp(prefix: string, options: "buffer" | {
        encoding: "buffer";
    }): Promise<Buffer>;
    mkdtemp(prefix: string, options?: string | {
        encoding?: string | null | undefined;
    } | null | undefined): Promise<string | Buffer>;
    writeFile(path: string | Buffer | import("url").URL | _fs.FileHandle, data: any, options?: string | {
        encoding?: string | null | undefined;
        mode?: string | number | undefined;
        flag?: string | number | undefined;
    } | null | undefined): Promise<void>;
    appendFile(path: string | Buffer | import("url").URL | _fs.FileHandle, data: any, options?: string | {
        encoding?: string | null | undefined;
        mode?: string | number | undefined;
        flag?: string | number | undefined;
    } | null | undefined): Promise<void>;
    readFile(path: string | Buffer | import("url").URL | _fs.FileHandle, options?: {
        encoding?: null | undefined;
        flag?: string | number | undefined;
    } | null | undefined): Promise<Buffer>;
    readFile(path: string | Buffer | import("url").URL | _fs.FileHandle, options: "utf8" | {
        encoding: BufferEncoding;
        flag?: string | number | undefined;
    } | "ascii" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex"): Promise<string>;
    readFile(path: string | Buffer | import("url").URL | _fs.FileHandle, options?: string | {
        encoding?: string | null | undefined;
        flag?: string | number | undefined;
    } | null | undefined): Promise<string | Buffer>;
    opendir(path: string, options?: import("fs").OpenDirOptions | undefined): Promise<import("fs").Dir>;
};
export {};
