/** * -------------------------------------------------------------------- * docmd : the zero-config documentation engine. * * @package @docmd/core (and ecosystem) * @website https://docmd.io * @repository https://github.com/docmd-io/docmd * @license MIT * @copyright Copyright (c) 2025-present docmd.io * * [docmd-source] - Please do not remove this header. * -------------------------------------------------------------------- */ import fs from 'node:fs/promises'; export declare function ensureDir(dirPath: string): Promise; export declare function remove(dirPath: string): Promise; export declare function copy(src: string, dest: string, retryCount?: number): Promise; export declare function exists(filePath: string): Promise; export declare const pathExists: typeof exists; export declare function writeJson(file: string, object: any, options?: any): Promise; declare const _default: { ensureDir: typeof ensureDir; remove: typeof remove; copy: typeof copy; pathExists: typeof exists; exists: typeof exists; writeJson: typeof writeJson; access(path: import("fs").PathLike, mode?: number): Promise; copyFile(src: import("fs").PathLike, dest: import("fs").PathLike, mode?: number): Promise; open(path: import("fs").PathLike, flags?: string | number, mode?: import("fs").Mode): Promise; rename(oldPath: import("fs").PathLike, newPath: import("fs").PathLike): Promise; truncate(path: import("fs").PathLike, len?: number): Promise; rmdir(path: import("fs").PathLike, options?: import("fs").RmDirOptions): Promise; rm(path: import("fs").PathLike, options?: import("fs").RmOptions): Promise; mkdir(path: import("fs").PathLike, options: import("fs").MakeDirectoryOptions & { recursive: true; }): Promise; mkdir(path: import("fs").PathLike, options?: import("fs").Mode | (import("fs").MakeDirectoryOptions & { recursive?: false | undefined; }) | null): Promise; mkdir(path: import("fs").PathLike, options?: import("fs").Mode | import("fs").MakeDirectoryOptions | null): Promise; readdir(path: import("fs").PathLike, options?: (import("fs").ObjectEncodingOptions & { withFileTypes?: false | undefined; recursive?: boolean | undefined; }) | BufferEncoding | null): Promise; readdir(path: import("fs").PathLike, options: { encoding: "buffer"; withFileTypes?: false | undefined; recursive?: boolean | undefined; } | "buffer"): Promise; readdir(path: import("fs").PathLike, options?: (import("fs").ObjectEncodingOptions & { withFileTypes?: false | undefined; recursive?: boolean | undefined; }) | BufferEncoding | null): Promise; readdir(path: import("fs").PathLike, options: import("fs").ObjectEncodingOptions & { withFileTypes: true; recursive?: boolean | undefined; }): Promise; readdir(path: import("fs").PathLike, options: { encoding: "buffer"; withFileTypes: true; recursive?: boolean | undefined; }): Promise[]>; readlink(path: import("fs").PathLike, options?: import("fs").ObjectEncodingOptions | BufferEncoding | null): Promise; readlink(path: import("fs").PathLike, options: import("fs").BufferEncodingOption): Promise; readlink(path: import("fs").PathLike, options?: import("fs").ObjectEncodingOptions | string | null): Promise; symlink(target: import("fs").PathLike, path: import("fs").PathLike, type?: string | null): Promise; lstat(path: import("fs").PathLike, opts?: import("fs").StatOptions & { bigint?: false | undefined; }): Promise; lstat(path: import("fs").PathLike, opts: import("fs").StatOptions & { bigint: true; }): Promise; lstat(path: import("fs").PathLike, opts?: import("fs").StatOptions): Promise; stat(path: import("fs").PathLike, opts?: import("fs").StatOptions & { bigint?: false | undefined; }): Promise; stat(path: import("fs").PathLike, opts: import("fs").StatOptions & { bigint: true; }): Promise; stat(path: import("fs").PathLike, opts?: import("fs").StatOptions): Promise; statfs(path: import("fs").PathLike, opts?: import("fs").StatFsOptions & { bigint?: false | undefined; }): Promise; statfs(path: import("fs").PathLike, opts: import("fs").StatFsOptions & { bigint: true; }): Promise; statfs(path: import("fs").PathLike, opts?: import("fs").StatFsOptions): Promise; link(existingPath: import("fs").PathLike, newPath: import("fs").PathLike): Promise; unlink(path: import("fs").PathLike): Promise; chmod(path: import("fs").PathLike, mode: import("fs").Mode): Promise; lchmod(path: import("fs").PathLike, mode: import("fs").Mode): Promise; lchown(path: import("fs").PathLike, uid: number, gid: number): Promise; lutimes(path: import("fs").PathLike, atime: import("fs").TimeLike, mtime: import("fs").TimeLike): Promise; chown(path: import("fs").PathLike, uid: number, gid: number): Promise; utimes(path: import("fs").PathLike, atime: import("fs").TimeLike, mtime: import("fs").TimeLike): Promise; realpath(path: import("fs").PathLike, options?: import("fs").ObjectEncodingOptions | BufferEncoding | null): Promise; realpath(path: import("fs").PathLike, options: import("fs").BufferEncodingOption): Promise; realpath(path: import("fs").PathLike, options?: import("fs").ObjectEncodingOptions | BufferEncoding | null): Promise; mkdtemp(prefix: string, options?: import("fs").ObjectEncodingOptions | BufferEncoding | null): Promise; mkdtemp(prefix: string, options: import("fs").BufferEncodingOption): Promise; mkdtemp(prefix: string, options?: import("fs").ObjectEncodingOptions | BufferEncoding | null): Promise; mkdtempDisposable(prefix: import("fs").PathLike, options?: import("fs").EncodingOption): Promise; writeFile(file: import("fs").PathLike | fs.FileHandle, data: string | NodeJS.ArrayBufferView | Iterable | AsyncIterable, options?: (import("fs").ObjectEncodingOptions & { mode?: import("fs").Mode | undefined; flag?: import("fs").OpenMode | undefined; flush?: boolean | undefined; } & import("events").Abortable) | BufferEncoding | null): Promise; appendFile(path: import("fs").PathLike | fs.FileHandle, data: string | NodeJS.ArrayBufferView | Iterable | AsyncIterable, options?: (import("fs").ObjectEncodingOptions & fs.FlagAndOpenMode & { flush?: boolean | undefined; }) | BufferEncoding | null): Promise; readFile(path: import("fs").PathLike | fs.FileHandle, options?: ({ encoding?: null | undefined; flag?: import("fs").OpenMode | undefined; } & import("events").Abortable) | null): Promise; readFile(path: import("fs").PathLike | fs.FileHandle, options: ({ encoding: BufferEncoding; flag?: import("fs").OpenMode | undefined; } & import("events").Abortable) | BufferEncoding): Promise; readFile(path: import("fs").PathLike | fs.FileHandle, options?: (import("fs").ObjectEncodingOptions & import("events").Abortable & { flag?: import("fs").OpenMode | undefined; }) | BufferEncoding | null): Promise; opendir(path: import("fs").PathLike, options?: import("fs").OpenDirOptions): Promise; watch(filename: import("fs").PathLike, options?: fs.WatchOptionsWithStringEncoding | BufferEncoding): NodeJS.AsyncIterator>; watch(filename: import("fs").PathLike, options: fs.WatchOptionsWithBufferEncoding | "buffer"): NodeJS.AsyncIterator>; watch(filename: import("fs").PathLike, options: fs.WatchOptions | BufferEncoding | "buffer"): NodeJS.AsyncIterator>; cp(source: string | URL, destination: string | URL, opts?: import("fs").CopyOptions): Promise; glob(pattern: string | readonly string[]): NodeJS.AsyncIterator; glob(pattern: string | readonly string[], options: import("fs").GlobOptionsWithFileTypes): NodeJS.AsyncIterator; glob(pattern: string | readonly string[], options: import("fs").GlobOptionsWithoutFileTypes): NodeJS.AsyncIterator; glob(pattern: string | readonly string[], options: import("fs").GlobOptions): NodeJS.AsyncIterator; constants: typeof import("fs").constants; }; export default _default;