import {ANDROID, IOS, RESULTS} from './constants'; type Values = T[keyof T]; export type AndroidPermission = Values; export type IOSPermission = Values; export type Permission = AndroidPermission | IOSPermission; export type PermissionStatus = Values; export type NotificationOption = | 'alert' | 'badge' | 'sound' | 'carPlay' | 'criticalAlert' | 'provisional'; export interface NotificationSettings { alert?: boolean; badge?: boolean; sound?: boolean; carPlay?: boolean; criticalAlert?: boolean; lockScreen?: boolean; notificationCenter?: boolean; } export interface NotificationsResponse { status: PermissionStatus; settings: NotificationSettings; }