1 |
|
2 | import type * as childProcess from 'child_process';
|
3 | export interface PkgDataInterface {
|
4 | version: string;
|
5 | [index: string]: unknown;
|
6 | }
|
7 | export declare function isObject(value: unknown): value is Record<string, unknown>;
|
8 | export declare function relativePath(pathStr: string): string;
|
9 | export declare function isPkgData(value: unknown): value is PkgDataInterface;
|
10 | export declare function readJSONFile(filepath: string): Promise<unknown>;
|
11 |
|
12 |
|
13 |
|
14 | export declare function execFileAsync(...args: [string, (readonly string[])?, childProcess.SpawnOptions?]): Promise<{
|
15 | readonly stdout: string;
|
16 | readonly stderr: string;
|
17 | }>;
|
18 | export declare function printVerbose(message: string): void;
|
19 | export declare function endPrintVerbose(): void;
|
20 |
|
21 |
|
22 |
|
23 | export declare function getNpmExecPath(): {
|
24 | execPath: string;
|
25 | spawnArgs: string[];
|
26 | isYarn: boolean;
|
27 | };
|
28 | export declare function getConfig(keyMap: {
|
29 | npm: string;
|
30 | yarn?: string;
|
31 | }): Promise<string>;
|
32 |
|
\ | No newline at end of file |