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.
2021-04-02 02:24:13 +03:00

46 lines
2.1 KiB
TypeScript

import { EventSubscription } from 'fbemitter';
import { Notification, LocalNotification, Channel, ActionType, LocalNotificationId } from './Notifications.types';
export declare function emitNotification(notification: any): void;
declare const _default: {
_setInitialNotification(notification: Notification): void;
createCategoryAsync(categoryId: string, actions: ActionType[], previewPlaceholder?: string | undefined): Promise<void>;
deleteCategoryAsync(categoryId: string): Promise<void>;
getExpoPushTokenAsync(): Promise<string>;
getDevicePushTokenAsync: (config: {
gcmSenderId?: string;
}) => Promise<{
type: string;
data: string;
}>;
createChannelAndroidAsync(id: string, channel: Channel): Promise<void>;
deleteChannelAndroidAsync(id: string): Promise<void>;
presentLocalNotificationAsync(notification: LocalNotification): Promise<LocalNotificationId>;
scheduleLocalNotificationAsync(notification: LocalNotification, options?: {
time?: Date | number;
repeat?: 'minute' | 'hour' | 'day' | 'week' | 'month' | 'year';
intervalMs?: number;
}): Promise<LocalNotificationId>;
dismissNotificationAsync(notificationId: LocalNotificationId): Promise<void>;
dismissAllNotificationsAsync(): Promise<void>;
cancelScheduledNotificationAsync(notificationId: LocalNotificationId): Promise<void>;
cancelAllScheduledNotificationsAsync(): Promise<void>;
addListener(listener: (notification: Notification) => unknown): EventSubscription;
getBadgeNumberAsync(): Promise<number>;
setBadgeNumberAsync(number: number): Promise<void>;
scheduleNotificationWithCalendarAsync(notification: LocalNotification, options?: {
year?: number;
month?: number;
hour?: number;
day?: number;
minute?: number;
second?: number;
weekDay?: number;
repeat?: boolean;
}): Promise<string>;
scheduleNotificationWithTimerAsync(notification: LocalNotification, options: {
interval: number;
repeat?: boolean;
}): Promise<string>;
};
export default _default;