import { ContextService } from './context.service'; import { TypeResultCache } from './type-result-cache'; import { ConfigService } from './config.service'; export interface IColorServiceConfigurator { addType: (type: string, color: number) => void; addMatch: (matcher: RegExp, color: number) => void; addSubtype: (type: string, color: number) => void; setDefault: (def: number) => void; } export declare class ColorService extends TypeResultCache implements IColorServiceConfigurator { private readonly configService; constructor(context: ContextService, configService: ConfigService); private typeFromUrl(url); toColorNumberFromHref: (href: string) => Promise; toColorNumberFromType: (type: string) => Promise; addType(type: string, result: number): void; addMatch(matcher: RegExp, result: number): void; addSubtype(type: string, result: number): void; setDefault(def: number): void; getDefault(): number; configureFromConfig(): void; }