import type { ConnectorProtocol } from "./connector.js"; export interface CertificateConnectorData { /** * Certificate file buffer to be read sent when * establishing an HTTP/2 connection to APNs. * * When sending notifications for Apple Wallet, * this should be the certificate used to sign * the pass itself. * * @see https://developer.apple.com/documentation/walletpasses/adding-a-web-service-to-update-passes#Send-a-Push-Notification */ cert: Uint8Array; /** * The private key file buffer for the certificate. * * When sending notifications for Apple Wallet, * this should be the private key used to sign the * pass itself. * * @see https://developer.apple.com/documentation/walletpasses/adding-a-web-service-to-update-passes#Send-a-Push-Notification */ key: Uint8Array; /** * The passphrase for the private key. * If omitted and the key is encrypted, * error `ERR_OSSL_BAD_DECRYPT` might get * thrown. */ passphrase?: string; } /** * Helps establishing a certificate based connection to APNs. * @see https://developer.apple.com/documentation/usernotifications/establishing-a-certificate-based-connection-to-apns * * @param details */ export declare function CertificateConnector(details: CertificateConnectorData): ConnectorProtocol;