import { NotificationsAdapter } from "./adapter.mjs"; import { NotificationSeverity, NotificationsAdapterContext } from "../index.mjs"; //#region src/composables/useNotifications/adapters/novu.d.ts /** Minimal Novu notification shape. Uses type-only imports to avoid bundling the SDK. */ interface NovuNotification { [key: string]: unknown; id?: string; subject?: string; body?: string; data?: Record; severity?: string; isRead?: boolean; isSeen?: boolean; isArchived?: boolean; createdAt?: string; } /** Minimal Novu client interface. */ interface NovuClient { notifications: { list: (opts?: Record) => Promise<{ data?: { notifications?: NovuNotification[]; } | null; }>; read: (opts: { notificationId: string; }) => Promise; unread: (opts: { notificationId: string; }) => Promise; archive: (opts: { notificationId: string; }) => Promise; unarchive: (opts: { notificationId: string; }) => Promise; seenAll: (opts: { notificationIds: string[]; }) => Promise; }; on: (event: string, handler: (data: unknown) => void) => () => void; } interface NovuAdapterOptions { /** Map a Novu severity string to a NotificationSeverity. Defaults to critical/high→error, medium→warning, low→info. */ severity?: (novuSeverity: string) => NotificationSeverity | undefined; } declare class NovuNotificationsAdapter extends NotificationsAdapter { private novu; private resolveSeverity; private ids; private context; private disposed; private unsubscribers; private onRead; private onUnread; private onSeen; private onArchived; private onUnarchived; constructor(novu: NovuClient, options?: NovuAdapterOptions); setup(context: NotificationsAdapterContext): void; dispose(): void; } //#endregion export { NovuAdapterOptions, NovuClient, NovuNotification, NovuNotificationsAdapter };