UNPKG

599 BTypeScriptView Raw
1import { SpawnOptions } from '@expo/spawn-async';
2export declare type Logger = (...args: any[]) => void;
3export interface PackageManager {
4 installAsync(): Promise<void>;
5 addAsync(...names: string[]): Promise<void>;
6 addDevAsync(...names: string[]): Promise<void>;
7 versionAsync(): Promise<string>;
8 getConfigAsync(key: string): Promise<string>;
9 removeLockfileAsync(): Promise<void>;
10 cleanAsync(): Promise<void>;
11}
12export declare function getPossibleProjectRoot(): string;
13export declare function spawnSudoAsync(command: string[], spawnOptions: SpawnOptions): Promise<void>;