UNPKG

@pushforge/builder

Version:

A robust, cross-platform Web Push notification library that handles VAPID authentication and payload encryption following the Web Push Protocol standard. Works in Node.js 16+, Browsers, Deno, Bun and Cloudflare Workers.

21 lines (20 loc) 686 B
/** * A cryptographic interface that provides methods for generating random values * and accessing subtle cryptographic operations. */ export declare const crypto: { /** * Fills the given typed array with cryptographically secure random values. * * @param {T} array - The typed array to fill with random values. * @returns {T} The filled typed array. * @template T - The type of the typed array (e.g., Uint8Array). */ getRandomValues<T extends Uint8Array>(array: T): T; /** * Provides access to subtle cryptographic operations. * * @type {SubtleCrypto} The subtle cryptographic interface. */ subtle: SubtleCrypto; };