import{Resource as p,invoke as n}from"./core-B5-l5hNl.js";class r extends p{constructor(e){super(e)}static async new(e,i,s){return n("plugin:image|new",{rgba:u(e),width:i,height:s}).then(a=>new r(a))}static async fromBytes(e){return n("plugin:image|from_bytes",{bytes:u(e)}).then(i=>new r(i))}static async fromPath(e){return n("plugin:image|from_path",{path:e}).then(i=>new r(i))}async rgba(){return n("plugin:image|rgba",{rid:this.rid}).then(e=>new Uint8Array(e))}async size(){return n("plugin:image|size",{rid:this.rid})}}function u(t){return t==null?null:typeof t=="string"?t:t instanceof r?t.rid:t}async function c(){return n("plugin:app|version")}async function l(){return n("plugin:app|name")}async function f(){return n("plugin:app|tauri_version")}async function g(){return n("plugin:app|app_show")}async function y(){return n("plugin:app|app_hide")}async function h(){return n("plugin:app|default_window_icon").then(t=>t?new r(t):null)}async function w(t){return n("plugin:app|set_app_theme",{theme:t})}export{h as defaultWindowIcon,l as getName,f as getTauriVersion,c as getVersion,y as hide,w as setTheme,g as show};
