1 |
|
2 | import type { Options } from './ecmarkup';
|
3 | import Clause from './Clause';
|
4 | export default interface Spec {
|
5 | spec: this;
|
6 | opts: Options;
|
7 | rootPath: string;
|
8 | rootDir: string;
|
9 | namespace: string;
|
10 | exportBiblio(): any;
|
11 | generatedFiles: Map<string | null, string | Buffer>;
|
12 | }
|
13 | export type Warning = {
|
14 | type: 'global';
|
15 | ruleId: string;
|
16 | message: string;
|
17 | } | {
|
18 | type: 'node';
|
19 | node: Text | Element;
|
20 | ruleId: string;
|
21 | message: string;
|
22 | } | {
|
23 | type: 'attr';
|
24 | node: Element;
|
25 | attr: string;
|
26 | ruleId: string;
|
27 | message: string;
|
28 | } | {
|
29 | type: 'attr-value';
|
30 | node: Element;
|
31 | attr: string;
|
32 | ruleId: string;
|
33 | message: string;
|
34 | } | {
|
35 | type: 'contents';
|
36 | node: Text | Element;
|
37 | ruleId: string;
|
38 | message: string;
|
39 | nodeRelativeLine: number;
|
40 | nodeRelativeColumn: number;
|
41 | } | {
|
42 | type: 'raw';
|
43 | ruleId: string;
|
44 | message: string;
|
45 | line: number;
|
46 | column: number;
|
47 | file?: string;
|
48 | source?: string;
|
49 | };
|
50 | export type WorklistItem = {
|
51 | aoid: string | null;
|
52 | effects: string[];
|
53 | };
|
54 | export declare function maybeAddClauseToEffectWorklist(effectName: string, clause: Clause, worklist: WorklistItem[]): void;
|