import { ToastBreakpoints, ToastCloseEvent, ToastHeadlessTemplateContext, ToastItemCloseEvent, ToastMessageTemplateContext, ToastModeType, ToastPassThrough, ToastPositionType } from "primeng/types/toast"; import * as i0 from "@angular/core"; import { TemplateRef } from "@angular/core"; import { MotionOptions } from "@primeuix/motion"; import * as i2 from "primeng/api"; import { MessageService, ToastMessageOptions } from "primeng/api"; import { BaseComponent } from "primeng/basecomponent"; import * as i1 from "primeng/bind"; import { Bind } from "primeng/bind"; import { Subscription } from "rxjs"; import { BaseStyle } from "primeng/base"; export * from "primeng/types/toast"; export declare class ToastStyle extends BaseStyle { name: string; style: string; classes: { root: ({ instance }: { instance: any; }) => string[]; message: ({ instance }: { instance: any; }) => { 'p-toast-message': boolean; 'p-toast-message-normal': boolean; 'p-toast-message-info': boolean; 'p-toast-message-warn': boolean; 'p-toast-message-error': boolean; 'p-toast-message-success': boolean; 'p-toast-message-secondary': boolean; 'p-toast-message-contrast': boolean; }; messageContent: string; messageIcon: ({ instance }: { instance: any; }) => { 'p-toast-message-icon': boolean; pi: boolean; }; messageText: string; summary: string; detail: string; closeButton: string; closeIcon: ({ instance }: { instance: any; }) => { 'p-toast-close-icon': boolean; pi: boolean; }; }; inlineStyles: { root: ({ instance }: { instance: any; }) => { position: string; top: string | null; right: string | null; bottom: string | null; left: string | null; }; }; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * * Toast is used to display messages in an overlay. * * [Live Demo](https://www.primeng.org/toast/) * * @module toaststyle * */ export declare enum ToastClasses { /** * Class name of the root element */ root = "p-toast", /** * Class name of the message element */ message = "p-toast-message", /** * Class name of the message content element */ messageContent = "p-toast-message-content", /** * Class name of the message icon element */ messageIcon = "p-toast-message-icon", /** * Class name of the message text element */ messageText = "p-toast-message-text", /** * Class name of the summary element */ summary = "p-toast-summary", /** * Class name of the detail element */ detail = "p-toast-detail", /** * Class name of the close button element */ closeButton = "p-toast-close-button", /** * Class name of the close icon element */ closeIcon = "p-toast-close-icon" } /** * Toast is used to display messages in an overlay. * @group Components */ export declare class Toast extends BaseComponent { componentName: string; $pcToast: Toast | undefined; bindDirectiveInstance: Bind; /** * Key of the message in case message is targeted to a specific toast component. * @group Props */ key: import("@angular/core").InputSignal; /** * Whether to automatically manage layering. * @group Props */ autoZIndex: import("@angular/core").InputSignalWithTransform; /** * Base zIndex value to use in layering. * @group Props */ baseZIndex: import("@angular/core").InputSignalWithTransform; /** * The default time to display messages for in milliseconds. * @group Props */ life: import("@angular/core").InputSignalWithTransform; /** * Position of the toast in viewport. * @group Props */ position: import("@angular/core").InputSignal; /** * Layout mode of the toast. `stacked` collapses toasts into a stack that expands on hover/focus; `expanded` always renders every toast expanded. * @defaultValue 'stacked' * @group Props */ mode: import("@angular/core").InputSignal; /** * Gap between stacked toast items in pixels. * @group Props */ stackGap: import("@angular/core").InputSignalWithTransform; /** * Maximum number of visible toasts in the stack. * @group Props */ stackVisibleLimit: import("@angular/core").InputSignalWithTransform; /** * It does not add the new message if there is already a toast displayed with the same content * @group Props */ preventOpenDuplicates: import("@angular/core").InputSignalWithTransform; /** * Displays only once a message with the same content. * @group Props */ preventDuplicates: import("@angular/core").InputSignalWithTransform; /** * The motion options. * @group Props */ motionOptions: import("@angular/core").InputSignal; computedMotionOptions: import("@angular/core").Signal; /** * Object literal to define styles per screen size. * @group Props */ breakpoints: import("@angular/core").InputSignal; /** * Callback to invoke when a message is closed. * @param {ToastCloseEvent} event - custom close event. * @group Emits */ onClose: import("@angular/core").OutputEmitterRef; /** * Custom message template. * @param {ToastMessageTemplateContext} context - message context. * @see {@link ToastMessageTemplateContext} * @group Templates */ messageTemplate: import("@angular/core").Signal | undefined>; /** * Custom headless template. * @param {ToastHeadlessTemplateContext} context - headless context. * @see {@link ToastHeadlessTemplateContext} * @group Templates */ headlessTemplate: import("@angular/core").Signal | undefined>; messageSubscription: Subscription | undefined; clearSubscription: Subscription | undefined; messages: ToastMessageOptions[] | null | undefined; messageArchive: ToastMessageOptions[] | undefined; private closingMessages; messageService: MessageService; _componentStyle: ToastStyle; styleElement: HTMLStyleElement | null; id: string; clearAllTrigger: import("@angular/core").WritableSignal; hovered: import("@angular/core").WritableSignal; isInteracting: import("@angular/core").WritableSignal; heights: import("@angular/core").WritableSignal<{ index: number; height: number; }[]>; sortedHeights: import("@angular/core").Signal<{ index: number; height: number; }[]>; frontToastHeight: import("@angular/core").Signal; stackOffsets: import("@angular/core").Signal; visualStackIndices: import("@angular/core").Signal>; visibleIndices: import("@angular/core").Signal>; raiseFactor: import("@angular/core").Signal<1 | -1>; isExpanded: import("@angular/core").Signal; hostDataExpanded: import("@angular/core").Signal<"" | null>; stackTotal: import("@angular/core").Signal; dataP: import("@angular/core").Signal; onAfterViewChecked(): void; getStackIndex(domIndex: number): number; getStackOffset(domIndex: number): number; isStackVisible(domIndex: number): boolean; onInit(): void; clearAll(): void; onAfterViewInit(): void; add(messages: ToastMessageOptions[]): void; canAdd(message: ToastMessageOptions): boolean; containsMessage(collection: ToastMessageOptions[], message: ToastMessageOptions): boolean; onMessageClose(event: ToastItemCloseEvent): void; onAnimationStart(): void; onAnimationEnd(): void; onContainerMouseEnter(): void; onContainerMouseLeave(event: MouseEvent): void; onContainerPointerDown(event: PointerEvent): void; onContainerPointerUp(): void; onItemHeightChange(event: { index: number; height: number; removed?: boolean; }): void; createStyle(): void; private breakpointsCSS; destroyStyle(): void; onDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class ToastModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; }