UNPKG

738 BTypeScriptView Raw
1import { NbChatCustomMessageDirective } from './chat-custom-message.directive';
2import * as i0 from "@angular/core";
3/**
4 * `NbCustomMessageService` is used to store instances of `NbChatCustomMessageDirective`s which
5 * were provided in the chat component.
6 */
7export declare class NbChatCustomMessageService {
8 protected readonly customMessages: Map<string, NbChatCustomMessageDirective>;
9 register(type: string, instance: NbChatCustomMessageDirective): void;
10 unregister(type: string): boolean;
11 getInstance(type: string): NbChatCustomMessageDirective | undefined;
12 static ɵfac: i0.ɵɵFactoryDeclaration<NbChatCustomMessageService, never>;
13 static ɵprov: i0.ɵɵInjectableDeclaration<NbChatCustomMessageService>;
14}