@cisstech/nge
Version:
NG Essentials is a collection of libraries for Angular developers.
29 lines (28 loc) • 966 B
TypeScript
import { InjectionToken, Provider } from '@angular/core';
import { MarkedOptions } from 'marked';
/**
* Global configuration of NgeMarkdownModule
*/
export declare type NgeMarkdownConfig = MarkedOptions & {
/**
* Class name indicating that the page is currently in dark mode
*/
darkThemeClassName?: string;
};
/**
* Theme configuration of NgeMarkdownModule
*/
export interface NgeMarkdownTheme {
/**
* Name of the theme (the @Input() theme property of NgeMarkdownComponent)
*/
name: string;
/**
* Style URL for the theme
*/
styleUrl: string;
}
export declare const NGE_MARKDOWN_CONFIG: InjectionToken<NgeMarkdownConfig>;
export declare const NGE_MARKDOWN_THEMES: InjectionToken<NgeMarkdownTheme>;
export declare const NgeMarkdownConfigProvider: (config: NgeMarkdownConfig | (() => NgeMarkdownConfig)) => Provider;
export declare const NgeMarkdownThemeProvider: (...themes: NgeMarkdownTheme[]) => Provider[];