import { EventEmitter } from '../../stencil-public-runtime'; import { MdsPushNotificationItemEventDetail } from './meta/event-detail'; import { NotificationItemPreviewType, NotificationItemDateFormatType } from './meta/types'; import { ThemeFullVariantAvatarType } from "../../type/variant"; import { ToneMinimalVariantType } from "../../type/tone"; /** * @part actions - The actions wrapper * @part avatar - The `mds-avatar` that shows the `icon`, the `initials` or, with `preview` set to `avatar`, the picture of `src` * @part content - The content wrapper of the message * @part picture - The picture image added by `src` attribute * @slot action - Add `HTML elements` or `components`, it is **recommended** to use `mds-button` element. * @slot badge - Add `HTML elements` or `components`, it is **recommended** to use `mds-badge` element. * @parent mds-push-notification */ export declare class MdsPushNotificationItem { host: HTMLMdsPushNotificationItemElement; hasActions: boolean; hasBadge: boolean; private t; /** * Specifies the notification date based on [standard ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html). * @example '2025-06-15T09:30:00+02:00' */ datetime?: string; /** * Specifies how the notification date is written: `timeago` shows the time passed, any other * value is the Day.js format of a static date * @example 'DD/MM/YYYY HH:mm' */ readonly dateFormat: NotificationItemDateFormatType; /** * Shows a dismiss button: activating it emits `mdsPushNotificationItemClose`, and a parent * `mds-push-notification` takes the item out of the stack */ dismissible?: boolean; /** * Shows the dismiss button, as `dismissible` does. * @deprecated Use `dismissible`: the button dismisses the notification, it deletes nothing. * Goes in the next major. */ deletable?: boolean; /** * Specifies the icon to be displayed */ readonly icon?: string; /** * The user's inizials displayed if there's no image available, initials will override tone and variant senttings to keep user recognizable from others */ readonly initials?: string; /** * Specifies the message of the component */ readonly message: string; /** * Specifies if the `src` attribute is used to show a the image as avatar or full image */ readonly preview?: NotificationItemPreviewType; /** * Specifies the path to the image */ readonly src?: string; /** * Specifies the subject of the component */ readonly subject?: string; /** * Specifies the color tone of the component */ readonly tone?: ToneMinimalVariantType; /** * Specifies the color variant of the component */ readonly variant?: ThemeFullVariantAvatarType; /** * Emits when the component is closed */ closedEvent: EventEmitter; private onClickClose; componentDidLoad(): void; private isDismissible; private onSlotChange; componentWillLoad(): void; handleDismissibleChange(newValue?: boolean): void; handleDeletableChange(newValue?: boolean): void; render(): any; }