@nebular/theme
Version:
@nebular/theme
12 lines (11 loc) • 540 B
TypeScript
import { NbChatCustomMessageDirective } from './chat-custom-message.directive';
/**
* `NbCustomMessageService` is used to store instances of `NbChatCustomMessageDirective`s which
* were provided in the chat component.
*/
export declare class NbCustomMessageService {
protected readonly customMessages: Map<string, NbChatCustomMessageDirective>;
register(type: string, instance: NbChatCustomMessageDirective): void;
unregister(type: string): boolean;
getInstance(type: string): NbChatCustomMessageDirective | undefined;
}