1 | import * as postcss from 'postcss';
|
2 | export declare type DiagnosticType = 'error' | 'warning';
|
3 | export interface DiagnosticOptions {
|
4 | word?: string;
|
5 | }
|
6 | export interface Diagnostic {
|
7 | type: DiagnosticType;
|
8 | node: postcss.Node;
|
9 | message: string;
|
10 | options: DiagnosticOptions;
|
11 | }
|
12 | export declare class Diagnostics {
|
13 | reports: Diagnostic[];
|
14 | constructor(reports?: Diagnostic[]);
|
15 | add(type: DiagnosticType, node: postcss.Node, message: string, options?: DiagnosticOptions): void;
|
16 | error(node: postcss.Node, message: string, options?: DiagnosticOptions): void;
|
17 | warn(node: postcss.Node, message: string, options?: DiagnosticOptions): void;
|
18 | }
|
19 | //# sourceMappingURL=diagnostics.d.ts.map |
\ | No newline at end of file |