UNPKG

1.49 kBTypeScriptView Raw
1import { Theme } from '../theme';
2import { Renderer } from '../renderer';
3import { Reflection, ReflectionKind, ProjectReflection, ContainerReflection, DeclarationReflection } from '../../models/reflections/index';
4import { ReflectionGroup } from '../../models/ReflectionGroup';
5import { UrlMapping } from '../models/UrlMapping';
6import { NavigationItem } from '../models/NavigationItem';
7export interface TemplateMapping {
8 kind: ReflectionKind[];
9 isLeaf: boolean;
10 directory: string;
11 template: string;
12}
13export declare class DefaultTheme extends Theme {
14 static MAPPINGS: TemplateMapping[];
15 static URL_PREFIX: RegExp;
16 constructor(renderer: Renderer, basePath: string);
17 isOutputDirectory(path: string): boolean;
18 getUrls(project: ProjectReflection): UrlMapping[];
19 getEntryPoint(project: ProjectReflection): ContainerReflection;
20 getNavigation(project: ProjectReflection): NavigationItem;
21 private onRendererBegin;
22 static getUrl(reflection: Reflection, relative?: Reflection, separator?: string): string;
23 static getMapping(reflection: DeclarationReflection): TemplateMapping | undefined;
24 static buildUrls(reflection: DeclarationReflection, urls: UrlMapping[]): UrlMapping[];
25 static applyAnchorUrl(reflection: Reflection, container: Reflection): void;
26 static applyReflectionClasses(reflection: DeclarationReflection): void;
27 static applyGroupClasses(group: ReflectionGroup): void;
28 static toStyleClass(str: string): string;
29}