1import { UnavailabilityError } from 'expo-modules-core';
2
3import NotificationChannelManager from './NotificationChannelManager';
4
5export default async function deleteNotificationChannelAsync(channelId: string): Promise<void> {
6  if (!NotificationChannelManager.deleteNotificationChannelAsync) {
7    throw new UnavailabilityError('Notifications', 'deleteNotificationChannelAsync');
8  }
9
10  return await NotificationChannelManager.deleteNotificationChannelAsync(channelId);
11}
12