import { ApplicationRef, ComponentFactoryResolver, Injector } from '@angular/core'; import { Subject } from "rxjs"; import * as i0 from "@angular/core"; export declare type MessageActions = { [key: string]: () => void; }; export declare enum MessageButtonsPresets { close = "close", ok = "ok" } export declare enum MessageTypes { info = "info", info_center = "info-center", info_close = "info-close", error = "error", error_close = "error-close", confirm = "confirm" } export interface Message { title?: string; text: string; type?: MessageTypes; actions?: MessageActions; actionTypes?: { [key: string]: string; }; autoHideDelay?: number; } export declare class MessageService { private componentFactoryResolver; private appRef; private injector; isComponentInjected: boolean; static message$: Subject; messageButtonPresets: { [key: string]: MessageActions; }; constructor(componentFactoryResolver: ComponentFactoryResolver, appRef: ApplicationRef, injector: Injector); protected preprocessText(text: string): string; confirm(text: string, title: string | null | undefined, callbackYes: () => void, callbackNo?: (() => void) | null, buttonTextYes?: string, buttonTextNo?: string): void; show(message: Message, buttonsPreset?: MessageButtonsPresets | null): void; error(text: string, title?: string, actions?: MessageActions, autoHideDelay?: number): void; info(text: string, title?: string, actions?: MessageActions, autoHideDelay?: number): void; hide(): void; private injectComponent; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }