2ac4a5e59af5060529a084cfb6eec70e62ab9a537b5093e50ecf74f3966575a6ede921c6a57b427bdad46dc7fca37c1a879fd9763055986850851fd215eb55 950 B

123456789101112131415
  1. import type { VNode } from 'vue';
  2. import type { NotificationOptions, Notify } from './notification';
  3. /**
  4. * This function gets called when user click `x` button or press `esc` or the time reached its limitation.
  5. * Emitted by transition@before-leave event so that we can fetch the current notification.offsetHeight, if this was called
  6. * by @after-leave the DOM element will be removed from the page thus we can no longer fetch the offsetHeight.
  7. * @param {String} id notification id to be closed
  8. * @param {Position} position the positioning strategy
  9. * @param {Function} userOnClose the callback called when close passed by user
  10. */
  11. export declare function close(id: string, position: NotificationOptions['position'], userOnClose?: (vm: VNode) => void): void;
  12. export declare function closeAll(): void;
  13. export declare function updateOffsets(position?: NotificationOptions['position']): void;
  14. declare const _default: Notify;
  15. export default _default;