import { Dirent, OpenDirOptions, Stats } from 'node:fs'; import { WalkOptions as WalkOptions$1 } from '../../../common/fs/index.mjs'; /** @inheritdoc */ interface WalkOptions extends WalkOptions$1> { /** * Whether to ignore inaccessible files or directories (due to permissions or non-existence). * * @default true */ ignoreInaccessible?: boolean; /** * Options to pass to `opendir` when opening directories. */ openDirOptions?: Omit; } /** * Walks through a directory, using the Breadth-First Search (BFS) algorithm. * It scan a directory before its subdirectories. * * @template T - The type of the entries yielded by the walk. */ declare function walk>(path: string | string[], options?: WalkOptions): AsyncGenerator; /** * Get the stats of a file or directory. * * @param path - The path to the file or directory. * @returns The stats of the file or directory, or `false` if it does not exist. */ declare function stat(path: string): Promise; /** * Check if a file exists. */ declare function fileExists(path: string): Promise; /** * Check if a directory exists. */ declare function directoryExists(path: string): Promise; export { directoryExists, fileExists, stat, walk }; export type { WalkOptions };