1 | import chalk from 'chalk';
|
2 | export interface FormattableProblem {
|
3 | level: 0 | 1 | 2;
|
4 | name: string;
|
5 | message: string;
|
6 | }
|
7 | export interface FormattableResult {
|
8 | errors?: FormattableProblem[];
|
9 | warnings?: FormattableProblem[];
|
10 | }
|
11 | export interface WithInput {
|
12 | input?: string;
|
13 | }
|
14 | export interface FormattableReport {
|
15 | results?: (FormattableResult & WithInput)[];
|
16 | }
|
17 | export declare type ChalkColor = keyof typeof chalk;
|
18 | export interface FormatOptions {
|
19 | color?: boolean;
|
20 | signs?: readonly [string, string, string];
|
21 | colors?: readonly [ChalkColor, ChalkColor, ChalkColor];
|
22 | verbose?: boolean;
|
23 | helpUrl?: string;
|
24 | }
|
25 | export declare function format(report?: FormattableReport, options?: FormatOptions): string;
|
26 | export declare function formatResult(result?: FormattableResult, options?: FormatOptions): string[];
|
27 | export default format;
|
28 |
|
\ | No newline at end of file |