import { IAPI, IAPIOptions } from './types' import { Notifications } from './notifications' import { setup as cryptoSetup } from '@consento/crypto' import { INotificationsTransport } from './notifications/types' export * from './types' export * from '@consento/crypto' export { isSuccess as isSuccessNotification, isError as isErrorNotification } from './notifications' export function setup ({ cryptoCore, notificationTransport }: IAPIOptions): IAPI { return { notifications: new Notifications({ transport: notificationTransport }), crypto: cryptoSetup(cryptoCore) } }