import { EventEmitter, OnChanges, SimpleChanges, TemplateRef, ElementRef } from '@angular/core'; import { IconRegistry } from '@danske/sapphire-angular'; import { QueuedToast } from './ToastQueue'; import * as i0 from "@angular/core"; export interface ShowToastOptions { /** * A timeout to automatically close the toast after, in milliseconds. * Note that if the toast is hovered or interacted with, the timeout is * paused. * * @default 3000 */ timeout?: number; /** * Optional title for the toast. */ title?: string; variant?: 'neutral' | 'success' | 'error'; } export type ToastContent = { title?: string; } & ({ type: 'text'; value: string; } | { type: 'template'; value: TemplateRef; }); /** * A toast displays brief, temporary notifications of events in the application. */ export declare class ToastComponent implements OnChanges { private elementRef; constructor(iconRegistry: IconRegistry, elementRef: ElementRef); toast?: QueuedToast; placement: 'top' | 'bottom'; /** * Emits when the close button is pressed */ closed: EventEmitter; toggleExpanded: EventEmitter; titleId: string; isPreview: boolean; index: number; get viewTransitionClass(): string; get variant(): 'neutral' | 'success' | 'error'; get isDarkTheme(): boolean; get shouldApplyContrastTheme(): boolean; onClick(event: Event): void; onKeyDown(event: KeyboardEvent): void; ngOnChanges(changes: SimpleChanges): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }