import Service from '../module/database'; import Notification from '../models/notification'; export default class NotificationDB extends Service { constructor(userDataPath?: string); getAll(last: Notification, totalLen?: number, items?: number): Promise<{ notifications: Notification[]; hasNext: boolean; } | undefined>; getLatest(items?: number): Promise<{ notifications: Notification[]; hasNext: boolean; hasUnread: boolean; }>; markAllAsRead(): Promise<{ numberOfUpdated: number; upsert: boolean; }>; }