import { F as FetchLike } from '../http-CqI0d_bz.cjs'; /** URL parameter appended to a OneSignal deep link. * @example * const param: OneSignalUrlParam = { key: "orderId", value: "123" }; */ interface OneSignalUrlParam { key: string; value: string | number | boolean; } /** Input for sending a OneSignal push notification from server code. * @example * await sendPushNotification({ oneSignalAppId: process.env.BDK_ONESIGNAL_APP_ID, oneSignalApiKey: process.env.BDK_ONESIGNAL_API_KEY, message: "Hello", playerIds }); */ interface SendPushNotificationInput { oneSignalAppId?: string; oneSignalApiKey?: string; message?: string; title?: string; subtitle?: string; playerIds?: string[]; subscriptionIds?: string[]; includeSegments?: string[]; excludeSegments?: string[]; templateId?: string; imageUrl?: string; onLoadUrl?: string; urlParams?: OneSignalUrlParam[]; data?: Record; /** OneSignal action buttons shown with the notification. * @example [{ id: "view_order", text: "View order", icon: "ic_stat_order" }] */ buttons?: Array<{ id: string; text: string; icon?: string; }> | undefined; /** Send a background/data notification with `data` wrapped under `bdkData`. * @example true */ silent?: true; /** Optional F16c in-app badge-engine value carried as `data.bdkBadge`. * @example 3 */ badge?: number; iosBadgeType?: string; iosBadgeCount?: number; targetChannel?: "push"; endpoint?: string; authorizationScheme?: "Basic" | "Key" | "Bearer"; fetch?: FetchLike; } /** Result returned after attempting to send a OneSignal notification. * @example * if (!result.sentSuccessfully) console.error(result.errorMessage); */ interface PushNotificationResult { notificationId: string | null; numberOfRecipients: number | null; sentSuccessfully: boolean; errorMessage: string | null; raw: unknown; } /** Send a OneSignal push notification. * @example * await sendPushNotification({ oneSignalAppId: process.env.BDK_ONESIGNAL_APP_ID, oneSignalApiKey: process.env.BDK_ONESIGNAL_API_KEY, title: "New message", message: "Open the app", playerIds }); */ declare function sendPushNotification(input: SendPushNotificationInput): Promise; export { type OneSignalUrlParam, type PushNotificationResult, type SendPushNotificationInput, sendPushNotification };