import { type WallClock } from "webappwiz/time"; import type { Pusher, PushOptions, Subscription } from "./pusher.js"; import { type VapidKeys } from "./vapid.js"; export interface WebPusherOptions { fetch?: typeof fetch; clock?: WallClock; } /** * Sends Web Push messages (RFC 8030), each encrypted to its subscription * and signed with `keys` as the server they subscribed to. */ export declare class WebPusher implements Pusher { private readonly keys; private readonly subject; private readonly fetcher; private readonly clock; /** `subject` is a `mailto:` or `https:` URL a push service can reach the sender at. */ constructor(keys: VapidKeys, subject: string, opts?: WebPusherOptions); push(subscription: Subscription, payload: string, opts?: PushOptions): Promise; }