import{invoke as e}from"./core-SwWLTXZB.js";var t;(function(e){e.Year=`year`,e.Month=`month`,e.TwoWeeks=`twoWeeks`,e.Week=`week`,e.Day=`day`,e.Hour=`hour`,e.Minute=`minute`,e.Second=`second`})(t||={});var n;(function(e){e[e.None=0]=`None`,e[e.Min=1]=`Min`,e[e.Low=2]=`Low`,e[e.Default=3]=`Default`,e[e.High=4]=`High`})(n||={});var r;(function(e){e[e.Secret=-1]=`Secret`,e[e.Private=0]=`Private`,e[e.Public=1]=`Public`})(r||={});async function i(){return window.Notification.permission==="default"?await e(`plugin:notification|is_permission_granted`):await Promise.resolve(window.Notification.permission===`granted`)}function a(e){typeof e==`string`?new window.Notification(e):new window.Notification(e.title,e)}export{i as isPermissionGranted,a as sendNotification};