/** * * [Live Demo](https://www.primevue.org/toast/) * * @module toastservice * */ import { Plugin } from 'vue'; import { ToastMessageOptions } from '../toast'; declare const plugin: Plugin; export default plugin; /** * Toast Service methods. * * @group Interfaces * */ export interface ToastServiceMethods { /** * Displays the message in a suitable Toast component. * @param {ToastMessageOptions} message - Message instance. */ add(message: ToastMessageOptions): void; /** * Clears the messages that belongs to the group. * @param {string} group - Name of the message group. */ removeGroup(group: string): void; /** * Clears all the messages. */ removeAllGroups(): void; } declare module 'vue/types/vue' { interface Vue { $toast: ToastServiceMethods; } } declare module '@vue/runtime-core' { interface ComponentCustomProperties { $toast: ToastServiceMethods; } }