UNPKG

703 BTypeScriptView Raw
1declare class Log {
2 debugMode: boolean;
3 private bar?;
4 private lines;
5 debug(text: string, lines?: string[] | string): void;
6 info(text: string, lines?: string[] | string): void;
7 warn(text: string, lines?: string[] | string): void;
8 error(text: Error | string, lines?: string[] | string): void;
9 enableProgress(text: string): void;
10 showProgress(percentage: number): void;
11 disableProgress(): void;
12}
13export declare const log: Log;
14declare class ReportedError extends Error {
15 name: string;
16 wasReported: boolean;
17}
18export declare function wasReported(error?: string, lines?: string[] | string | string): ReportedError;
19export {};
20//# sourceMappingURL=log.d.ts.map
\No newline at end of file