import { FetchService } from '../../unfold-utils/service/fetch.service'; import { NotificationApiConfig } from '../config/notification-api.config'; import { ObosSsoGetTokenService } from '../../obos-sso/service/obos-sso-get-token.service'; import { SendOptionsInterface } from '../types/interfaces'; export declare type DeviceType = 'ios' | 'android'; export interface PushNotificationReceiverInterface { token: string; attributes?: { [name: string]: any; }; } export interface PushNotificationMessageInterface { notification: { title: string; body: string; }; data: { [name: string]: any; }; } export interface PushNotificationSendResultInterface { success: boolean; token: string; error?: { message: string; tokenNotActive?: boolean; }; info?: any; } export interface PushNotificationInputInterface { type: DeviceType; message: PushNotificationMessageInterface; receiver: PushNotificationReceiverInterface; } export interface PushNotificationBatchInputInterface { type: DeviceType; message: PushNotificationMessageInterface; receivers: PushNotificationReceiverInterface[]; } export interface PushNotificationBatchSendResultInterface { successCount: number; failureCount: number; results: PushNotificationSendResultInterface[]; } export declare class PushNotificationService { private fetchService; private config; private obosToken; constructor(fetchService: FetchService, config: NotificationApiConfig, obosToken: ObosSsoGetTokenService); sendBatch(input: PushNotificationBatchInputInterface, options?: SendOptionsInterface): Promise; send(input: PushNotificationInputInterface, options?: SendOptionsInterface): Promise; private getHeaders; private static getResponseData; }