UNPKG

@ng-doc/app

Version:

<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>

25 lines (24 loc) 816 B
import { HighlighterGeneric } from '@shikijs/core/types'; import { ThemeInput } from 'shiki'; import * as i0 from "@angular/core"; export interface NgDocHighlighterConfig { /** * Themes sources. */ themes?: ThemeInput[]; /** * Theme that will be used for rendering the code blocks. */ theme?: { light: string; dark: string; }; } export declare class NgDocHighlighterService { highlighter?: HighlighterGeneric<string, string>; protected readonly theme: import("@ng-doc/app/tokens").NgDocShikiTheme; initialize(config?: NgDocHighlighterConfig): Promise<void>; highlight(code: string): string; static ɵfac: i0.ɵɵFactoryDeclaration<NgDocHighlighterService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<NgDocHighlighterService>; }