declare namespace FLib { namespace Notifications { type Type = 'info' | 'success' | 'warning' | 'danger'; type Options = { /** @defaultValue document.body */ $wrapper: HTMLElement; onClick: ( notification ) => void; /** * In second * @defaultValue 5 */ autoCloseDelay: number; templates: { /** @defaultValue
*/ notifications: string; /** @defaultValue
*/ notification : string; }; selectors: { /** @defaultValue .notifications */ notifications: string; /** @defaultValue .notification */ notification: string; /** @defaultValue .list */ list: string; }; cssClass: { /** @defaultValue open */ open: string; /** @defaultValue success */ success: string; /** @defaultValue danger */ danger: string; /** @defaultValue warning */ warning: string; /** @defaultValue info */ info: string; }; animations: { show: ( $notification, options ) => Promise hide: ( $notification, options ) => Promise }; } type NotificationOptions = { closeDelay?: number | false; onClick?: ( e: Event ) => void; } } }