/** * The key pair a server signs its pushes with (RFC 8292), each base64url: * the public key as an uncompressed P-256 point, which the page subscribes * with as `applicationServerKey`, and the private key's scalar. */ export interface VapidKeys { publicKey: string; privateKey: string; } /** Makes a new pair, to keep: every subscription made with it needs it. */ export declare function generateVapidKeys(): Promise; /** * The `Authorization` header for a push to `endpoint`: a JWT for its origin, * signed with `keys`, naming `subject` (a `mailto:` or `https:` URL) for the * push service to reach about it, good until `expiresAt` (epoch ms, at most * a day off). */ export declare function vapidAuthorization(keys: VapidKeys, endpoint: string, subject: string, expiresAt: number): Promise;