This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.
reValuate/node_modules/expo/build/Notifications/ExponentNotifications.web.d.ts
2021-04-02 02:24:13 +03:00

23 lines
992 B
TypeScript

import { LocalNotification, LocalNotificationId } from './Notifications.types';
import './ExponentNotifications.fx.web';
declare const _default: {
presentLocalNotification(notification: LocalNotification): Promise<LocalNotificationId>;
scheduleLocalNotification(notification: any, options?: {
time?: Date | number;
repeat?: 'minute' | 'hour' | 'day' | 'week' | 'month' | 'year';
intervalMs?: number;
}): Promise<string>;
dismissNotification(notificationId?: string | undefined): Promise<void>;
dismissAllNotifications(): Promise<void>;
cancelScheduledNotificationAsync(notificationId: string): Promise<void>;
cancelAllScheduledNotificationsAsync(): Promise<void>;
getExponentPushTokenAsync(): Promise<string>;
getDevicePushTokenAsync(): Promise<{
type: string;
data: object;
}>;
getBadgeNumberAsync(): Promise<number>;
setBadgeNumberAsync(badgeNumber: number): Promise<void>;
};
export default _default;