import type { ShowToastResult } from './toast-container.types'; export type ToastType = 'info' | 'success' | 'error' | 'warning'; export type ToastPosition = 'bottom-right' | 'top-right'; export interface ToastConfig { /** * Title of the toast */ title?: string; /** * Message of the toast */ message?: string | HTMLElement; /** * Action element that is displayed below the toast message/title */ action?: HTMLElement; /** * Type of the toast */ type?: ToastType; /** * Controls whether the toast closes automatically after a delay */ autoClose?: boolean; /** * Sets the delay for autoClose in milliseconds */ autoCloseDelay?: number; /** * Icon that is displayed with the toast */ icon?: string; /** * Color of the icon */ iconColor?: string; /** * Allows to hide the icon in the toast */ hideIcon?: boolean; } /** * Gets the toast container. */ export declare function getToastContainer(): HTMLIxToastContainerElement; /** * Sets the position of the toast container */ export declare function setToastPosition(position: ToastPosition): void; /** * Display a toast based on the provided configuration */ declare function toast(config: ToastConfig): Promise; declare namespace toast { var info: (config: ToastConfig) => Promise; var error: (config: ToastConfig) => Promise; var success: (config: ToastConfig) => Promise; var warning: (config: ToastConfig) => Promise; } export { toast };