UNPKG

1.37 kBTypeScriptView Raw
1import { MarkdownPageEvent } from '../events/index.js';
2import { NavigationItem, RenderTemplate, UrlMapping } from '../types/index.js';
3import { ProjectReflection, Reflection } from 'typedoc';
4/**
5 * An event emitted at the beginning and end of the rendering process.
6 *
7 * @event
8 */
9export declare class MarkdownRendererEvent extends Event {
10 /**
11 * The project the renderer is currently processing.
12 */
13 readonly project: ProjectReflection;
14 /**
15 * The path of the directory the documentation should be written to.
16 */
17 readonly outputDirectory: string;
18 /**
19 * A list of all pages that should be generated.
20 */
21 urls?: UrlMapping<Reflection>[];
22 /**
23 * The navigation structure of the project that can be utilised by plugins.
24 */
25 navigation?: NavigationItem[];
26 /**
27 * Triggered before the renderer starts rendering a project.
28 * @event
29 */
30 static readonly BEGIN = "beginRender";
31 /**
32 * Triggered after the renderer has written all documents.
33 * @event
34 */
35 static readonly END = "endRender";
36 /**
37 * @ignore
38 */
39 constructor(name: string, outputDirectory: string, project: ProjectReflection);
40 /**
41 * @ignore
42 */
43 createPageEvent<Model>(mapping: UrlMapping<Model>): [RenderTemplate<MarkdownPageEvent<Model>>, MarkdownPageEvent<Model>];
44}