import * as fs from "node:fs"; export type SyncFileTestFunction = (file: fs.Dirent) => boolean; export type FileTestFunction = SyncFileTestFunction | ((file: fs.Dirent) => Promise); export type PossibleNameTypes = string | string[] | RegExp | FileTestFunction; export type SyncPossibleNameTypes = string | string[] | RegExp | SyncFileTestFunction; export interface Options { cwd?: string; type?: "file" | "directory" | "any"; allowSymlinks?: boolean; stopAt?: string; } export declare function getFindUpGenerator(name: PossibleNameTypes, { cwd, type, allowSymlinks, stopAt, }?: Options): AsyncGenerator; export declare function getFindUpGeneratorSync(name: SyncPossibleNameTypes, { cwd, type, allowSymlinks, stopAt, }?: Options): Generator; export declare function findUp(name: PossibleNameTypes, options?: Options): Promise; export declare function findUpSync(name: SyncPossibleNameTypes, options?: Options): string | undefined; export declare function findUpMultiple(name: PossibleNameTypes, options?: Options & { limit?: number; }): Promise; export declare function findUpMultipleSync(name: SyncPossibleNameTypes, options?: Options & { limit?: number; }): string[]; //# sourceMappingURL=findUp.d.cts.map