UNPKG

webdev-power-kit

Version:

A powerful toolkit that simplifies access to browser features like clipboard, notifications, battery, vibration, and more — perfect for modern web developers.

13 lines (12 loc) 543 B
/** * Requests permission to send notifications to the user. * @returns A Promise that resolves with the permission status */ export declare function requestNotificationPermission(): Promise<NotificationPermission>; /** * Sends a browser notification with options. * @param title - Title of the notification * @param options - Optional NotificationOptions object * @returns A Promise that resolves after showing the notification */ export declare function sendNotification(title: string, options?: NotificationOptions): Promise<void>;