import { type PathLike } from 'node:fs'; import { type Result } from '@zokugun/xtry'; import { FsError } from '../types/fs-error.mjs'; import { type WalkItem, type WalkOptions } from '../types/walk.mjs'; export declare function walk(dir: PathLike, options: WalkOptions & { collect: true; }): Result; export declare function walk(dir: PathLike, options?: WalkOptions): Result>, NodeJS.ErrnoException | FsError>;