import type { Dirent, DirentLike } from 'tiny-readdir'; type ArrayMaybe = T[] | T; type PromiseMaybe = Promise | T; type Options = { cwd?: string; depth?: number; limit?: number; followSymlinks?: boolean; ignore?: ArrayMaybe<((targetPath: string, targetContext: DirentLike) => boolean) | RegExp | string>; signal?: { aborted: boolean; }; onDirents?: (dirents: Dirent[]) => PromiseMaybe; }; type Result = { directories: string[]; files: string[]; symlinks: string[]; }; export type { ArrayMaybe, PromiseMaybe, Dirent, DirentLike, Options, Result };