export declare class ProjectState { /** * This will be resolved or rejected once all the tasks associated with this * project finish. */ promise: Promise; /** * Run this to mark the project as successfully finished. */ resolve: () => void; /** * Run this to mark the project as failed. */ reject: (reason: Error) => void; /** * Provide information about current state of the project. */ stage: string; constructor(); } /** * Output formatted error message to stderr. * @param title - Some explanatory text as to what's going on. * @param details - The error or some other message as to what went wrong. */ export declare function logError(title: string, details?: unknown): void; /** * @param title * @param details */ export declare function logInfo(title: string, details?: string): void; /** * @param cwd * @param failCommand * @param error */ export declare function execFail(cwd: string, failCommand: string | null | undefined, error: Error | string): void; export type Spawn = (options: SpawnOrTrhowArgs) => Promise; export interface SpawnOrTrhowArgs { cmd: readonly string[]; cwd: string; failCommand?: string; } /** * @param logDir * @param getState */ export declare function createSpawner(logDir: string, getState: () => string[]): Spawn; //# sourceMappingURL=util.d.ts.map