declare module '@choochmeque/tauri-plugin-notifications-api' { export type { PermissionState } from '@tauri-apps/api/core'; export const Importance: { readonly None: 0; readonly Min: 1; readonly Low: 2; readonly Default: 3; readonly High: 4; }; export type NotificationOptions = { id?: number; channelId?: string; title: string; body?: string; schedule?: unknown; largeBody?: string; summary?: string; actionTypeId?: string; group?: string; groupSummary?: boolean; sound?: string; inboxLines?: string[]; icon?: string; largeIcon?: string; iconColor?: string; attachments?: unknown[]; extra?: Record; ongoing?: boolean; autoCancel?: boolean; silent?: boolean; source?: string; }; export type Channel = { id: string; name: string; description?: string; sound?: string; lights?: boolean; lightColor?: string; vibration?: boolean; importance?: (typeof Importance)[keyof typeof Importance]; visibility?: number; }; export type ActiveNotification = { id: number; tag?: string; title?: string; body?: string; extra?: Record; }; export type NotificationClickedData = { id: number; data?: Record; }; export type PluginListener = { unregister: () => Promise | void; }; export function isPermissionGranted(): Promise; export function requestPermission(): Promise; export function sendNotification(options: NotificationOptions | string): Promise; export function registerForPushNotifications(): Promise; export function unregisterForPushNotifications(): Promise; export function listDistributors(): Promise; export function setDistributor(name: string): Promise; export function setToken(token: string): Promise; export function createChannel(channel: Channel): Promise; export function removeChannel(id: string): Promise; export function channels(): Promise; export function active(): Promise; export function removeActive(notifications: Array<{ id: number }>): Promise; export function removeAllActive(): Promise; export function pending(): Promise; export function cancel(notifications: number[]): Promise; export function cancelAll(): Promise; export function onNotificationReceived( cb: (notification: NotificationOptions) => void ): Promise; export function onAction( cb: (notification: NotificationOptions) => void ): Promise; export function onNotificationClicked( cb: (data: NotificationClickedData) => void ): Promise; }