import { EmitterSubscription } from './BatchEventEmitter'; export interface BatchMessagingEventPayload { isPositiveAction: boolean; trackingId?: string | null; webViewAnalyticsIdentifier?: string | null; messagingCustomPayload?: Record; pushPayload?: Record; deeplink?: string | null; } export declare const BatchMessaging: { /** * Shows the currently enqueued message, if any. */ showPendingMessage: () => Promise; /** * Define if incoming messages have to be enqueued or displayed directly * * @param active */ setNotDisturbed: (active: boolean) => Promise; /** * Disables do not disturb mode and shows the currently enqueued message, if any. */ disableDoNotDisturbAndShowPendingMessage: () => Promise; /** * Override the font used in message views. Not applicable for standard alerts. * [iOS](https://doc.batch.com/ios-api-reference/Classes/BatchMessaging.html#/c:objc(cs)BatchMessaging(cm)setFontOverride:boldFont:italicFont:boldItalicFont:) * [Android](https://doc.batch.com/android-api-reference/com/batch/android/Batch.Messaging.html#setTypefaceOverride-Typeface-Typeface-) * * @param normalFontName * @param boldFontName * @param italicFontName (iOS only) * @param italicBoldFontName (iOS only) */ setFontOverride: (normalFontName?: string | null, boldFontName?: string | null, italicFontName?: string | null, italicBoldFontName?: string | null) => Promise; /** * Listen for messaging events */ addListener(eventType: "show" | "close" | "close_error" | "auto_close" | "click" | "webview_click", callback: (payload: BatchMessagingEventPayload) => void): EmitterSubscription; };