import { a as AppStoreConnectClient } from './index-CCtYhPN9.js'; import { C as CertificateType } from './enums-B609j2rb.js'; type PushCertKind = "development" | "production" | "website" | "voip" | "passbook"; interface PemOptions { client: AppStoreConnectClient; bundleIdentifier: string; development?: boolean; websitePush?: boolean; /** Voice-over-IP push cert (Portal type code `E5D663CMZW`). */ voipPush?: boolean; /** Passbook/Wallet cert (Portal type code `Y3B2F3TYSI`). */ passbook?: boolean; outputDir?: string; p12Password?: string; activeDaysLimit?: number; force?: boolean; platform?: "ios" | "macos"; generateP12?: boolean; savePrivateKey?: boolean; } interface PemResult { pemPath: string; p12Path?: string; keyPath?: string; expiresAt: Date; } /** * Resolve the push certificate descriptor for the given options. Returns: * - `kind`: semantic certificate family (used in filename prefix) * - `portalTypeCode`: Apple Developer Portal type code (matches Fastlane's * `Spaceship::Portal::Certificate` codes in certificate.rb) * - `ascCertificateType`: best-fit ASC `CertificateType` for the ASC API * fallback path (note: push certs are really a Portal concept; the ASC * cert types here only approximate the platform distinction). */ declare function getPushCertificateType(options: { development?: boolean; websitePush?: boolean; voipPush?: boolean; passbook?: boolean; platform?: "ios" | "macos"; }): { kind: PushCertKind; portalTypeCode: string; ascCertificateType: CertificateType; }; declare function createPushCertificate(options: PemOptions): Promise; declare function renewPushCertificate(options: PemOptions): Promise; declare function checkExpiration(options: { client: AppStoreConnectClient; bundleIdentifier: string; development?: boolean; activeDaysLimit?: number; }): Promise<{ valid: boolean; daysLeft: number; expiresAt: Date | null; }>; type index_PemOptions = PemOptions; type index_PemResult = PemResult; type index_PushCertKind = PushCertKind; declare const index_checkExpiration: typeof checkExpiration; declare const index_createPushCertificate: typeof createPushCertificate; declare const index_getPushCertificateType: typeof getPushCertificateType; declare const index_renewPushCertificate: typeof renewPushCertificate; declare namespace index { export { type index_PemOptions as PemOptions, type index_PemResult as PemResult, type index_PushCertKind as PushCertKind, index_checkExpiration as checkExpiration, index_createPushCertificate as createPushCertificate, index_getPushCertificateType as getPushCertificateType, index_renewPushCertificate as renewPushCertificate }; } export { type PushCertKind as P, type PemOptions as a, type PemResult as b, createPushCertificate as c, checkExpiration as d, getPushCertificateType as g, index as i, renewPushCertificate as r };