export interface WalkEntry { path: string; name: string; isFile: boolean; isDirectory: boolean; isSymlink: boolean; } export interface WalkOptions { maxDepth?: number; includeFiles?: boolean; includeDirs?: boolean; includeSymlinks?: boolean; followSymlinks?: boolean; canonicalize?: boolean; exts?: string[]; match?: RegExp[]; skip?: RegExp[]; } export interface ExistsOptions { isReadable?: boolean; isDirectory?: boolean; isFile?: boolean; } type PathLike = string | URL; /** Ensure that a directory exists, rejecting existing non-directory paths. */ export declare function ensureDir(directory: PathLike): Promise; /** Return whether a path exists and satisfies the requested classification. */ export declare function exists(path: PathLike, options?: ExistsOptions): Promise; /** Synchronous counterpart to {@link exists}. */ export declare function existsSync(path: PathLike, options?: ExistsOptions): boolean; /** * Walk a directory in stable lexical order. * * Symbolic links are never traversed unless `followSymlinks` is true. When * links are followed, canonical directory identities prevent cycles and * repeated traversal through aliases. */ export declare function walk(root: PathLike, options?: WalkOptions): AsyncIterableIterator; export {}; //# sourceMappingURL=fs.d.ts.map