mono/packages/fs/dist/find.d.ts
2025-01-23 07:22:43 +01:00

16 lines
729 B
TypeScript

import { INode, IInspectOptions } from './interfaces.js';
export interface IOptions {
matching?: string[];
files?: boolean;
directories?: boolean;
recursive?: boolean;
cwd?: string;
inspectOptions?: IInspectOptions;
}
export declare function validateInput(methodName: string, path: string, options?: IOptions): void;
export declare const findSync: (path: string, options: IOptions) => string[];
export declare const findSyncEx: (path: string, options: IOptions) => INode[];
export declare function sync(path: string, options: IOptions): string[];
export declare const syncEx: (path: string, options: IOptions) => INode[];
export declare function async(path: string, options: IOptions): Promise<string[]>;