1 | import { InjectionToken, ModuleWithProviders, Provider, SecurityContext } from '@angular/core';
|
2 | import { MarkedExtension } from 'marked';
|
3 | import { CLIPBOARD_OPTIONS } from './clipboard-options';
|
4 | import { MARKED_OPTIONS } from './marked-options';
|
5 | import { MERMAID_OPTIONS } from './mermaid-options';
|
6 | import * as i0 from "@angular/core";
|
7 | import * as i1 from "@angular/common";
|
8 | import * as i2 from "./clipboard-button.component";
|
9 | import * as i3 from "./language.pipe";
|
10 | import * as i4 from "./markdown.component";
|
11 | import * as i5 from "./markdown.pipe";
|
12 | type InjectionTokenType<T extends InjectionToken<any>> = T extends InjectionToken<infer R> ? R : unknown;
|
13 | interface TypedValueProvider<T extends InjectionToken<any>> {
|
14 | provide: T;
|
15 | useValue: InjectionTokenType<T>;
|
16 | }
|
17 | interface TypedFactoryProvider<T extends InjectionToken<any>> {
|
18 | provide: T;
|
19 | useFactory: (...args: any[]) => InjectionTokenType<T>;
|
20 | deps?: any[];
|
21 | }
|
22 | type TypedProvider<T extends InjectionToken<any>> = TypedValueProvider<T> | TypedFactoryProvider<T>;
|
23 | export interface MarkdownModuleConfig {
|
24 | loader?: Provider;
|
25 | clipboardOptions?: TypedProvider<typeof CLIPBOARD_OPTIONS>;
|
26 | markedOptions?: TypedProvider<typeof MARKED_OPTIONS>;
|
27 | markedExtensions?: MarkedExtension[];
|
28 | mermaidOptions?: TypedProvider<typeof MERMAID_OPTIONS>;
|
29 | sanitize?: SecurityContext;
|
30 | }
|
31 | export declare class MarkdownModule {
|
32 | static forRoot(markdownModuleConfig?: MarkdownModuleConfig): ModuleWithProviders<MarkdownModule>;
|
33 | static forChild(): ModuleWithProviders<MarkdownModule>;
|
34 | static ɵfac: i0.ɵɵFactoryDeclaration<MarkdownModule, never>;
|
35 | static ɵmod: i0.ɵɵNgModuleDeclaration<MarkdownModule, never, [typeof i1.CommonModule, typeof i2.ClipboardButtonComponent, typeof i3.LanguagePipe, typeof i4.MarkdownComponent, typeof i5.MarkdownPipe], [typeof i2.ClipboardButtonComponent, typeof i3.LanguagePipe, typeof i4.MarkdownComponent, typeof i5.MarkdownPipe]>;
|
36 | static ɵinj: i0.ɵɵInjectorDeclaration<MarkdownModule>;
|
37 | }
|
38 | export {};
|