@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>
29 lines (26 loc) • 849 B
TypeScript
import * as _ng_doc_app_tokens from '@ng-doc/app/tokens';
import { ThemeInput } from 'shiki';
import * as i0 from '@angular/core';
interface NgDocHighlighterConfig {
/**
* Themes sources.
*/
themes?: ThemeInput[];
/**
* Theme that will be used for rendering the code blocks.
*/
theme?: {
light: string;
dark: string;
};
}
declare class NgDocHighlighterService {
private static highlighter?;
protected readonly theme: _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>;
}
export { NgDocHighlighterService };
export type { NgDocHighlighterConfig };