import ApiModule from './api-module'; import { NotificationId } from '../types/common'; import { NotificationDetail, NotificationInfo } from '../types/notification'; export default class Notification extends ApiModule { private sendNotification; readonly send: { friendRequest: (targetUser: string) => Promise; invite: (targetUser: string, worldId: string, message?: string) => Promise; /** * @deprecated */ halp: (targetUser: string, worldId: string, message?: string) => Promise; /** * @deprecated */ voteToKick: (targetUser: string) => Promise; /** * @deprecated */ all: (targetUser: string) => Promise; /** * @deprecated */ hidden: (targetUser: string) => Promise; /** * @deprecated It seems that it can not be used yet. */ message(targetUser: string, message: string): Promise; }; markAsRead(notificationId: NotificationId): Promise; delete(notificationId: NotificationId): Promise; getAll(): Promise; }