import { UmbNotificationHandler } from './notification-handler.js'; import type { UmbNotificationColor, UmbNotificationOptions } from './types.js'; import { UmbContextToken } from '../../../libs/context-api/index.js'; import type { UmbControllerHost } from '../../../libs/controller-api/index.js'; import { UmbContextBase } from '../../../libs/class-api/index.js'; export declare class UmbNotificationContext extends UmbContextBase { #private; private _notifications; readonly notifications: import("rxjs").Observable; constructor(host: UmbControllerHost); /** * @private * @param {string} key - The notification key * @memberof UmbNotificationContext */ private _close; /** * @private * @param {UmbNotificationHandler} notificationHandler - The notification handler to close * @memberof UmbNotificationContext */ private _handleClosed; /** * Opens a notification that automatically goes away after 6 sek. * @param {UmbNotificationColor} color - The notification color * @param {UmbNotificationOptions} options - The notification options * @returns {UmbNotificationHandler} The notification handler * @memberof UmbNotificationContext */ peek(color: UmbNotificationColor, options: T): UmbNotificationHandler; /** * Opens a notification that stays on the screen until dismissed by the user or custom code * @param {UmbNotificationColor} color - The notification color * @param {UmbNotificationOptions} options - The notification options * @returns {UmbNotificationHandler} The notification handler * @memberof UmbNotificationContext */ stay(color: UmbNotificationColor, options: T): UmbNotificationHandler; } export declare const UMB_NOTIFICATION_CONTEXT: UmbContextToken;