UNPKG

864 BTypeScriptView Raw
1/// <reference types="node" />
2import * as fs from 'fs';
3import glob from 'glob';
4import { ICreateTsIndexOption } from '../options/ICreateTsIndexOption';
5import { CTILogger } from '../tools/CTILogger';
6export declare class CommandModule {
7 static promisify: {
8 exists: typeof fs.exists.__promisify__;
9 glob: (arg1: string, arg2: glob.IOptions) => Promise<string[]>;
10 readDir: (arg1: string) => Promise<string[]>;
11 readFile: typeof fs.readFile.__promisify__;
12 stat: (arg1: string) => Promise<fs.Stats>;
13 unlink: (arg1: fs.PathLike) => Promise<void>;
14 writeFile: (arg1: string, arg2: any, arg3: string) => Promise<void>;
15 };
16 static targetFileFilter({ filenames, option, logger, }: {
17 filenames: Array<string>;
18 option: ICreateTsIndexOption;
19 logger: CTILogger;
20 }): Array<string>;
21}