UNPKG

2.58 kBTypeScriptView Raw
1/// <reference types="node" />
2import * as ChildProcess from 'child_process';
3import { EventEmitter } from 'events';
4declare function cwd(): string;
5declare function isChildProcessOf(file: any, argv: any, offset?: any): any;
6declare function exec(file: string, argv?: string[], options?: any): string;
7declare function inspect(str: string, argv?: string[]): ChildProcess.SpawnSyncReturns<string>;
8declare function exists(path: any, type?: any): boolean;
9declare function scopeEnv(fn: any, env: any): any;
10declare function filterMatches(arr: any, pattern: any): any;
11declare function merge(destination: any, source: any): any;
12declare function extend(destination: any, ...sources: any[]): any;
13declare function contract(destination: any, keys: any): any;
14declare function pluck(obj: any, keys: any): any;
15declare function pad(str: any, length: any, char?: any): string;
16declare function padRight(str: any, length: any, char?: any): string;
17declare function toKebabCase(str: any): any;
18declare function toStartCase(str: any): any;
19declare function lowerFirst(str: any): any;
20declare function upperFirst(str: any): any;
21declare function splitWords(str: any): any;
22declare function delegateProperties(destination: any, source: any, modifiers: any): any;
23declare function isEqual(objA: any, objB: any): any;
24declare function escapeBrackets(str: any): any;
25declare function shCmd(cmd: any): any;
26declare function naturalSort(as: any, bs: any): any;
27declare function setTempCwd(callback: any, tempCwd: any): any;
28export declare const freeText: (text: any) => any;
29declare function log(...args: any[]): void;
30declare function debug(...args: any[]): void;
31export declare const Utils: EventEmitter & {
32 cwd: typeof cwd;
33 exec: typeof exec;
34 inspect: typeof inspect;
35 git: any;
36 npm: any;
37 childProcessOf: typeof isChildProcessOf;
38 exists: typeof exists;
39 scopeEnv: typeof scopeEnv;
40 filterMatches: typeof filterMatches;
41 merge: typeof merge;
42 extend: typeof extend;
43 contract: typeof contract;
44 pluck: typeof pluck;
45 pad: typeof pad;
46 padRight: typeof padRight;
47 kebabCase: typeof toKebabCase;
48 startCase: typeof toStartCase;
49 lowerFirst: typeof lowerFirst;
50 upperFirst: typeof upperFirst;
51 words: typeof splitWords;
52 delegateProperties: typeof delegateProperties;
53 isEqual: typeof isEqual;
54 escapeBrackets: typeof escapeBrackets;
55 shCmd: typeof shCmd;
56 naturalSort: typeof naturalSort;
57 tempCwd: typeof setTempCwd;
58 freeText: (text: any) => any;
59 log: typeof log;
60 debug: typeof debug;
61};
62export {};