import type { APSBody, Notification, NotificationBody, NotificationHeaders } from "./notification.js"; /** * Empty interface on purpose to allow for TS * autocompletion to be extended by the user. * Must be exported to allow extending in the user's code. */ export interface NotificationCustomAppData { } type NotificationData = NotificationHeaders & NotificationBody; type NotificationObject = Notification>>; /** * Create a notification about an incoming VoIP call through PushKit. * * `expiration` field is clamped to be lower than 5 seconds as per Apple requirement: * * ```text * Set the value of the apns-expiration header field to 0, or to only a few seconds. * Doing so prevents the system from delivering the notification at a much later time. * ``` * * @see https://developer.apple.com/documentation/PushKit/responding-to-voip-notifications-from-pushkit#Generate-Push-Notifications-from-Your-Server * * @param appBundleId The topic of the notification. It will be suffixed, if needed, with `.voip`. * @param data * @returns */ export declare function VoipNotification(appBundleId: string, data: NotificationData): NotificationObject; export {};