1import { UnavailabilityError } from '@unimodules/core';
2
3import NotificationChannelGroupManager, {
4  NotificationChannelGroup,
5} from './NotificationChannelGroupManager';
6
7export default async function getNotificationChannelGroupsAsync(): Promise<
8  NotificationChannelGroup[]
9> {
10  if (!NotificationChannelGroupManager.getNotificationChannelGroupsAsync) {
11    throw new UnavailabilityError('Notifications', 'getNotificationChannelGroupsAsync');
12  }
13  return await NotificationChannelGroupManager.getNotificationChannelGroupsAsync();
14}
15