/// /// import fsExtra from 'fs-extra'; import type { Dirent } from 'node:fs'; export declare function copyFileSync(src: string, dest: string): void | null; export declare function copyFile(src: string, dest: string): Promise; export declare function readFile(filepath: string, encoding?: BufferEncoding): Promise; export declare function readFileSync(filepath: string): string | null; export declare function writeFile(filepath: string, data: string): Promise; export declare function access(filepath: string): Promise>; export declare function mkdirp(filepath: string): Promise; export declare function mkdirpSync(filepath: string): Promise; export declare function mkdir(filepath: string): Promise; export declare function rmdir(filepath: string): Promise; export declare function stat(filepath: string): Promise | fsExtra.Stats>; export declare function existsSync(dirPath: string): boolean; export declare function readdir(path: string, options?: never): Promise; export declare function readdir(path: string, options?: fsExtra.ObjectEncodingOptions & { withFileTypes: true; }): Promise; export declare function remove(filepath: string): Promise; type MockFilesystem = { [key: string]: string | MockFilesystem; }; export declare function mock(target: MockFilesystem[string], filepath?: string): Promise; export declare function recursiveCopy(source: string, target: string, transforms?: Record string | Promise>, notRoot?: boolean): Promise; export declare function snapshot(base?: string): { [k: string]: string | null; }; export declare function glob(pattern: string): Promise; export declare namespace glob { var hasMagic: (pattern: string | string[], options?: import("glob").GlobOptions | undefined) => boolean; } export {};