import { EventEmitter } from '../../stencil-public-runtime'; import { AlertType } from './alert-types'; /** * @slot heading - Slot for placing custom content within the alert's heading. * @slot actions - Slot for placing custom actions (buttons, links, etc.) within the alert. * @slot default - Slot for placing the main content/message of the alert. */ export declare class PostAlert { host: HTMLPostAlertElement; alertId: `${string}-${string}-${string}-${string}-${string}`; classes: string; hasActions: boolean; hasHeading: boolean; onDismissButtonClick: () => Promise; /** * If `true`, a close button (×) is displayed and the alert can be dismissed by the user. */ readonly dismissible: boolean; validateDismissible(isDismissible?: boolean): void; /** * The label to use for the close button of a dismissible alert. */ readonly dismissLabel: string; validateDismissLabel(dismissLabel?: string): void; /** * If `true`, the alert is positioned at the bottom of the window, from edge to edge. */ readonly fixed: boolean; validateFixed(isFixed?: boolean): void; /** * The icon to display in the alert. By default, the icon depends on the alert type. * * If `none`, no icon is displayed. */ readonly icon: string; validateIcon(icon?: string): void; /** * The type of the alert. */ readonly type: AlertType; validateType(type?: "primary" | "success" | "warning" | "danger" | "info" | "gray"): void; /** * An event emitted when the alert element is dismissed, after the transition. * It has no payload and only relevant for dismissible alerts. */ postDismissed: EventEmitter; componentDidLoad(): void; componentWillRender(): void; /** * Triggers alert dismissal programmatically (same as clicking on the close button (×)). */ dismiss(): Promise; render(): any; }