import { ScrollDispatcher } from '@angular/cdk/scrolling'; import * as i0 from '@angular/core'; import { OnInit, OnDestroy, NgZone, ChangeDetectorRef, ElementRef, EventEmitter } from '@angular/core'; /**@internal */ declare class InternalAlertOject { readonly type: 'success' | 'info' | 'warn' | 'error'; readonly message: string; id: string; constructor(type: 'success' | 'info' | 'warn' | 'error', message: string); } /** * Use this component in a designated area of a page for displaying notification messages * */ declare class AlertContainerComponent implements OnInit, OnDestroy { private zone; private cdRef; private _elementRef; private scroll; /** The maximum number of messages displayed in the container area. */ max: number; /** * This property determines the behavior for displaying the notifications when the container is outside the viewport. * * `scroll`: The component will try to scroll to reveal the new notifications. * `float`: The component will float the alert panel to the center of the screen for a couple of seconds and move it back to the original position. */ outsideViewportBehavior: 'scroll' | 'float'; /** * The number of milliseconds for which the alert container will be floated when new notification arrives. * * This will only take effect when `outsideViewportBehavior` is set to `float` and the container is outside the viewport. */ floatDuration: number; /**@internal */ _alerts: InternalAlertOject[]; /**@internal */ _floated: boolean; /**@internal */ _floatPanelHidden: boolean; private _destroyed$; private _endFloatingSub?; /** Emits the component instance after initialisation. */ private init; constructor(zone: NgZone, cdRef: ChangeDetectorRef, _elementRef: ElementRef, scroll: ScrollDispatcher); ngOnInit(): void; ngOnDestroy(): void; /**@internal */ get _width(): number; /** Add a message to the notification area */ notify(type: 'success' | 'info' | 'warn' | 'error', message: string): Promise; /**@ignore */ _checkViewport(): Promise; /**@ignore */ _dismiss(a: InternalAlertOject): void; /** Remove all messages currently displayed. */ clear(): void; private _endFloating; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * An alert style message usually appears in a global notification area. * * The base color of the message is determined by the `type` of the message and a list of predefined * CSS custom properties. * * ```scss * --bui-color-success: #519602; * --bui-color-info: #0dcaf0; * --bui-color-warning: #ffc107; * --bui-color-error: #dc3545; * ``` * * */ declare class AlertMessageComponent implements OnInit { /** @ignore */ static ngAcceptInputType_dismissible: boolean | string | null | undefined; /** @ignore */ static ngAcceptInputType_blink: boolean | string | null | undefined; /** The type of the message, used to derive the icon and base color. */ type: 'success' | 'info' | 'warn' | 'error'; /** The message to be displayed, HTML supported. */ message: string; /** Specifies the ARIA live region politeness. */ politeness: 'off' | 'polite' | 'assertive'; /** Whether to display the button to fire the `dismissed` event. */ get dismissible(): any; set dismissible(value: any); /** To be emitted when the user choose to dismiss the message. The event object is the ID of the element. */ dismissed: EventEmitter; /** To be emitted when the component finishes initialisation. The event object is the ID of the element. */ initialised: EventEmitter; /** @ignore */ _id: string; private _dismissible; constructor(); ngOnInit(): void; /** @ignore */ get iconName(): string; /** @ignore */ _dismiss(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class AlertModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { AlertContainerComponent, AlertMessageComponent, AlertModule };