import type { Subscription } from "./pusher.js"; /** What a test fixes to check against a known vector; random otherwise. */ export interface Ephemeral { keys: CryptoKeyPair; salt: Uint8Array; } /** * Encrypts `payload` to `subscription` as an `aes128gcm` body (RFC 8291): * a header carrying the salt and this message's public key, then the one * record, which only the browser that subscribed can open. */ export declare function encrypt(subscription: Subscription, payload: Uint8Array, ephemeral?: Ephemeral): Promise>;