1 |
|
2 |
|
3 |
|
4 | export declare type IOptions = {
|
5 | extensions?: string[];
|
6 | paths: string[];
|
7 | onlyDir?: boolean;
|
8 | onlyFile?: boolean;
|
9 | };
|
10 | export declare function searchGlobSync(file: string, options: IOptions): string[];
|
11 | export declare function searchGlobSync(file: string, paths?: string[]): string[];
|
12 | export declare function _searchGlobSync(file: any, options: IOptions, cwd?: string): string[];
|
13 | export declare function searchFirstSync(file: string, options: IOptions): string;
|
14 | export declare function searchFirstSync(file: string, paths?: string[]): string;
|
15 | export declare function existsSync(path: string, options?: {
|
16 | onlyDir?: boolean;
|
17 | onlyFile?: boolean;
|
18 | }): boolean;
|
19 | export declare function getOptions<T extends IOptions>(options: T & IOptions): T & IOptions;
|
20 | export declare function getOptions(paths: string[]): IOptions;
|
21 | export declare function getOptions(options: IOptions | string[]): options is IOptions;
|
22 | export default searchFirstSync;
|