UNPKG

@userfrosting/sprinkle-core

Version:
30 lines (29 loc) 1.14 kB
import { AlertInterface } from '../interfaces'; /** * Alerts Store * * Manages application alerts in a reactive store. Templates can use this * store to display alerts to users, including errors, warnings, * informational, or success messages. When an alert is added, templates * should automatically update the interface to reflect the change. */ export declare const useAlertsStore: import('pinia').StoreDefinition<"alerts", { alerts: AlertInterface[]; }, {}, { push(alert: AlertInterface): void; pop(): { title?: string | undefined; description?: string | undefined; style?: (import('../interfaces').Severity | keyof typeof import('../interfaces').Severity) | undefined; closeBtn?: boolean | undefined; hideIcon?: boolean | undefined; } | undefined; shift(): { title?: string | undefined; description?: string | undefined; style?: (import('../interfaces').Severity | keyof typeof import('../interfaces').Severity) | undefined; closeBtn?: boolean | undefined; hideIcon?: boolean | undefined; } | undefined; clear(): void; }>;