1 | import type { BiblioEntry, ExportedBiblio } from './Biblio';
|
2 | import Spec from './Spec';
|
3 | import { CancellationToken } from 'prex';
|
4 | export type { Spec, BiblioEntry };
|
5 | export declare class Boilerplate {
|
6 | address?: string;
|
7 | copyright?: string;
|
8 | license?: string;
|
9 | }
|
10 | export type EcmarkupError = {
|
11 | ruleId: string;
|
12 | message: string;
|
13 | file?: string;
|
14 | source?: string;
|
15 | line?: number;
|
16 | column?: number;
|
17 | nodeType?: string;
|
18 | };
|
19 | export interface Options {
|
20 | status?: 'proposal' | 'draft' | 'standard';
|
21 | version?: string;
|
22 | title?: string;
|
23 | shortname?: string;
|
24 | description?: string;
|
25 | stage?: string | null;
|
26 | copyright?: boolean;
|
27 | date?: Date;
|
28 | location?: string;
|
29 | multipage?: boolean;
|
30 | extraBiblios?: ExportedBiblio[];
|
31 | contributors?: string;
|
32 | toc?: boolean;
|
33 | oldToc?: boolean;
|
34 | markEffects?: boolean;
|
35 | lintSpec?: boolean;
|
36 | cssOut?: never;
|
37 | jsOut?: never;
|
38 | assets?: 'none' | 'inline' | 'external';
|
39 | assetsDir?: string;
|
40 | outfile?: string;
|
41 | boilerplate?: Boilerplate;
|
42 | log?: (msg: string) => void;
|
43 | warn?: (err: EcmarkupError) => void;
|
44 | }
|
45 | export declare function build(path: string, fetch: (path: string, token: CancellationToken) => PromiseLike<string>, opts?: Options, token?: CancellationToken): Promise<Spec>;
|