UNPKG

995 BTypeScriptView Raw
1import { CodeWithSourceMap } from './metadata';
2export interface StyleTransformer {
3 (code: string, url?: string): CodeWithSourceMap;
4}
5export interface TemplateTransformer {
6 (code: string, url?: string): CodeWithSourceMap;
7}
8export interface UrlResolver {
9 (url: string | null): string | null;
10}
11export declare const LogLevel: {
12 Debug: number;
13 Error: number;
14 Info: number;
15 None: number;
16};
17declare type ValueOf<T> = T[keyof T];
18export interface Config {
19 interpolation: [string, string];
20 logLevel: ValueOf<typeof LogLevel>;
21 predefinedDirectives: DirectiveDeclaration[];
22 resolveUrl: UrlResolver;
23 transformStyle: StyleTransformer;
24 transformTemplate: TemplateTransformer;
25}
26export interface DirectiveDeclaration {
27 exportAs?: string;
28 hostAttributes?: string[];
29 hostListeners?: string[];
30 hostProperties?: string[];
31 inputs?: string[];
32 outputs?: string[];
33 selector: string;
34}
35export declare const Config: Config;
36export {};