From 3b59795678b160ddf095a8552b1c6350b4f9bc40 Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Tue, 20 Jun 2023 16:55:43 +0300 Subject: [PATCH 01/13] feat: add notification sound ref: https://github.com/tauri-apps/tauri/issues/7210 --- .changes/notification-sound.md | 6 ++++ core/tauri/Cargo.toml | 2 +- core/tauri/src/api/notification.rs | 35 ++++++++++++++++++++++++ core/tauri/src/endpoints/notification.rs | 6 ++++ tooling/api/docs/js-api.json | 2 +- tooling/api/src/notification.ts | 25 +++++++++++++++++ 6 files changed, 74 insertions(+), 2 deletions(-) create mode 100644 .changes/notification-sound.md diff --git a/.changes/notification-sound.md b/.changes/notification-sound.md new file mode 100644 index 000000000000..d757236b871f --- /dev/null +++ b/.changes/notification-sound.md @@ -0,0 +1,6 @@ +--- +'tauri': 'minor' +'@tauri-apps/api': 'minor' +--- + +Add option to specify notification sound. diff --git a/core/tauri/Cargo.toml b/core/tauri/Cargo.toml index 9b81aa8febee..4faf157c65c9 100644 --- a/core/tauri/Cargo.toml +++ b/core/tauri/Cargo.toml @@ -103,7 +103,7 @@ objc = "0.2" [target."cfg(windows)".dependencies] webview2-com = "0.19.1" -win7-notifications = { version = "0.3.1", optional = true } +win7-notifications = { version = "0.4", optional = true } [target."cfg(windows)".dependencies.windows] version = "0.39.0" diff --git a/core/tauri/src/api/notification.rs b/core/tauri/src/api/notification.rs index 8110f52ddf64..0fa470cc9c54 100644 --- a/core/tauri/src/api/notification.rs +++ b/core/tauri/src/api/notification.rs @@ -40,6 +40,8 @@ pub struct Notification { icon: Option, /// The notification identifier identifier: String, + /// The notification sound + sound: Option, } impl Notification { @@ -72,6 +74,35 @@ impl Notification { self } + /// Sets the notification sound. Silent by default. + /// + /// ## Platform-specific + /// + /// Each OS has a different sound name so you will need to conditionally specify an appropriate sound + /// based on the OS in use, for a list of sounds see: + /// - **Linux**: can be one of the sounds listed in + /// - **Windows**: can be one of the sounds listed in + /// but without the prefix, for example, if `ms-winsoundevent:Notification.Default` you would use `Default` and + /// if `ms-winsoundevent:Notification.Looping.Alarm2`, you would use `Alarm2`. + /// Windows 7 is not supproted, if a sound is provided, it will play the default sound, otherwise it will be silent. + /// - **macOS**: you can specify the name of the sound you'd like to play when the notification is shown. + /// Any of the default sounds (under System Preferences > Sound) can be used, in addition to custom sound files. + /// Be sure that the sound file is copied under the app bundle (e.g., `YourApp.app/Contents/Resources`), or one of the following locations: + /// - `~/Library/Sounds` + /// - `/Library/Sounds` + /// - `/Network/Library/Sounds` + /// - `/System/Library/Sounds` + /// + /// See the [`NSSound`] docs for more information. + /// + /// + /// [`NSSound`]: https://developer.apple.com/documentation/appkit/nssound + #[must_use] + pub fn sound(mut self, sound: impl Into) -> Self { + self.sound = Some(sound.into()); + self + } + /// Shows the notification. /// /// # Examples @@ -108,6 +139,9 @@ impl Notification { } else { notification.auto_icon(); } + if let Some(sound) = self.sound { + notification.sound_name(&sound); + } #[cfg(windows)] { let exe = tauri_utils::platform::current_exe()?; @@ -191,6 +225,7 @@ impl Notification { if let Some(title) = self.title { notification.summary(&title); } + notification.silent(self.sound.is_none()); if let Some(crate::Icon::Rgba { rgba, width, diff --git a/core/tauri/src/endpoints/notification.rs b/core/tauri/src/endpoints/notification.rs index 2399269a704a..55df0fdf93d7 100644 --- a/core/tauri/src/endpoints/notification.rs +++ b/core/tauri/src/endpoints/notification.rs @@ -26,6 +26,8 @@ pub struct NotificationOptions { pub body: Option, /// The notification icon. pub icon: Option, + /// The notification sound. + pub sound: Option, } /// The API descriptor. @@ -56,6 +58,9 @@ impl Cmd { if let Some(icon) = options.icon { notification = notification.icon(icon); } + if let Some(sound) = options.sound { + notification = notification.sound(sound); + } #[cfg(feature = "windows7-compat")] { notification.notify(&context.window.app_handle)?; @@ -94,6 +99,7 @@ mod tests { title: String::arbitrary(g), body: Option::arbitrary(g), icon: Option::arbitrary(g), + sound: Option::arbitrary(g), } } } diff --git a/tooling/api/docs/js-api.json b/tooling/api/docs/js-api.json index 774383c3adfd..7d038b2f973b 100644 --- a/tooling/api/docs/js-api.json +++ b/tooling/api/docs/js-api.json @@ -1 +1 @@ -{"id":0,"name":"@tauri-apps/api","variant":"project","kind":1,"flags":{},"children":[{"id":1,"name":"app","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Get application metadata.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.app`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.app`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.app) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"app\": {\n \"all\": true, // enable all app APIs\n \"show\": true,\n \"hide\": true\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security."}]},"children":[{"id":2,"name":"getName","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"app.ts","line":60,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/app.ts#L60"}],"signatures":[{"id":3,"name":"getName","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the application name."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getName } from '@tauri-apps/api/app';\nconst appName = await getName();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"app.ts","line":60,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/app.ts#L60"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":6,"name":"getTauriVersion","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"app.ts","line":80,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/app.ts#L80"}],"signatures":[{"id":7,"name":"getTauriVersion","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the Tauri version."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getTauriVersion } from '@tauri-apps/api/app';\nconst tauriVersion = await getTauriVersion();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"app.ts","line":80,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/app.ts#L80"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":4,"name":"getVersion","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"app.ts","line":41,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/app.ts#L41"}],"signatures":[{"id":5,"name":"getVersion","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the application version."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getVersion } from '@tauri-apps/api/app';\nconst appVersion = await getVersion();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"app.ts","line":41,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/app.ts#L41"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":10,"name":"hide","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"app.ts","line":120,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/app.ts#L120"}],"signatures":[{"id":11,"name":"hide","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Hides the application on macOS."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { hide } from '@tauri-apps/api/app';\nawait hide();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"app.ts","line":120,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/app.ts#L120"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":8,"name":"show","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"app.ts","line":100,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/app.ts#L100"}],"signatures":[{"id":9,"name":"show","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Shows the application on macOS. This function does not automatically focus any specific app window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { show } from '@tauri-apps/api/app';\nawait show();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"app.ts","line":100,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/app.ts#L100"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Functions","children":[2,6,4,10,8]}],"sources":[{"fileName":"app.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/app.ts#L1"}]},{"id":12,"name":"cli","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Parse arguments from your Command Line Interface.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.cli`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"children":[{"id":13,"name":"ArgMatch","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":15,"name":"occurrences","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Number of occurrences"}]},"sources":[{"fileName":"cli.ts","line":27,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/cli.ts#L27"}],"type":{"type":"intrinsic","name":"number"}},{"id":14,"name":"value","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"string if takes value\nboolean if flag\nstring[] or null if takes multiple values"}]},"sources":[{"fileName":"cli.ts","line":23,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/cli.ts#L23"}],"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"boolean"},{"type":"array","elementType":{"type":"intrinsic","name":"string"}}]}}],"groups":[{"title":"Properties","children":[15,14]}],"sources":[{"fileName":"cli.ts","line":17,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/cli.ts#L17"}]},{"id":19,"name":"CliMatches","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":20,"name":"args","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"cli.ts","line":42,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/cli.ts#L42"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"reference","target":13,"name":"ArgMatch","package":"@tauri-apps/api"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}},{"id":21,"name":"subcommand","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"cli.ts","line":43,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/cli.ts#L43"}],"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"reference","target":16,"name":"SubcommandMatch","package":"@tauri-apps/api"}]}}],"groups":[{"title":"Properties","children":[20,21]}],"sources":[{"fileName":"cli.ts","line":41,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/cli.ts#L41"}]},{"id":16,"name":"SubcommandMatch","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":18,"name":"matches","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"cli.ts","line":35,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/cli.ts#L35"}],"type":{"type":"reference","target":19,"name":"CliMatches","package":"@tauri-apps/api"}},{"id":17,"name":"name","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"cli.ts","line":34,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/cli.ts#L34"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[18,17]}],"sources":[{"fileName":"cli.ts","line":33,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/cli.ts#L33"}]},{"id":22,"name":"getMatches","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"cli.ts","line":66,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/cli.ts#L66"}],"signatures":[{"id":23,"name":"getMatches","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Parse the arguments provided to the current process and get the matches using the configuration defined ["},{"kind":"code","text":"`tauri.cli`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#tauriconfig.cli) in "},{"kind":"code","text":"`tauri.conf.json`"}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getMatches } from '@tauri-apps/api/cli';\nconst matches = await getMatches();\nif (matches.subcommand?.name === 'run') {\n // `./your-app run $ARGS` was executed\n const args = matches.subcommand?.matches.args\n if ('debug' in args) {\n // `./your-app run --debug` was executed\n }\n} else {\n const args = matches.args\n // `./your-app $ARGS` was executed\n}\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"cli.ts","line":66,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/cli.ts#L66"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":19,"name":"CliMatches","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Interfaces","children":[13,19,16]},{"title":"Functions","children":[22]}],"sources":[{"fileName":"cli.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/cli.ts#L1"}]},{"id":24,"name":"clipboard","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Read and write to the system clipboard.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.clipboard`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.clipboard`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.clipboard) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"clipboard\": {\n \"all\": true, // enable all Clipboard APIs\n \"writeText\": true,\n \"readText\": true\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security."}]},"children":[{"id":28,"name":"readText","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"clipboard.ts","line":63,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/clipboard.ts#L63"}],"signatures":[{"id":29,"name":"readText","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the clipboard content as plain text."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { readText } from '@tauri-apps/api/clipboard';\nconst clipboardText = await readText();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0."}]}]},"sources":[{"fileName":"clipboard.ts","line":63,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/clipboard.ts#L63"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"literal","value":null}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":25,"name":"writeText","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"clipboard.ts","line":44,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/clipboard.ts#L44"}],"signatures":[{"id":26,"name":"writeText","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Writes plain text to the clipboard."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { writeText, readText } from '@tauri-apps/api/clipboard';\nawait writeText('Tauri is awesome!');\nassert(await readText(), 'Tauri is awesome!');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0."}]}]},"sources":[{"fileName":"clipboard.ts","line":44,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/clipboard.ts#L44"}],"parameters":[{"id":27,"name":"text","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Functions","children":[28,25]}],"sources":[{"fileName":"clipboard.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/clipboard.ts#L1"}]},{"id":30,"name":"dialog","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Native system dialogs for opening and saving files.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.dialog`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.dialog`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.dialog) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"dialog\": {\n \"all\": true, // enable all dialog APIs\n \"ask\": true, // enable dialog ask API\n \"confirm\": true, // enable dialog confirm API\n \"message\": true, // enable dialog message API\n \"open\": true, // enable file open API\n \"save\": true // enable file save API\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security."}]},"children":[{"id":49,"name":"ConfirmDialogOptions","variant":"declaration","kind":256,"flags":{},"children":[{"id":53,"name":"cancelLabel","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The label of the cancel button."}]},"sources":[{"fileName":"dialog.ts","line":112,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L112"}],"type":{"type":"intrinsic","name":"string"}},{"id":52,"name":"okLabel","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The label of the confirm button."}]},"sources":[{"fileName":"dialog.ts","line":110,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L110"}],"type":{"type":"intrinsic","name":"string"}},{"id":50,"name":"title","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The title of the dialog. Defaults to the app name."}]},"sources":[{"fileName":"dialog.ts","line":106,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L106"}],"type":{"type":"intrinsic","name":"string"}},{"id":51,"name":"type","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The type of the dialog. Defaults to "},{"kind":"code","text":"`info`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"dialog.ts","line":108,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L108"}],"type":{"type":"union","types":[{"type":"literal","value":"info"},{"type":"literal","value":"warning"},{"type":"literal","value":"error"}]}}],"groups":[{"title":"Properties","children":[53,52,50,51]}],"sources":[{"fileName":"dialog.ts","line":104,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L104"}]},{"id":31,"name":"DialogFilter","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Extension filters for the file dialog."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":33,"name":"extensions","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Extensions to filter, without a "},{"kind":"code","text":"`.`"},{"kind":"text","text":" prefix."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nextensions: ['svg', 'png']\n```"}]}]},"sources":[{"fileName":"dialog.ts","line":48,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L48"}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}},{"id":32,"name":"name","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Filter name."}]},"sources":[{"fileName":"dialog.ts","line":40,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L40"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[33,32]}],"sources":[{"fileName":"dialog.ts","line":38,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L38"}]},{"id":45,"name":"MessageDialogOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":48,"name":"okLabel","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The label of the confirm button."}]},"sources":[{"fileName":"dialog.ts","line":101,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L101"}],"type":{"type":"intrinsic","name":"string"}},{"id":46,"name":"title","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The title of the dialog. Defaults to the app name."}]},"sources":[{"fileName":"dialog.ts","line":97,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L97"}],"type":{"type":"intrinsic","name":"string"}},{"id":47,"name":"type","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The type of the dialog. Defaults to "},{"kind":"code","text":"`info`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"dialog.ts","line":99,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L99"}],"type":{"type":"union","types":[{"type":"literal","value":"info"},{"type":"literal","value":"warning"},{"type":"literal","value":"error"}]}}],"groups":[{"title":"Properties","children":[48,46,47]}],"sources":[{"fileName":"dialog.ts","line":95,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L95"}]},{"id":34,"name":"OpenDialogOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Options for the open dialog."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":37,"name":"defaultPath","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Initial directory or file path."}]},"sources":[{"fileName":"dialog.ts","line":62,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L62"}],"type":{"type":"intrinsic","name":"string"}},{"id":39,"name":"directory","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the dialog is a directory selection or not."}]},"sources":[{"fileName":"dialog.ts","line":66,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L66"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":36,"name":"filters","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The filters of the dialog."}]},"sources":[{"fileName":"dialog.ts","line":60,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L60"}],"type":{"type":"array","elementType":{"type":"reference","target":31,"name":"DialogFilter","package":"@tauri-apps/api"}}},{"id":38,"name":"multiple","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the dialog allows multiple selection or not."}]},"sources":[{"fileName":"dialog.ts","line":64,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L64"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":40,"name":"recursive","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"If "},{"kind":"code","text":"`directory`"},{"kind":"text","text":" is true, indicates that it will be read recursively later.\nDefines whether subdirectories will be allowed on the scope or not."}]},"sources":[{"fileName":"dialog.ts","line":71,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L71"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":35,"name":"title","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The title of the dialog window."}]},"sources":[{"fileName":"dialog.ts","line":58,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L58"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[37,39,36,38,40,35]}],"sources":[{"fileName":"dialog.ts","line":56,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L56"}]},{"id":41,"name":"SaveDialogOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Options for the save dialog."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":44,"name":"defaultPath","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Initial directory or file path.\nIf it's a directory path, the dialog interface will change to that folder.\nIf it's not an existing directory, the file name will be set to the dialog's file name input and the dialog will be set to the parent folder."}]},"sources":[{"fileName":"dialog.ts","line":89,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L89"}],"type":{"type":"intrinsic","name":"string"}},{"id":43,"name":"filters","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The filters of the dialog."}]},"sources":[{"fileName":"dialog.ts","line":83,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L83"}],"type":{"type":"array","elementType":{"type":"reference","target":31,"name":"DialogFilter","package":"@tauri-apps/api"}}},{"id":42,"name":"title","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The title of the dialog window."}]},"sources":[{"fileName":"dialog.ts","line":81,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L81"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[44,43,42]}],"sources":[{"fileName":"dialog.ts","line":79,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L79"}]},{"id":64,"name":"ask","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"dialog.ts","line":271,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L271"}],"signatures":[{"id":65,"name":"ask","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Shows a question dialog with "},{"kind":"code","text":"`Yes`"},{"kind":"text","text":" and "},{"kind":"code","text":"`No`"},{"kind":"text","text":" buttons."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { ask } from '@tauri-apps/api/dialog';\nconst yes = await ask('Are you sure?', 'Tauri');\nconst yes2 = await ask('This action cannot be reverted. Are you sure?', { title: 'Tauri', type: 'warning' });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a boolean indicating whether "},{"kind":"code","text":"`Yes`"},{"kind":"text","text":" was clicked or not."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"dialog.ts","line":271,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L271"}],"parameters":[{"id":66,"name":"message","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The message to show."}]},"type":{"type":"intrinsic","name":"string"}},{"id":67,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The dialog's options. If a string, it represents the dialog title."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":49,"name":"ConfirmDialogOptions","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":68,"name":"confirm","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"dialog.ts","line":307,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L307"}],"signatures":[{"id":69,"name":"confirm","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Shows a question dialog with "},{"kind":"code","text":"`Ok`"},{"kind":"text","text":" and "},{"kind":"code","text":"`Cancel`"},{"kind":"text","text":" buttons."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { confirm } from '@tauri-apps/api/dialog';\nconst confirmed = await confirm('Are you sure?', 'Tauri');\nconst confirmed2 = await confirm('This action cannot be reverted. Are you sure?', { title: 'Tauri', type: 'warning' });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a boolean indicating whether "},{"kind":"code","text":"`Ok`"},{"kind":"text","text":" was clicked or not."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"dialog.ts","line":307,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L307"}],"parameters":[{"id":70,"name":"message","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The message to show."}]},"type":{"type":"intrinsic","name":"string"}},{"id":71,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The dialog's options. If a string, it represents the dialog title."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":49,"name":"ConfirmDialogOptions","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":60,"name":"message","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"dialog.ts","line":238,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L238"}],"signatures":[{"id":61,"name":"message","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Shows a message dialog with an "},{"kind":"code","text":"`Ok`"},{"kind":"text","text":" button."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { message } from '@tauri-apps/api/dialog';\nawait message('Tauri is awesome', 'Tauri');\nawait message('File not found', { title: 'Tauri', type: 'error' });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"dialog.ts","line":238,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L238"}],"parameters":[{"id":62,"name":"message","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The message to show."}]},"type":{"type":"intrinsic","name":"string"}},{"id":63,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The dialog's options. If a string, it represents the dialog title."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":45,"name":"MessageDialogOptions","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":54,"name":"open","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"dialog.ts","line":167,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L167"}],"signatures":[{"id":55,"name":"open","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Open a file/directory selection dialog.\n\nThe selected paths are added to the filesystem and asset protocol allowlist scopes.\nWhen security is more important than the easy of use of this API,\nprefer writing a dedicated command instead.\n\nNote that the allowlist scope change is not persisted, so the values are cleared when the application is restarted.\nYou can save it to the filesystem using [tauri-plugin-persisted-scope](https://github.com/tauri-apps/tauri-plugin-persisted-scope)."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { open } from '@tauri-apps/api/dialog';\n// Open a selection dialog for image files\nconst selected = await open({\n multiple: true,\n filters: [{\n name: 'Image',\n extensions: ['png', 'jpeg']\n }]\n});\nif (Array.isArray(selected)) {\n // user selected multiple files\n} else if (selected === null) {\n // user cancelled the selection\n} else {\n // user selected a single file\n}\n```"}]},{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { open } from '@tauri-apps/api/dialog';\nimport { appDir } from '@tauri-apps/api/path';\n// Open a selection dialog for directories\nconst selected = await open({\n directory: true,\n multiple: true,\n defaultPath: await appDir(),\n});\nif (Array.isArray(selected)) {\n // user selected multiple directories\n} else if (selected === null) {\n // user cancelled the selection\n} else {\n // user selected a single directory\n}\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to the selected path(s)"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"dialog.ts","line":167,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L167"}],"parameters":[{"id":56,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":34,"name":"OpenDialogOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"literal","value":null},{"type":"intrinsic","name":"string"},{"type":"array","elementType":{"type":"intrinsic","name":"string"}}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":57,"name":"save","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"dialog.ts","line":207,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L207"}],"signatures":[{"id":58,"name":"save","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Open a file/directory save dialog.\n\nThe selected path is added to the filesystem and asset protocol allowlist scopes.\nWhen security is more important than the easy of use of this API,\nprefer writing a dedicated command instead.\n\nNote that the allowlist scope change is not persisted, so the values are cleared when the application is restarted.\nYou can save it to the filesystem using [tauri-plugin-persisted-scope](https://github.com/tauri-apps/tauri-plugin-persisted-scope)."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { save } from '@tauri-apps/api/dialog';\nconst filePath = await save({\n filters: [{\n name: 'Image',\n extensions: ['png', 'jpeg']\n }]\n});\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to the selected path."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"dialog.ts","line":207,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L207"}],"parameters":[{"id":59,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":41,"name":"SaveDialogOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"literal","value":null}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Interfaces","children":[49,31,45,34,41]},{"title":"Functions","children":[64,68,60,54,57]}],"sources":[{"fileName":"dialog.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/dialog.ts#L1"}]},{"id":72,"name":"event","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"The event system allows you to emit events to the backend and listen to events from it.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.event`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"children":[{"id":74,"name":"TauriEvent","variant":"declaration","kind":8,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"children":[{"id":88,"name":"CHECK_UPDATE","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":34,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/event.ts#L34"}],"type":{"type":"literal","value":"tauri://update"}},{"id":92,"name":"DOWNLOAD_PROGRESS","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":38,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/event.ts#L38"}],"type":{"type":"literal","value":"tauri://update-download-progress"}},{"id":90,"name":"INSTALL_UPDATE","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":36,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/event.ts#L36"}],"type":{"type":"literal","value":"tauri://update-install"}},{"id":87,"name":"MENU","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":33,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/event.ts#L33"}],"type":{"type":"literal","value":"tauri://menu"}},{"id":91,"name":"STATUS_UPDATE","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":37,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/event.ts#L37"}],"type":{"type":"literal","value":"tauri://update-status"}},{"id":89,"name":"UPDATE_AVAILABLE","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":35,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/event.ts#L35"}],"type":{"type":"literal","value":"tauri://update-available"}},{"id":81,"name":"WINDOW_BLUR","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":27,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/event.ts#L27"}],"type":{"type":"literal","value":"tauri://blur"}},{"id":77,"name":"WINDOW_CLOSE_REQUESTED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":23,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/event.ts#L23"}],"type":{"type":"literal","value":"tauri://close-requested"}},{"id":78,"name":"WINDOW_CREATED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":24,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/event.ts#L24"}],"type":{"type":"literal","value":"tauri://window-created"}},{"id":79,"name":"WINDOW_DESTROYED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":25,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/event.ts#L25"}],"type":{"type":"literal","value":"tauri://destroyed"}},{"id":84,"name":"WINDOW_FILE_DROP","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":30,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/event.ts#L30"}],"type":{"type":"literal","value":"tauri://file-drop"}},{"id":86,"name":"WINDOW_FILE_DROP_CANCELLED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":32,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/event.ts#L32"}],"type":{"type":"literal","value":"tauri://file-drop-cancelled"}},{"id":85,"name":"WINDOW_FILE_DROP_HOVER","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":31,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/event.ts#L31"}],"type":{"type":"literal","value":"tauri://file-drop-hover"}},{"id":80,"name":"WINDOW_FOCUS","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":26,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/event.ts#L26"}],"type":{"type":"literal","value":"tauri://focus"}},{"id":76,"name":"WINDOW_MOVED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":22,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/event.ts#L22"}],"type":{"type":"literal","value":"tauri://move"}},{"id":75,"name":"WINDOW_RESIZED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":21,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/event.ts#L21"}],"type":{"type":"literal","value":"tauri://resize"}},{"id":82,"name":"WINDOW_SCALE_FACTOR_CHANGED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":28,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/event.ts#L28"}],"type":{"type":"literal","value":"tauri://scale-change"}},{"id":83,"name":"WINDOW_THEME_CHANGED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":29,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/event.ts#L29"}],"type":{"type":"literal","value":"tauri://theme-changed"}}],"groups":[{"title":"Enumeration Members","children":[88,92,90,87,91,89,81,77,78,79,84,86,85,80,76,75,82,83]}],"sources":[{"fileName":"event.ts","line":20,"character":12,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/event.ts#L20"}]},{"id":1160,"name":"Event","variant":"declaration","kind":256,"flags":{},"children":[{"id":1161,"name":"event","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name"}]},"sources":[{"fileName":"helpers/event.ts","line":12,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/helpers/event.ts#L12"}],"type":{"type":"reference","target":73,"name":"EventName","package":"@tauri-apps/api"}},{"id":1163,"name":"id","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event identifier used to unlisten"}]},"sources":[{"fileName":"helpers/event.ts","line":16,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/helpers/event.ts#L16"}],"type":{"type":"intrinsic","name":"number"}},{"id":1164,"name":"payload","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event payload"}]},"sources":[{"fileName":"helpers/event.ts","line":18,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/helpers/event.ts#L18"}],"type":{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}},{"id":1162,"name":"windowLabel","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The label of the window that emitted this event."}]},"sources":[{"fileName":"helpers/event.ts","line":14,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/helpers/event.ts#L14"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[1161,1163,1164,1162]}],"sources":[{"fileName":"helpers/event.ts","line":10,"character":17,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/helpers/event.ts#L10"}],"typeParameters":[{"id":1165,"name":"T","variant":"typeParam","kind":131072,"flags":{}}]},{"id":1166,"name":"EventCallback","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"helpers/event.ts","line":21,"character":12,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/helpers/event.ts#L21"}],"typeParameters":[{"id":1170,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"type":{"type":"reflection","declaration":{"id":1167,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"helpers/event.ts","line":21,"character":31,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/helpers/event.ts#L21"}],"signatures":[{"id":1168,"name":"__type","variant":"signature","kind":4096,"flags":{},"parameters":[{"id":1169,"name":"event","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1160,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Event","package":"@tauri-apps/api"}}],"type":{"type":"intrinsic","name":"void"}}]}}},{"id":73,"name":"EventName","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"event.ts","line":15,"character":12,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/event.ts#L15"}],"type":{"type":"union","types":[{"type":"templateLiteral","head":"","tail":[[{"type":"reference","target":74,"name":"TauriEvent","package":"@tauri-apps/api"},""]]},{"type":"intersection","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"never"},{"type":"intrinsic","name":"never"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}]}]}},{"id":1171,"name":"UnlistenFn","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"helpers/event.ts","line":23,"character":12,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/helpers/event.ts#L23"}],"type":{"type":"reflection","declaration":{"id":1172,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"helpers/event.ts","line":23,"character":25,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/helpers/event.ts#L23"}],"signatures":[{"id":1173,"name":"__type","variant":"signature","kind":4096,"flags":{},"type":{"type":"intrinsic","name":"void"}}]}}},{"id":103,"name":"emit","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"event.ts","line":113,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/event.ts#L113"}],"signatures":[{"id":104,"name":"emit","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Emits an event to the backend and all Tauri windows."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { emit } from '@tauri-apps/api/event';\nawait emit('frontend-loaded', { loggedIn: true, token: 'authToken' });\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"event.ts","line":113,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/event.ts#L113"}],"parameters":[{"id":105,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":106,"name":"payload","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"intrinsic","name":"unknown"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":93,"name":"listen","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"event.ts","line":63,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/event.ts#L63"}],"signatures":[{"id":94,"name":"listen","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to an event. The event can be either global or window-specific.\nSee "},{"kind":"inline-tag","tag":"@link","text":"windowLabel","target":1162,"tsLinkText":""},{"kind":"text","text":" to check the event source."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { listen } from '@tauri-apps/api/event';\nconst unlisten = await listen('error', (event) => {\n console.log(`Got error in window ${event.windowLabel}, payload: ${event.payload}`);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"event.ts","line":63,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/event.ts#L63"}],"typeParameter":[{"id":95,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":96,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"reference","target":73,"name":"EventName","package":"@tauri-apps/api"}},{"id":97,"name":"handler","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event handler callback."}]},"type":{"type":"reference","target":1166,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1171,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":98,"name":"once","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"event.ts","line":94,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/event.ts#L94"}],"signatures":[{"id":99,"name":"once","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to an one-off event. See "},{"kind":"inline-tag","tag":"@link","text":"listen","target":93,"tsLinkText":""},{"kind":"text","text":" for more information."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { once } from '@tauri-apps/api/event';\ninterface LoadedPayload {\n loggedIn: boolean,\n token: string\n}\nconst unlisten = await once('loaded', (event) => {\n console.log(`App is loaded, loggedIn: ${event.payload.loggedIn}, token: ${event.payload.token}`);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"event.ts","line":94,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/event.ts#L94"}],"typeParameter":[{"id":100,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":101,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"reference","target":73,"name":"EventName","package":"@tauri-apps/api"}},{"id":102,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1166,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1171,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Enumerations","children":[74]},{"title":"Interfaces","children":[1160]},{"title":"Type Aliases","children":[1166,73,1171]},{"title":"Functions","children":[103,93,98]}],"sources":[{"fileName":"event.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/event.ts#L1"}]},{"id":107,"name":"fs","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Access the file system.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.fs`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.fs`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.fs) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"fs\": {\n \"all\": true, // enable all FS APIs\n \"readFile\": true,\n \"writeFile\": true,\n \"readDir\": true,\n \"copyFile\": true,\n \"createDir\": true,\n \"removeDir\": true,\n \"removeFile\": true,\n \"renameFile\": true,\n \"exists\": true\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security.\n\n## Security\n\nThis module prevents path traversal, not allowing absolute paths or parent dir components\n(i.e. \"/usr/path/to/file\" or \"../path/to/file\" paths are not allowed).\nPaths accessed with this API must be relative to one of the "},{"kind":"inline-tag","tag":"@link","text":"base directories","target":108},{"kind":"text","text":"\nso if you need access to arbitrary filesystem paths, you must write such logic on the core layer instead.\n\nThe API has a scope configuration that forces you to restrict the paths that can be accessed using glob patterns.\n\nThe scope configuration is an array of glob patterns describing folder paths that are allowed.\nFor instance, this scope configuration only allows accessing files on the\n*databases* folder of the "},{"kind":"inline-tag","tag":"@link","text":"$APPDATA directory","target":381},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"fs\": {\n \"scope\": [\"$APPDATA/databases/*\"]\n }\n }\n }\n}\n```"},{"kind":"text","text":"\n\nNotice the use of the "},{"kind":"code","text":"`$APPDATA`"},{"kind":"text","text":" variable. The value is injected at runtime, resolving to the "},{"kind":"inline-tag","tag":"@link","text":"app data directory","target":381},{"kind":"text","text":".\nThe available variables are:\n"},{"kind":"inline-tag","tag":"@link","text":"`$APPCONFIG`","target":379},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$APPDATA`","target":381},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$APPLOCALDATA`","target":383},{"kind":"text","text":",\n"},{"kind":"inline-tag","tag":"@link","text":"`$APPCACHE`","target":385},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$APPLOG`","target":387},{"kind":"text","text":",\n"},{"kind":"inline-tag","tag":"@link","text":"`$AUDIO`","target":389},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$CACHE`","target":391},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$CONFIG`","target":393},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$DATA`","target":395},{"kind":"text","text":",\n"},{"kind":"inline-tag","tag":"@link","text":"`$LOCALDATA`","target":409},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$DESKTOP`","target":397},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$DOCUMENT`","target":399},{"kind":"text","text":",\n"},{"kind":"inline-tag","tag":"@link","text":"`$DOWNLOAD`","target":401},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$EXE`","target":403},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$FONT`","target":405},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$HOME`","target":407},{"kind":"text","text":",\n"},{"kind":"inline-tag","tag":"@link","text":"`$PICTURE`","target":411},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$PUBLIC`","target":413},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$RUNTIME`","target":420},{"kind":"text","text":",\n"},{"kind":"inline-tag","tag":"@link","text":"`$TEMPLATE`","target":422},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$VIDEO`","target":424},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$RESOURCE`","target":415},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$APP`","target":377},{"kind":"text","text":",\n"},{"kind":"inline-tag","tag":"@link","text":"`$LOG`","target":426},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$TEMP`","target":369},{"kind":"text","text":".\n\nTrying to execute any API with a URL not configured on the scope results in a promise rejection due to denied access.\n\nNote that this scope applies to **all** APIs on this module."}]},"children":[{"id":150,"name":"Dir","variant":"reference","kind":8388608,"flags":{},"sources":[{"fileName":"fs.ts","line":593,"character":19,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L593"}],"target":108},{"id":167,"name":"writeFile","variant":"reference","kind":8388608,"flags":{},"sources":[{"fileName":"fs.ts","line":597,"character":19,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L597"}],"target":159},{"id":108,"name":"BaseDirectory","variant":"declaration","kind":8,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":126,"name":"App","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":98,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L98"}],"type":{"type":"literal","value":18}},{"id":132,"name":"AppCache","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":104,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L104"}],"type":{"type":"literal","value":24}},{"id":129,"name":"AppConfig","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":101,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L101"}],"type":{"type":"literal","value":21}},{"id":130,"name":"AppData","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":102,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L102"}],"type":{"type":"literal","value":22}},{"id":131,"name":"AppLocalData","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":103,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L103"}],"type":{"type":"literal","value":23}},{"id":133,"name":"AppLog","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":105,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L105"}],"type":{"type":"literal","value":25}},{"id":109,"name":"Audio","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":81,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L81"}],"type":{"type":"literal","value":1}},{"id":110,"name":"Cache","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":82,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L82"}],"type":{"type":"literal","value":2}},{"id":111,"name":"Config","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":83,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L83"}],"type":{"type":"literal","value":3}},{"id":112,"name":"Data","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":84,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L84"}],"type":{"type":"literal","value":4}},{"id":114,"name":"Desktop","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":86,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L86"}],"type":{"type":"literal","value":6}},{"id":115,"name":"Document","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":87,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L87"}],"type":{"type":"literal","value":7}},{"id":116,"name":"Download","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":88,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L88"}],"type":{"type":"literal","value":8}},{"id":117,"name":"Executable","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":89,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L89"}],"type":{"type":"literal","value":9}},{"id":118,"name":"Font","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":90,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L90"}],"type":{"type":"literal","value":10}},{"id":119,"name":"Home","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":91,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L91"}],"type":{"type":"literal","value":11}},{"id":113,"name":"LocalData","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":85,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L85"}],"type":{"type":"literal","value":5}},{"id":127,"name":"Log","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":99,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L99"}],"type":{"type":"literal","value":19}},{"id":120,"name":"Picture","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":92,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L92"}],"type":{"type":"literal","value":12}},{"id":121,"name":"Public","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":93,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L93"}],"type":{"type":"literal","value":13}},{"id":125,"name":"Resource","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":97,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L97"}],"type":{"type":"literal","value":17}},{"id":122,"name":"Runtime","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":94,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L94"}],"type":{"type":"literal","value":14}},{"id":128,"name":"Temp","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":100,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L100"}],"type":{"type":"literal","value":20}},{"id":123,"name":"Template","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":95,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L95"}],"type":{"type":"literal","value":15}},{"id":124,"name":"Video","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":96,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L96"}],"type":{"type":"literal","value":16}}],"groups":[{"title":"Enumeration Members","children":[126,132,129,130,131,133,109,110,111,112,114,115,116,117,118,119,113,127,120,121,125,122,128,123,124]}],"sources":[{"fileName":"fs.ts","line":80,"character":12,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L80"}]},{"id":146,"name":"FileEntry","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":149,"name":"children","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Children of this entry if it's a directory; null otherwise"}]},"sources":[{"fileName":"fs.ts","line":161,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L161"}],"type":{"type":"array","elementType":{"type":"reference","target":146,"name":"FileEntry","package":"@tauri-apps/api"}}},{"id":148,"name":"name","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Name of the directory/file\ncan be null if the path terminates with "},{"kind":"code","text":"`..`"}]},"sources":[{"fileName":"fs.ts","line":159,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L159"}],"type":{"type":"intrinsic","name":"string"}},{"id":147,"name":"path","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"fs.ts","line":154,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L154"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[149,148,147]}],"sources":[{"fileName":"fs.ts","line":153,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L153"}]},{"id":143,"name":"FsBinaryFileOption","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Options object used to write a binary data to a file."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":145,"name":"contents","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The byte array contents."}]},"sources":[{"fileName":"fs.ts","line":147,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L147"}],"type":{"type":"reference","target":142,"name":"BinaryFileContents","package":"@tauri-apps/api"}},{"id":144,"name":"path","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Path to the file to write."}]},"sources":[{"fileName":"fs.ts","line":145,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L145"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[145,144]}],"sources":[{"fileName":"fs.ts","line":143,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L143"}]},{"id":136,"name":"FsDirOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":137,"name":"dir","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"fs.ts","line":120,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L120"}],"type":{"type":"reference","target":108,"name":"BaseDirectory","package":"@tauri-apps/api"}},{"id":138,"name":"recursive","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"fs.ts","line":121,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L121"}],"type":{"type":"intrinsic","name":"boolean"}}],"groups":[{"title":"Properties","children":[137,138]}],"sources":[{"fileName":"fs.ts","line":119,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L119"}]},{"id":134,"name":"FsOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":135,"name":"dir","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"fs.ts","line":112,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L112"}],"type":{"type":"reference","target":108,"name":"BaseDirectory","package":"@tauri-apps/api"}}],"groups":[{"title":"Properties","children":[135]}],"sources":[{"fileName":"fs.ts","line":111,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L111"}]},{"id":139,"name":"FsTextFileOption","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Options object used to write a UTF-8 string to a file."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":141,"name":"contents","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The UTF-8 string to write to the file."}]},"sources":[{"fileName":"fs.ts","line":133,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L133"}],"type":{"type":"intrinsic","name":"string"}},{"id":140,"name":"path","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Path to the file to write."}]},"sources":[{"fileName":"fs.ts","line":131,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L131"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[141,140]}],"sources":[{"fileName":"fs.ts","line":129,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L129"}]},{"id":142,"name":"BinaryFileContents","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"fs.ts","line":136,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L136"}],"type":{"type":"union","types":[{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es2015.iterable.d.ts","qualifiedName":"Iterable"},"typeArguments":[{"type":"intrinsic","name":"number"}],"name":"Iterable","package":"typescript"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"ArrayLike"},"typeArguments":[{"type":"intrinsic","name":"number"}],"name":"ArrayLike","package":"typescript"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"ArrayBuffer"},"name":"ArrayBuffer","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer"}]}},{"id":188,"name":"copyFile","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":489,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L489"}],"signatures":[{"id":189,"name":"copyFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Copies a file to a destination."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { copyFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Copy the `$APPCONFIG/app.conf` file to `$APPCONFIG/app.conf.bk`\nawait copyFile('app.conf', 'app.conf.bk', { dir: BaseDirectory.AppConfig });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":489,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L489"}],"parameters":[{"id":190,"name":"source","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":191,"name":"destination","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":192,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":180,"name":"createDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":434,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L434"}],"signatures":[{"id":181,"name":"createDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a directory.\nIf one of the path's parent components doesn't exist\nand the "},{"kind":"code","text":"`recursive`"},{"kind":"text","text":" option isn't set to true, the promise will be rejected."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { createDir, BaseDirectory } from '@tauri-apps/api/fs';\n// Create the `$APPDATA/users` directory\nawait createDir('users', { dir: BaseDirectory.AppData, recursive: true });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":434,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L434"}],"parameters":[{"id":182,"name":"dir","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":183,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":136,"name":"FsDirOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":202,"name":"exists","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":572,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L572"}],"signatures":[{"id":203,"name":"exists","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Check if a path exists."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { exists, BaseDirectory } from '@tauri-apps/api/fs';\n// Check if the `$APPDATA/avatar.png` file exists\nawait exists('avatar.png', { dir: BaseDirectory.AppData });\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"fs.ts","line":572,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L572"}],"parameters":[{"id":204,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":205,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":155,"name":"readBinaryFile","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":200,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L200"}],"signatures":[{"id":156,"name":"readBinaryFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Reads a file as byte array."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { readBinaryFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Read the image file in the `$RESOURCEDIR/avatar.png` path\nconst contents = await readBinaryFile('avatar.png', { dir: BaseDirectory.Resource });\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":200,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L200"}],"parameters":[{"id":157,"name":"filePath","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":158,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Uint8Array"},"name":"Uint8Array","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":176,"name":"readDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":405,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L405"}],"signatures":[{"id":177,"name":"readDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"List directory files."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { readDir, BaseDirectory } from '@tauri-apps/api/fs';\n// Reads the `$APPDATA/users` directory recursively\nconst entries = await readDir('users', { dir: BaseDirectory.AppData, recursive: true });\n\nfunction processEntries(entries) {\n for (const entry of entries) {\n console.log(`Entry: ${entry.path}`);\n if (entry.children) {\n processEntries(entry.children)\n }\n }\n}\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":405,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L405"}],"parameters":[{"id":178,"name":"dir","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":179,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":136,"name":"FsDirOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"array","elementType":{"type":"reference","target":146,"name":"FileEntry","package":"@tauri-apps/api"}}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":151,"name":"readTextFile","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":175,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L175"}],"signatures":[{"id":152,"name":"readTextFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Reads a file as an UTF-8 encoded string."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { readTextFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Read the text file in the `$APPCONFIG/app.conf` path\nconst contents = await readTextFile('app.conf', { dir: BaseDirectory.AppConfig });\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":175,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L175"}],"parameters":[{"id":153,"name":"filePath","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":154,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":184,"name":"removeDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":462,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L462"}],"signatures":[{"id":185,"name":"removeDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Removes a directory.\nIf the directory is not empty and the "},{"kind":"code","text":"`recursive`"},{"kind":"text","text":" option isn't set to true, the promise will be rejected."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { removeDir, BaseDirectory } from '@tauri-apps/api/fs';\n// Remove the directory `$APPDATA/users`\nawait removeDir('users', { dir: BaseDirectory.AppData });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":462,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L462"}],"parameters":[{"id":186,"name":"dir","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":187,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":136,"name":"FsDirOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":193,"name":"removeFile","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":518,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L518"}],"signatures":[{"id":194,"name":"removeFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Removes a file."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { removeFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Remove the `$APPConfig/app.conf` file\nawait removeFile('app.conf', { dir: BaseDirectory.AppConfig });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":518,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L518"}],"parameters":[{"id":195,"name":"file","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":196,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":197,"name":"renameFile","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":545,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L545"}],"signatures":[{"id":198,"name":"renameFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Renames a file."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { renameFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Rename the `$APPDATA/avatar.png` file\nawait renameFile('avatar.png', 'deleted.png', { dir: BaseDirectory.AppData });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":545,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L545"}],"parameters":[{"id":199,"name":"oldPath","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":200,"name":"newPath","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":201,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":168,"name":"writeBinaryFile","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":309,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L309"},{"fileName":"fs.ts","line":330,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L330"},{"fileName":"fs.ts","line":342,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L342"}],"signatures":[{"id":169,"name":"writeBinaryFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Writes a byte array content to a file."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { writeBinaryFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Write a binary file to the `$APPDATA/avatar.png` path\nawait writeBinaryFile('avatar.png', new Uint8Array([]), { dir: BaseDirectory.AppData });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":309,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L309"}],"parameters":[{"id":170,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":171,"name":"contents","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":142,"name":"BinaryFileContents","package":"@tauri-apps/api"}},{"id":172,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Configuration object."}]},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}},{"id":173,"name":"writeBinaryFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Writes a byte array content to a file."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { writeBinaryFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Write a binary file to the `$APPDATA/avatar.png` path\nawait writeBinaryFile({ path: 'avatar.png', contents: new Uint8Array([]) }, { dir: BaseDirectory.AppData });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":330,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L330"}],"parameters":[{"id":174,"name":"file","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The object containing the file path and contents."}]},"type":{"type":"reference","target":143,"name":"FsBinaryFileOption","package":"@tauri-apps/api"}},{"id":175,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Configuration object."}]},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":159,"name":"writeTextFile","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":227,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L227"},{"fileName":"fs.ts","line":245,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L245"},{"fileName":"fs.ts","line":257,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L257"}],"signatures":[{"id":160,"name":"writeTextFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Writes a UTF-8 text file."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { writeTextFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Write a text file to the `$APPCONFIG/app.conf` path\nawait writeTextFile('app.conf', 'file contents', { dir: BaseDirectory.AppConfig });\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":227,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L227"}],"parameters":[{"id":161,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":162,"name":"contents","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":163,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}},{"id":164,"name":"writeTextFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Writes a UTF-8 text file."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { writeTextFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Write a text file to the `$APPCONFIG/app.conf` path\nawait writeTextFile({ path: 'app.conf', contents: 'file contents' }, { dir: BaseDirectory.AppConfig });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":245,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L245"}],"parameters":[{"id":165,"name":"file","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":139,"name":"FsTextFileOption","package":"@tauri-apps/api"}},{"id":166,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"References","children":[150,167]},{"title":"Enumerations","children":[108]},{"title":"Interfaces","children":[146,143,136,134,139]},{"title":"Type Aliases","children":[142]},{"title":"Functions","children":[188,180,202,155,176,151,184,193,197,168,159]}],"sources":[{"fileName":"fs.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/fs.ts#L1"}]},{"id":206,"name":"globalShortcut","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Register global shortcuts.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.globalShortcut`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.globalShortcut`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.globalshortcut) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"globalShortcut\": {\n \"all\": true // enable all global shortcut APIs\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security."}]},"children":[{"id":207,"name":"ShortcutHandler","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"globalShortcut.ts","line":29,"character":12,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/globalShortcut.ts#L29"}],"type":{"type":"reflection","declaration":{"id":208,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"globalShortcut.ts","line":29,"character":30,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/globalShortcut.ts#L29"}],"signatures":[{"id":209,"name":"__type","variant":"signature","kind":4096,"flags":{},"parameters":[{"id":210,"name":"shortcut","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"intrinsic","name":"void"}}]}}},{"id":219,"name":"isRegistered","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"globalShortcut.ts","line":101,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/globalShortcut.ts#L101"}],"signatures":[{"id":220,"name":"isRegistered","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Determines whether the given shortcut is registered by this application or not."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { isRegistered } from '@tauri-apps/api/globalShortcut';\nconst isRegistered = await isRegistered('CommandOrControl+P');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"globalShortcut.ts","line":101,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/globalShortcut.ts#L101"}],"parameters":[{"id":221,"name":"shortcut","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Array of shortcut definitions, modifiers and key separated by \"+\" e.g. CmdOrControl+Q"}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":211,"name":"register","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"globalShortcut.ts","line":46,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/globalShortcut.ts#L46"}],"signatures":[{"id":212,"name":"register","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Register a global shortcut."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { register } from '@tauri-apps/api/globalShortcut';\nawait register('CommandOrControl+Shift+C', () => {\n console.log('Shortcut triggered');\n});\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"globalShortcut.ts","line":46,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/globalShortcut.ts#L46"}],"parameters":[{"id":213,"name":"shortcut","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Shortcut definition, modifiers and key separated by \"+\" e.g. CmdOrControl+Q"}]},"type":{"type":"intrinsic","name":"string"}},{"id":214,"name":"handler","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Shortcut handler callback - takes the triggered shortcut as argument"}]},"type":{"type":"reference","target":207,"name":"ShortcutHandler","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":215,"name":"registerAll","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"globalShortcut.ts","line":75,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/globalShortcut.ts#L75"}],"signatures":[{"id":216,"name":"registerAll","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Register a collection of global shortcuts."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { registerAll } from '@tauri-apps/api/globalShortcut';\nawait registerAll(['CommandOrControl+Shift+C', 'Ctrl+Alt+F12'], (shortcut) => {\n console.log(`Shortcut ${shortcut} triggered`);\n});\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"globalShortcut.ts","line":75,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/globalShortcut.ts#L75"}],"parameters":[{"id":217,"name":"shortcuts","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Array of shortcut definitions, modifiers and key separated by \"+\" e.g. CmdOrControl+Q"}]},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}},{"id":218,"name":"handler","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Shortcut handler callback - takes the triggered shortcut as argument"}]},"type":{"type":"reference","target":207,"name":"ShortcutHandler","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":222,"name":"unregister","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"globalShortcut.ts","line":123,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/globalShortcut.ts#L123"}],"signatures":[{"id":223,"name":"unregister","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Unregister a global shortcut."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { unregister } from '@tauri-apps/api/globalShortcut';\nawait unregister('CmdOrControl+Space');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"globalShortcut.ts","line":123,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/globalShortcut.ts#L123"}],"parameters":[{"id":224,"name":"shortcut","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"shortcut definition, modifiers and key separated by \"+\" e.g. CmdOrControl+Q"}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":225,"name":"unregisterAll","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"globalShortcut.ts","line":143,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/globalShortcut.ts#L143"}],"signatures":[{"id":226,"name":"unregisterAll","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Unregisters all shortcuts registered by the application."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { unregisterAll } from '@tauri-apps/api/globalShortcut';\nawait unregisterAll();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"globalShortcut.ts","line":143,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/globalShortcut.ts#L143"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Type Aliases","children":[207]},{"title":"Functions","children":[219,211,215,222,225]}],"sources":[{"fileName":"globalShortcut.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/globalShortcut.ts#L1"}]},{"id":227,"name":"http","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Access the HTTP client written in Rust.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.http`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be allowlisted on "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"http\": {\n \"all\": true, // enable all http APIs\n \"request\": true // enable HTTP request API\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security.\n\n## Security\n\nThis API has a scope configuration that forces you to restrict the URLs and paths that can be accessed using glob patterns.\n\nFor instance, this scope configuration only allows making HTTP requests to the GitHub API for the "},{"kind":"code","text":"`tauri-apps`"},{"kind":"text","text":" organization:\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"http\": {\n \"scope\": [\"https://api.github.com/repos/tauri-apps/*\"]\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nTrying to execute any API with a URL not configured on the scope results in a promise rejection due to denied access."}]},"children":[{"id":323,"name":"ResponseType","variant":"declaration","kind":8,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":326,"name":"Binary","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"http.ts","line":74,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L74"}],"type":{"type":"literal","value":3}},{"id":324,"name":"JSON","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"http.ts","line":72,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L72"}],"type":{"type":"literal","value":1}},{"id":325,"name":"Text","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"http.ts","line":73,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L73"}],"type":{"type":"literal","value":2}}],"groups":[{"title":"Enumeration Members","children":[326,324,325]}],"sources":[{"fileName":"http.ts","line":71,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L71"}]},{"id":254,"name":"Body","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"The body object to be used on POST and PUT requests."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":272,"name":"payload","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":95,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L95"}],"type":{"type":"intrinsic","name":"unknown"}},{"id":271,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":94,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L94"}],"type":{"type":"intrinsic","name":"string"}},{"id":264,"name":"bytes","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"http.ts","line":217,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L217"}],"signatures":[{"id":265,"name":"bytes","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a new byte array body."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Body } from \"@tauri-apps/api/http\"\nBody.bytes(new Uint8Array([1, 2, 3]));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The body object ready to be used on the POST and PUT requests."}]}]},"sources":[{"fileName":"http.ts","line":217,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L217"}],"parameters":[{"id":266,"name":"bytes","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The body byte array."}]},"type":{"type":"union","types":[{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es2015.iterable.d.ts","qualifiedName":"Iterable"},"typeArguments":[{"type":"intrinsic","name":"number"}],"name":"Iterable","package":"typescript"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"ArrayBuffer"},"name":"ArrayBuffer","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"ArrayLike"},"typeArguments":[{"type":"intrinsic","name":"number"}],"name":"ArrayLike","package":"typescript"}]}}],"type":{"type":"reference","target":254,"name":"Body","package":"@tauri-apps/api"}}]},{"id":255,"name":"form","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"http.ts","line":134,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L134"}],"signatures":[{"id":256,"name":"form","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a new form data body. The form data is an object where each key is the entry name,\nand the value is either a string or a file object.\n\nBy default it sets the "},{"kind":"code","text":"`application/x-www-form-urlencoded`"},{"kind":"text","text":" Content-Type header,\nbut you can set it to "},{"kind":"code","text":"`multipart/form-data`"},{"kind":"text","text":" if the Cargo feature "},{"kind":"code","text":"`http-multipart`"},{"kind":"text","text":" is enabled.\n\nNote that a file path must be allowed in the "},{"kind":"code","text":"`fs`"},{"kind":"text","text":" allowlist scope."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Body } from \"@tauri-apps/api/http\"\nconst body = Body.form({\n key: 'value',\n image: {\n file: '/path/to/file', // either a path or an array buffer of the file contents\n mime: 'image/jpeg', // optional\n fileName: 'image.jpg' // optional\n }\n});\n\n// alternatively, use a FormData:\nconst form = new FormData();\nform.append('key', 'value');\nform.append('image', file, 'image.png');\nconst formBody = Body.form(form);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The body object ready to be used on the POST and PUT requests."}]}]},"sources":[{"fileName":"http.ts","line":134,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L134"}],"parameters":[{"id":257,"name":"data","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The body data."}]},"type":{"type":"union","types":[{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"reference","target":234,"name":"Part","package":"@tauri-apps/api"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.dom.d.ts","qualifiedName":"FormData"},"name":"FormData","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/API/FormData"}]}}],"type":{"type":"reference","target":254,"name":"Body","package":"@tauri-apps/api"}}]},{"id":258,"name":"json","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"http.ts","line":185,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L185"}],"signatures":[{"id":259,"name":"json","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a new JSON body."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Body } from \"@tauri-apps/api/http\"\nBody.json({\n registered: true,\n name: 'tauri'\n});\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The body object ready to be used on the POST and PUT requests."}]}]},"sources":[{"fileName":"http.ts","line":185,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L185"}],"parameters":[{"id":260,"name":"data","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The body JSON object."}]},"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"any"},{"type":"intrinsic","name":"any"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}}],"type":{"type":"reference","target":254,"name":"Body","package":"@tauri-apps/api"}}]},{"id":261,"name":"text","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"http.ts","line":201,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L201"}],"signatures":[{"id":262,"name":"text","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a new UTF-8 string body."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Body } from \"@tauri-apps/api/http\"\nBody.text('The body content as a string');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The body object ready to be used on the POST and PUT requests."}]}]},"sources":[{"fileName":"http.ts","line":201,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L201"}],"parameters":[{"id":263,"name":"value","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The body string."}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":254,"name":"Body","package":"@tauri-apps/api"}}]}],"groups":[{"title":"Properties","children":[272,271]},{"title":"Methods","children":[264,255,258,261]}],"sources":[{"fileName":"http.ts","line":93,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L93"}]},{"id":273,"name":"Client","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":277,"name":"id","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":303,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L303"}],"type":{"type":"intrinsic","name":"number"}},{"id":306,"name":"delete","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"http.ts","line":484,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L484"}],"signatures":[{"id":307,"name":"delete","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Makes a DELETE request."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient } from '@tauri-apps/api/http';\nconst client = await getClient();\nconst response = await client.delete('http://localhost:3003/users/1');\n```"}]}]},"sources":[{"fileName":"http.ts","line":484,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L484"}],"typeParameter":[{"id":308,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":309,"name":"url","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":310,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":244,"name":"RequestOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":311,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Response","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":278,"name":"drop","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"http.ts","line":318,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L318"}],"signatures":[{"id":279,"name":"drop","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Drops the client instance."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient } from '@tauri-apps/api/http';\nconst client = await getClient();\nawait client.drop();\n```"}]}]},"sources":[{"fileName":"http.ts","line":318,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L318"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":284,"name":"get","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"http.ts","line":389,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L389"}],"signatures":[{"id":285,"name":"get","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Makes a GET request."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient, ResponseType } from '@tauri-apps/api/http';\nconst client = await getClient();\nconst response = await client.get('http://localhost:3003/users', {\n timeout: 30,\n // the expected response type\n responseType: ResponseType.JSON\n});\n```"}]}]},"sources":[{"fileName":"http.ts","line":389,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L389"}],"typeParameter":[{"id":286,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":287,"name":"url","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":288,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":244,"name":"RequestOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":311,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Response","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":301,"name":"patch","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"http.ts","line":467,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L467"}],"signatures":[{"id":302,"name":"patch","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Makes a PATCH request."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient, Body } from '@tauri-apps/api/http';\nconst client = await getClient();\nconst response = await client.patch('http://localhost:3003/users/1', {\n body: Body.json({ email: 'contact@tauri.app' })\n});\n```"}]}]},"sources":[{"fileName":"http.ts","line":467,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L467"}],"typeParameter":[{"id":303,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":304,"name":"url","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":305,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":244,"name":"RequestOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":311,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Response","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":289,"name":"post","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"http.ts","line":413,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L413"}],"signatures":[{"id":290,"name":"post","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Makes a POST request."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient, Body, ResponseType } from '@tauri-apps/api/http';\nconst client = await getClient();\nconst response = await client.post('http://localhost:3003/users', {\n body: Body.json({\n name: 'tauri',\n password: 'awesome'\n }),\n // in this case the server returns a simple string\n responseType: ResponseType.Text,\n});\n```"}]}]},"sources":[{"fileName":"http.ts","line":413,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L413"}],"typeParameter":[{"id":291,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":292,"name":"url","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":293,"name":"body","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":254,"name":"Body","package":"@tauri-apps/api"}},{"id":294,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":244,"name":"RequestOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":311,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Response","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":295,"name":"put","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"http.ts","line":443,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L443"}],"signatures":[{"id":296,"name":"put","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Makes a PUT request."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient, Body } from '@tauri-apps/api/http';\nconst client = await getClient();\nconst response = await client.put('http://localhost:3003/users/1', {\n body: Body.form({\n file: {\n file: '/home/tauri/avatar.png',\n mime: 'image/png',\n fileName: 'avatar.png'\n }\n })\n});\n```"}]}]},"sources":[{"fileName":"http.ts","line":443,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L443"}],"typeParameter":[{"id":297,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":298,"name":"url","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":299,"name":"body","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":254,"name":"Body","package":"@tauri-apps/api"}},{"id":300,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":244,"name":"RequestOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":311,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Response","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":280,"name":"request","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"http.ts","line":340,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L340"}],"signatures":[{"id":281,"name":"request","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Makes an HTTP request."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient } from '@tauri-apps/api/http';\nconst client = await getClient();\nconst response = await client.request({\n method: 'GET',\n url: 'http://localhost:3003/users',\n});\n```"}]}]},"sources":[{"fileName":"http.ts","line":340,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L340"}],"typeParameter":[{"id":282,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":283,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":236,"name":"HttpOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":311,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Response","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Properties","children":[277]},{"title":"Methods","children":[306,278,284,301,289,295,280]}],"sources":[{"fileName":"http.ts","line":302,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L302"}]},{"id":311,"name":"Response","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"Response object."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":321,"name":"data","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The response data."}]},"sources":[{"fileName":"http.ts","line":286,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L286"}],"type":{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}},{"id":319,"name":"headers","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The response headers."}]},"sources":[{"fileName":"http.ts","line":282,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L282"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"string"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}},{"id":318,"name":"ok","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"A boolean indicating whether the response was successful (status in the range 200–299) or not."}]},"sources":[{"fileName":"http.ts","line":280,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L280"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":320,"name":"rawHeaders","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The response raw headers."}]},"sources":[{"fileName":"http.ts","line":284,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L284"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"array","elementType":{"type":"intrinsic","name":"string"}}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}},{"id":317,"name":"status","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The response status code."}]},"sources":[{"fileName":"http.ts","line":278,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L278"}],"type":{"type":"intrinsic","name":"number"}},{"id":316,"name":"url","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The request URL."}]},"sources":[{"fileName":"http.ts","line":276,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L276"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[321,319,318,320,317,316]}],"sources":[{"fileName":"http.ts","line":274,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L274"}],"typeParameters":[{"id":322,"name":"T","variant":"typeParam","kind":131072,"flags":{}}]},{"id":231,"name":"ClientOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":233,"name":"connectTimeout","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":65,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L65"}],"type":{"type":"union","types":[{"type":"intrinsic","name":"number"},{"type":"reference","target":228,"name":"Duration","package":"@tauri-apps/api"}]}},{"id":232,"name":"maxRedirections","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Defines the maximum number of redirects the client should follow.\nIf set to 0, no redirects will be followed."}]},"sources":[{"fileName":"http.ts","line":64,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L64"}],"type":{"type":"intrinsic","name":"number"}}],"groups":[{"title":"Properties","children":[233,232]}],"sources":[{"fileName":"http.ts","line":59,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L59"}]},{"id":228,"name":"Duration","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":230,"name":"nanos","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":53,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L53"}],"type":{"type":"intrinsic","name":"number"}},{"id":229,"name":"secs","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":52,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L52"}],"type":{"type":"intrinsic","name":"number"}}],"groups":[{"title":"Properties","children":[230,229]}],"sources":[{"fileName":"http.ts","line":51,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L51"}]},{"id":327,"name":"FilePart","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":328,"name":"file","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":81,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L81"}],"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}]}},{"id":330,"name":"fileName","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":83,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L83"}],"type":{"type":"intrinsic","name":"string"}},{"id":329,"name":"mime","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":82,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L82"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[328,330,329]}],"sources":[{"fileName":"http.ts","line":80,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L80"}],"typeParameters":[{"id":331,"name":"T","variant":"typeParam","kind":131072,"flags":{}}]},{"id":236,"name":"HttpOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Options object sent to the backend."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":241,"name":"body","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":250,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L250"}],"type":{"type":"reference","target":254,"name":"Body","package":"@tauri-apps/api"}},{"id":239,"name":"headers","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":248,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L248"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"any"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}},{"id":237,"name":"method","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":246,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L246"}],"type":{"type":"reference","target":235,"name":"HttpVerb","package":"@tauri-apps/api"}},{"id":240,"name":"query","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":249,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L249"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"any"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}},{"id":243,"name":"responseType","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":252,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L252"}],"type":{"type":"reference","target":323,"name":"ResponseType","package":"@tauri-apps/api"}},{"id":242,"name":"timeout","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":251,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L251"}],"type":{"type":"union","types":[{"type":"intrinsic","name":"number"},{"type":"reference","target":228,"name":"Duration","package":"@tauri-apps/api"}]}},{"id":238,"name":"url","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":247,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L247"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[241,239,237,240,243,242,238]}],"sources":[{"fileName":"http.ts","line":245,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L245"}]},{"id":245,"name":"FetchOptions","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[{"kind":"text","text":"Options for the "},{"kind":"code","text":"`fetch`"},{"kind":"text","text":" API."}]},"sources":[{"fileName":"http.ts","line":258,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L258"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Omit"},"typeArguments":[{"type":"reference","target":236,"name":"HttpOptions","package":"@tauri-apps/api"},{"type":"literal","value":"url"}],"name":"Omit","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#omittype-keys"}},{"id":235,"name":"HttpVerb","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[{"kind":"text","text":"The request HTTP verb."}]},"sources":[{"fileName":"http.ts","line":229,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L229"}],"type":{"type":"union","types":[{"type":"literal","value":"GET"},{"type":"literal","value":"POST"},{"type":"literal","value":"PUT"},{"type":"literal","value":"DELETE"},{"type":"literal","value":"PATCH"},{"type":"literal","value":"HEAD"},{"type":"literal","value":"OPTIONS"},{"type":"literal","value":"CONNECT"},{"type":"literal","value":"TRACE"}]}},{"id":234,"name":"Part","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"http.ts","line":86,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L86"}],"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Uint8Array"},"name":"Uint8Array","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array"},{"type":"reference","target":327,"typeArguments":[{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Uint8Array"},"name":"Uint8Array","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array"}],"name":"FilePart","package":"@tauri-apps/api"}]}},{"id":244,"name":"RequestOptions","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[{"kind":"text","text":"Request options."}]},"sources":[{"fileName":"http.ts","line":256,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L256"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Omit"},"typeArguments":[{"type":"reference","target":236,"name":"HttpOptions","package":"@tauri-apps/api"},{"type":"union","types":[{"type":"literal","value":"method"},{"type":"literal","value":"url"}]}],"name":"Omit","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#omittype-keys"}},{"id":249,"name":"fetch","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"http.ts","line":531,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L531"}],"signatures":[{"id":250,"name":"fetch","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Perform an HTTP request using the default client."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { fetch } from '@tauri-apps/api/http';\nconst response = await fetch('http://localhost:3003/users/2', {\n method: 'GET',\n timeout: 30,\n});\n```"}]}]},"sources":[{"fileName":"http.ts","line":531,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L531"}],"typeParameter":[{"id":251,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":252,"name":"url","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":253,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":245,"name":"FetchOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":311,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Response","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":246,"name":"getClient","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"http.ts","line":507,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L507"}],"signatures":[{"id":247,"name":"getClient","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a new client using the specified options."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient } from '@tauri-apps/api/http';\nconst client = await getClient();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to the client instance."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"http.ts","line":507,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L507"}],"parameters":[{"id":248,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Client configuration."}]},"type":{"type":"reference","target":231,"name":"ClientOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":273,"name":"Client","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Enumerations","children":[323]},{"title":"Classes","children":[254,273,311]},{"title":"Interfaces","children":[231,228,327,236]},{"title":"Type Aliases","children":[245,235,234,244]},{"title":"Functions","children":[249,246]}],"sources":[{"fileName":"http.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/http.ts#L1"}]},{"id":332,"name":"mocks","variant":"declaration","kind":2,"flags":{},"children":[{"id":344,"name":"clearMocks","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"mocks.ts","line":171,"character":16,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/mocks.ts#L171"}],"signatures":[{"id":345,"name":"clearMocks","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Clears mocked functions/data injected by the other functions in this module.\nWhen using a test runner that doesn't provide a fresh window object for each test, calling this function will reset tauri specific properties.\n\n# Example\n\n"},{"kind":"code","text":"```js\nimport { mockWindows, clearMocks } from \"@tauri-apps/api/mocks\"\n\nafterEach(() => {\n clearMocks()\n})\n\ntest(\"mocked windows\", () => {\n mockWindows(\"main\", \"second\", \"third\");\n\n expect(window).toHaveProperty(\"__TAURI_METADATA__\")\n})\n\ntest(\"no mocked windows\", () => {\n expect(window).not.toHaveProperty(\"__TAURI_METADATA__\")\n})\n```"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"mocks.ts","line":171,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/mocks.ts#L171"}],"type":{"type":"intrinsic","name":"void"}}]},{"id":333,"name":"mockIPC","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"mocks.ts","line":65,"character":16,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/mocks.ts#L65"}],"signatures":[{"id":334,"name":"mockIPC","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Intercepts all IPC requests with the given mock handler.\n\nThis function can be used when testing tauri frontend applications or when running the frontend in a Node.js context during static site generation.\n\n# Examples\n\nTesting setup using vitest:\n"},{"kind":"code","text":"```js\nimport { mockIPC, clearMocks } from \"@tauri-apps/api/mocks\"\nimport { invoke } from \"@tauri-apps/api/tauri\"\n\nafterEach(() => {\n clearMocks()\n})\n\ntest(\"mocked command\", () => {\n mockIPC((cmd, args) => {\n switch (cmd) {\n case \"add\":\n return (args.a as number) + (args.b as number);\n default:\n break;\n }\n });\n\n expect(invoke('add', { a: 12, b: 15 })).resolves.toBe(27);\n})\n```"},{"kind":"text","text":"\n\nThe callback function can also return a Promise:\n"},{"kind":"code","text":"```js\nimport { mockIPC, clearMocks } from \"@tauri-apps/api/mocks\"\nimport { invoke } from \"@tauri-apps/api/tauri\"\n\nafterEach(() => {\n clearMocks()\n})\n\ntest(\"mocked command\", () => {\n mockIPC((cmd, args) => {\n if(cmd === \"get_data\") {\n return fetch(\"https://example.com/data.json\")\n .then((response) => response.json())\n }\n });\n\n expect(invoke('get_data')).resolves.toBe({ foo: 'bar' });\n})\n```"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"mocks.ts","line":65,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/mocks.ts#L65"}],"parameters":[{"id":335,"name":"cb","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":336,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"mocks.ts","line":66,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/mocks.ts#L66"}],"signatures":[{"id":337,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"mocks.ts","line":66,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/mocks.ts#L66"}],"parameters":[{"id":338,"name":"cmd","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":339,"name":"args","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"unknown"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}}],"type":{"type":"intrinsic","name":"any"}}]}}}],"type":{"type":"intrinsic","name":"void"}}]},{"id":340,"name":"mockWindows","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"mocks.ts","line":135,"character":16,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/mocks.ts#L135"}],"signatures":[{"id":341,"name":"mockWindows","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Mocks one or many window labels.\nIn non-tauri context it is required to call this function *before* using the "},{"kind":"code","text":"`@tauri-apps/api/window`"},{"kind":"text","text":" module.\n\nThis function only mocks the *presence* of windows,\nwindow properties (e.g. width and height) can be mocked like regular IPC calls using the "},{"kind":"code","text":"`mockIPC`"},{"kind":"text","text":" function.\n\n# Examples\n\n"},{"kind":"code","text":"```js\nimport { mockWindows } from \"@tauri-apps/api/mocks\";\nimport { getCurrent } from \"@tauri-apps/api/window\";\n\nmockWindows(\"main\", \"second\", \"third\");\n\nconst win = getCurrent();\n\nwin.label // \"main\"\n```"},{"kind":"text","text":"\n\n"},{"kind":"code","text":"```js\nimport { mockWindows } from \"@tauri-apps/api/mocks\";\n\nmockWindows(\"main\", \"second\", \"third\");\n\nmockIPC((cmd, args) => {\n if (cmd === \"tauri\") {\n if (\n args?.__tauriModule === \"Window\" &&\n args?.message?.cmd === \"manage\" &&\n args?.message?.data?.cmd?.type === \"close\"\n ) {\n console.log('closing window!');\n }\n }\n});\n\nconst { getCurrent } = await import(\"@tauri-apps/api/window\");\n\nconst win = getCurrent();\nawait win.close(); // this will cause the mocked IPC handler to log to the console.\n```"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"mocks.ts","line":135,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/mocks.ts#L135"}],"parameters":[{"id":342,"name":"current","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Label of window this JavaScript context is running in."}]},"type":{"type":"intrinsic","name":"string"}},{"id":343,"name":"additionalWindows","variant":"param","kind":32768,"flags":{"isRest":true},"comment":{"summary":[{"kind":"text","text":"Label of additional windows the app has."}]},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}}],"type":{"type":"intrinsic","name":"void"}}]}],"groups":[{"title":"Functions","children":[344,333,340]}],"sources":[{"fileName":"mocks.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/mocks.ts#L1"}]},{"id":346,"name":"notification","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Send toast notifications (brief auto-expiring OS window element) to your user.\nCan also be used with the Notification Web API.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.notification`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.notification`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.notification) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"notification\": {\n \"all\": true // enable all notification APIs\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security."}]},"children":[{"id":347,"name":"Options","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Options to send a notification."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":349,"name":"body","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Optional notification body."}]},"sources":[{"fileName":"notification.ts","line":38,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/notification.ts#L38"}],"type":{"type":"intrinsic","name":"string"}},{"id":350,"name":"icon","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Optional notification icon."}]},"sources":[{"fileName":"notification.ts","line":40,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/notification.ts#L40"}],"type":{"type":"intrinsic","name":"string"}},{"id":348,"name":"title","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Notification title."}]},"sources":[{"fileName":"notification.ts","line":36,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/notification.ts#L36"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[349,350,348]}],"sources":[{"fileName":"notification.ts","line":34,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/notification.ts#L34"}]},{"id":351,"name":"Permission","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[{"kind":"text","text":"Possible permission values."}]},"sources":[{"fileName":"notification.ts","line":44,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/notification.ts#L44"}],"type":{"type":"union","types":[{"type":"literal","value":"granted"},{"type":"literal","value":"denied"},{"type":"literal","value":"default"}]}},{"id":357,"name":"isPermissionGranted","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"notification.ts","line":56,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/notification.ts#L56"}],"signatures":[{"id":358,"name":"isPermissionGranted","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Checks if the permission to send notifications is granted."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { isPermissionGranted } from '@tauri-apps/api/notification';\nconst permissionGranted = await isPermissionGranted();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"notification.ts","line":56,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/notification.ts#L56"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":355,"name":"requestPermission","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"notification.ts","line":84,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/notification.ts#L84"}],"signatures":[{"id":356,"name":"requestPermission","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Requests the permission to send notifications."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { isPermissionGranted, requestPermission } from '@tauri-apps/api/notification';\nlet permissionGranted = await isPermissionGranted();\nif (!permissionGranted) {\n const permission = await requestPermission();\n permissionGranted = permission === 'granted';\n}\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to whether the user granted the permission or not."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"notification.ts","line":84,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/notification.ts#L84"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":351,"name":"Permission","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":352,"name":"sendNotification","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"notification.ts","line":106,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/notification.ts#L106"}],"signatures":[{"id":353,"name":"sendNotification","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sends a notification to the user."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { isPermissionGranted, requestPermission, sendNotification } from '@tauri-apps/api/notification';\nlet permissionGranted = await isPermissionGranted();\nif (!permissionGranted) {\n const permission = await requestPermission();\n permissionGranted = permission === 'granted';\n}\nif (permissionGranted) {\n sendNotification('Tauri is awesome!');\n sendNotification({ title: 'TAURI', body: 'Tauri is awesome!' });\n}\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"notification.ts","line":106,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/notification.ts#L106"}],"parameters":[{"id":354,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":347,"name":"Options","package":"@tauri-apps/api"}]}}],"type":{"type":"intrinsic","name":"void"}}]}],"groups":[{"title":"Interfaces","children":[347]},{"title":"Type Aliases","children":[351]},{"title":"Functions","children":[357,355,352]}],"sources":[{"fileName":"notification.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/notification.ts#L1"}]},{"id":359,"name":"os","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Provides operating system-related utility methods and properties.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.os`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.os`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.os) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"os\": {\n \"all\": true, // enable all Os APIs\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security."}]},"children":[{"id":375,"name":"Arch","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"os.ts","line":43,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/os.ts#L43"}],"type":{"type":"union","types":[{"type":"literal","value":"x86"},{"type":"literal","value":"x86_64"},{"type":"literal","value":"arm"},{"type":"literal","value":"aarch64"},{"type":"literal","value":"mips"},{"type":"literal","value":"mips64"},{"type":"literal","value":"powerpc"},{"type":"literal","value":"powerpc64"},{"type":"literal","value":"riscv64"},{"type":"literal","value":"s390x"},{"type":"literal","value":"sparc64"}]}},{"id":374,"name":"OsType","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"os.ts","line":41,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/os.ts#L41"}],"type":{"type":"union","types":[{"type":"literal","value":"Linux"},{"type":"literal","value":"Darwin"},{"type":"literal","value":"Windows_NT"}]}},{"id":373,"name":"Platform","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"os.ts","line":29,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/os.ts#L29"}],"type":{"type":"union","types":[{"type":"literal","value":"linux"},{"type":"literal","value":"darwin"},{"type":"literal","value":"ios"},{"type":"literal","value":"freebsd"},{"type":"literal","value":"dragonfly"},{"type":"literal","value":"netbsd"},{"type":"literal","value":"openbsd"},{"type":"literal","value":"solaris"},{"type":"literal","value":"android"},{"type":"literal","value":"win32"}]}},{"id":360,"name":"EOL","variant":"declaration","kind":32,"flags":{"isConst":true},"comment":{"summary":[{"kind":"text","text":"The operating system-specific end-of-line marker.\n- "},{"kind":"code","text":"`\\n`"},{"kind":"text","text":" on POSIX\n- "},{"kind":"code","text":"`\\r\\n`"},{"kind":"text","text":" on Windows"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"os.ts","line":63,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/os.ts#L63"}],"type":{"type":"union","types":[{"type":"literal","value":"\n"},{"type":"literal","value":"\r\n"}]},"defaultValue":"..."},{"id":367,"name":"arch","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"os.ts","line":135,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/os.ts#L135"}],"signatures":[{"id":368,"name":"arch","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the operating system CPU architecture for which the tauri app was compiled.\nPossible values are "},{"kind":"code","text":"`'x86'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'x86_64'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'arm'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'aarch64'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'mips'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'mips64'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'powerpc'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'powerpc64'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'riscv64'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'s390x'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'sparc64'`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { arch } from '@tauri-apps/api/os';\nconst archName = await arch();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"os.ts","line":135,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/os.ts#L135"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":375,"name":"Arch","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":371,"name":"locale","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"os.ts","line":176,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/os.ts#L176"}],"signatures":[{"id":372,"name":"locale","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns a String with a "},{"kind":"code","text":"`BCP-47`"},{"kind":"text","text":" language tag inside. If the locale couldn’t be obtained, "},{"kind":"code","text":"`null`"},{"kind":"text","text":" is returned instead."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { locale } from '@tauri-apps/api/os';\nconst locale = await locale();\nif (locale) {\n // use the locale string here\n}\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.3.0"}]}]},"sources":[{"fileName":"os.ts","line":176,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/os.ts#L176"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"literal","value":null}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":361,"name":"platform","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"os.ts","line":77,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/os.ts#L77"}],"signatures":[{"id":362,"name":"platform","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns a string identifying the operating system platform.\nThe value is set at compile time. Possible values are "},{"kind":"code","text":"`'linux'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'darwin'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'ios'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'freebsd'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'dragonfly'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'netbsd'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'openbsd'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'solaris'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'android'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'win32'`"}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { platform } from '@tauri-apps/api/os';\nconst platformName = await platform();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"os.ts","line":77,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/os.ts#L77"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":373,"name":"Platform","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":369,"name":"tempdir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"os.ts","line":154,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/os.ts#L154"}],"signatures":[{"id":370,"name":"tempdir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the operating system's default directory for temporary files as a string."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { tempdir } from '@tauri-apps/api/os';\nconst tempdirPath = await tempdir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"os.ts","line":154,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/os.ts#L154"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":365,"name":"type","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"os.ts","line":115,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/os.ts#L115"}],"signatures":[{"id":366,"name":"type","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"`'Linux'`"},{"kind":"text","text":" on Linux, "},{"kind":"code","text":"`'Darwin'`"},{"kind":"text","text":" on macOS, and "},{"kind":"code","text":"`'Windows_NT'`"},{"kind":"text","text":" on Windows."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { type } from '@tauri-apps/api/os';\nconst osType = await type();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"os.ts","line":115,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/os.ts#L115"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":374,"name":"OsType","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":363,"name":"version","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"os.ts","line":96,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/os.ts#L96"}],"signatures":[{"id":364,"name":"version","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns a string identifying the kernel version."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { version } from '@tauri-apps/api/os';\nconst osVersion = await version();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"os.ts","line":96,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/os.ts#L96"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Type Aliases","children":[375,374,373]},{"title":"Variables","children":[360]},{"title":"Functions","children":[367,371,361,369,365,363]}],"sources":[{"fileName":"os.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/os.ts#L1"}]},{"id":376,"name":"path","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"The path module provides utilities for working with file and directory paths.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.path`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.path`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.path) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"path\": {\n \"all\": true, // enable all Path APIs\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security."}]},"children":[{"id":1174,"name":"BaseDirectory","variant":"reference","kind":8388608,"flags":{},"sources":[{"fileName":"path.ts","line":839,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L839"}],"target":108},{"id":429,"name":"delimiter","variant":"declaration","kind":32,"flags":{"isConst":true},"comment":{"summary":[{"kind":"text","text":"Provides the platform-specific path segment delimiter:\n- "},{"kind":"code","text":"`;`"},{"kind":"text","text":" on Windows\n- "},{"kind":"code","text":"`:`"},{"kind":"text","text":" on POSIX"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":660,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L660"}],"type":{"type":"union","types":[{"type":"literal","value":";"},{"type":"literal","value":":"}]},"defaultValue":"..."},{"id":428,"name":"sep","variant":"declaration","kind":32,"flags":{"isConst":true},"comment":{"summary":[{"kind":"text","text":"Provides the platform-specific path segment separator:\n- "},{"kind":"code","text":"`\\` on Windows\n- `"},{"kind":"text","text":"/` on POSIX"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":651,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L651"}],"type":{"type":"union","types":[{"type":"literal","value":"\\"},{"type":"literal","value":"/"}]},"defaultValue":"..."},{"id":385,"name":"appCacheDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":117,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L117"}],"signatures":[{"id":386,"name":"appCacheDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app's cache files.\nResolves to "},{"kind":"code","text":"`${cacheDir}/${bundleIdentifier}`"},{"kind":"text","text":", where "},{"kind":"code","text":"`bundleIdentifier`"},{"kind":"text","text":" is the value ["},{"kind":"code","text":"`tauri.bundle.identifier`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appCacheDir } from '@tauri-apps/api/path';\nconst appCacheDirPath = await appCacheDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"path.ts","line":117,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L117"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":379,"name":"appConfigDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":51,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L51"}],"signatures":[{"id":380,"name":"appConfigDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app's config files.\nResolves to "},{"kind":"code","text":"`${configDir}/${bundleIdentifier}`"},{"kind":"text","text":", where "},{"kind":"code","text":"`bundleIdentifier`"},{"kind":"text","text":" is the value ["},{"kind":"code","text":"`tauri.bundle.identifier`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appConfigDir } from '@tauri-apps/api/path';\nconst appConfigDirPath = await appConfigDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"path.ts","line":51,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L51"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":381,"name":"appDataDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":73,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L73"}],"signatures":[{"id":382,"name":"appDataDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app's data files.\nResolves to "},{"kind":"code","text":"`${dataDir}/${bundleIdentifier}`"},{"kind":"text","text":", where "},{"kind":"code","text":"`bundleIdentifier`"},{"kind":"text","text":" is the value ["},{"kind":"code","text":"`tauri.bundle.identifier`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appDataDir } from '@tauri-apps/api/path';\nconst appDataDirPath = await appDataDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"path.ts","line":73,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L73"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":377,"name":"appDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":36,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L36"}],"signatures":[{"id":378,"name":"appDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app config files."}],"blockTags":[{"tag":"@deprecated","content":[{"kind":"text","text":"since 1.2.0: Will be removed in 2.0.0. Use "},{"kind":"inline-tag","tag":"@link","text":"appConfigDir","target":379,"tsLinkText":""},{"kind":"text","text":" or "},{"kind":"inline-tag","tag":"@link","text":"appDataDir","target":381,"tsLinkText":""},{"kind":"text","text":" instead."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":36,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L36"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":383,"name":"appLocalDataDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":95,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L95"}],"signatures":[{"id":384,"name":"appLocalDataDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app's local data files.\nResolves to "},{"kind":"code","text":"`${localDataDir}/${bundleIdentifier}`"},{"kind":"text","text":", where "},{"kind":"code","text":"`bundleIdentifier`"},{"kind":"text","text":" is the value ["},{"kind":"code","text":"`tauri.bundle.identifier`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appLocalDataDir } from '@tauri-apps/api/path';\nconst appLocalDataDirPath = await appLocalDataDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"path.ts","line":95,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L95"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":387,"name":"appLogDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":633,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L633"}],"signatures":[{"id":388,"name":"appLogDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app's log files.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`${configDir}/${bundleIdentifier}/logs`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`${homeDir}/Library/Logs/{bundleIdentifier}`"},{"kind":"text","text":"\n- **Windows:** Resolves to "},{"kind":"code","text":"`${configDir}/${bundleIdentifier}/logs`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appLogDir } from '@tauri-apps/api/path';\nconst appLogDirPath = await appLogDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"path.ts","line":633,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L633"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":389,"name":"audioDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":144,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L144"}],"signatures":[{"id":390,"name":"audioDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's audio directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_MUSIC_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Music`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Music}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { audioDir } from '@tauri-apps/api/path';\nconst audioDirPath = await audioDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":144,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L144"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":445,"name":"basename","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":782,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L782"}],"signatures":[{"id":446,"name":"basename","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the last portion of a "},{"kind":"code","text":"`path`"},{"kind":"text","text":". Trailing directory separators are ignored."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { basename, resolveResource } from '@tauri-apps/api/path';\nconst resourcePath = await resolveResource('app.conf');\nconst base = await basename(resourcePath);\nassert(base === 'app.conf');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":782,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L782"}],"parameters":[{"id":447,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":448,"name":"ext","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"An optional file extension to be removed from the returned path."}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":391,"name":"cacheDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":171,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L171"}],"signatures":[{"id":392,"name":"cacheDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's cache directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_CACHE_HOME`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.cache`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Library/Caches`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_LocalAppData}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { cacheDir } from '@tauri-apps/api/path';\nconst cacheDirPath = await cacheDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":171,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L171"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":393,"name":"configDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":198,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L198"}],"signatures":[{"id":394,"name":"configDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's config directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_CONFIG_HOME`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.config`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Library/Application Support`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_RoamingAppData}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { configDir } from '@tauri-apps/api/path';\nconst configDirPath = await configDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":198,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L198"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":395,"name":"dataDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":225,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L225"}],"signatures":[{"id":396,"name":"dataDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's data directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_DATA_HOME`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.local/share`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Library/Application Support`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_RoamingAppData}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { dataDir } from '@tauri-apps/api/path';\nconst dataDirPath = await dataDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":225,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L225"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":397,"name":"desktopDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":252,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L252"}],"signatures":[{"id":398,"name":"desktopDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's desktop directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_DESKTOP_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Desktop`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Desktop}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { desktopDir } from '@tauri-apps/api/path';\nconst desktopPath = await desktopDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":252,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L252"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":439,"name":"dirname","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":736,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L736"}],"signatures":[{"id":440,"name":"dirname","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the directory name of a "},{"kind":"code","text":"`path`"},{"kind":"text","text":". Trailing directory separators are ignored."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { dirname, appDataDir } from '@tauri-apps/api/path';\nconst appDataDirPath = await appDataDir();\nconst dir = await dirname(appDataDirPath);\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":736,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L736"}],"parameters":[{"id":441,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":399,"name":"documentDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":279,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L279"}],"signatures":[{"id":400,"name":"documentDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's document directory."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { documentDir } from '@tauri-apps/api/path';\nconst documentDirPath = await documentDir();\n```"},{"kind":"text","text":"\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_DOCUMENTS_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Documents`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Documents}`"},{"kind":"text","text":"."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":279,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L279"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":401,"name":"downloadDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":306,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L306"}],"signatures":[{"id":402,"name":"downloadDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's download directory.\n\n#### Platform-specific\n\n- **Linux**: Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_DOWNLOAD_DIR`"},{"kind":"text","text":".\n- **macOS**: Resolves to "},{"kind":"code","text":"`$HOME/Downloads`"},{"kind":"text","text":".\n- **Windows**: Resolves to "},{"kind":"code","text":"`{FOLDERID_Downloads}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { downloadDir } from '@tauri-apps/api/path';\nconst downloadDirPath = await downloadDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":306,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L306"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":403,"name":"executableDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":333,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L333"}],"signatures":[{"id":404,"name":"executableDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's executable directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_BIN_HOME/../bin`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$XDG_DATA_HOME/../bin`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.local/bin`"},{"kind":"text","text":".\n- **macOS:** Not supported.\n- **Windows:** Not supported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { executableDir } from '@tauri-apps/api/path';\nconst executableDirPath = await executableDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":333,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L333"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":442,"name":"extname","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":758,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L758"}],"signatures":[{"id":443,"name":"extname","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the extension of the "},{"kind":"code","text":"`path`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { extname, resolveResource } from '@tauri-apps/api/path';\nconst resourcePath = await resolveResource('app.conf');\nconst ext = await extname(resourcePath);\nassert(ext === 'conf');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":758,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L758"}],"parameters":[{"id":444,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":405,"name":"fontDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":360,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L360"}],"signatures":[{"id":406,"name":"fontDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's font directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_DATA_HOME/fonts`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.local/share/fonts`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Library/Fonts`"},{"kind":"text","text":".\n- **Windows:** Not supported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { fontDir } from '@tauri-apps/api/path';\nconst fontDirPath = await fontDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":360,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L360"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":407,"name":"homeDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":387,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L387"}],"signatures":[{"id":408,"name":"homeDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's home directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$HOME`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Profile}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { homeDir } from '@tauri-apps/api/path';\nconst homeDirPath = await homeDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":387,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L387"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":449,"name":"isAbsolute","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":803,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L803"}],"signatures":[{"id":450,"name":"isAbsolute","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns whether the path is absolute or not."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { isAbsolute } from '@tauri-apps/api/path';\nassert(await isAbsolute('/home/tauri'));\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":803,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L803"}],"parameters":[{"id":451,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":436,"name":"join","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":715,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L715"}],"signatures":[{"id":437,"name":"join","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Joins all given "},{"kind":"code","text":"`path`"},{"kind":"text","text":" segments together using the platform-specific separator as a delimiter, then normalizes the resulting path."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { join, appDataDir } from '@tauri-apps/api/path';\nconst appDataDirPath = await appDataDir();\nconst path = await join(appDataDirPath, 'users', 'tauri', 'avatar.png');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":715,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L715"}],"parameters":[{"id":438,"name":"paths","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":409,"name":"localDataDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":414,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L414"}],"signatures":[{"id":410,"name":"localDataDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's local data directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_DATA_HOME`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.local/share`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Library/Application Support`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_LocalAppData}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { localDataDir } from '@tauri-apps/api/path';\nconst localDataDirPath = await localDataDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":414,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L414"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":426,"name":"logDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":613,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L613"}],"signatures":[{"id":427,"name":"logDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested log directory."}],"blockTags":[{"tag":"@deprecated","content":[{"kind":"text","text":"since 1.2.0: Will be removed in 2.0.0. Use "},{"kind":"inline-tag","tag":"@link","text":"appLogDir","target":387,"tsLinkText":""},{"kind":"text","text":" instead."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":613,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L613"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":433,"name":"normalize","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":694,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L694"}],"signatures":[{"id":434,"name":"normalize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Normalizes the given "},{"kind":"code","text":"`path`"},{"kind":"text","text":", resolving "},{"kind":"code","text":"`'..'`"},{"kind":"text","text":" and "},{"kind":"code","text":"`'.'`"},{"kind":"text","text":" segments and resolve symbolic links."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { normalize, appDataDir } from '@tauri-apps/api/path';\nconst appDataDirPath = await appDataDir();\nconst path = await normalize(appDataDirPath, '..', 'users', 'tauri', 'avatar.png');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":694,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L694"}],"parameters":[{"id":435,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":411,"name":"pictureDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":441,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L441"}],"signatures":[{"id":412,"name":"pictureDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's picture directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_PICTURES_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Pictures`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Pictures}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { pictureDir } from '@tauri-apps/api/path';\nconst pictureDirPath = await pictureDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":441,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L441"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":413,"name":"publicDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":468,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L468"}],"signatures":[{"id":414,"name":"publicDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's public directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_PUBLICSHARE_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Public`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Public}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { publicDir } from '@tauri-apps/api/path';\nconst publicDirPath = await publicDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":468,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L468"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":430,"name":"resolve","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":673,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L673"}],"signatures":[{"id":431,"name":"resolve","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Resolves a sequence of "},{"kind":"code","text":"`paths`"},{"kind":"text","text":" or "},{"kind":"code","text":"`path`"},{"kind":"text","text":" segments into an absolute path."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { resolve, appDataDir } from '@tauri-apps/api/path';\nconst appDataDirPath = await appDataDir();\nconst path = await resolve(appDataDirPath, '..', 'users', 'tauri', 'avatar.png');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":673,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L673"}],"parameters":[{"id":432,"name":"paths","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":417,"name":"resolveResource","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":515,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L515"}],"signatures":[{"id":418,"name":"resolveResource","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Resolve the path to a resource file."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { resolveResource } from '@tauri-apps/api/path';\nconst resourcePath = await resolveResource('script.sh');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The full path to the resource."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":515,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L515"}],"parameters":[{"id":419,"name":"resourcePath","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The path to the resource.\nMust follow the same syntax as defined in "},{"kind":"code","text":"`tauri.conf.json > tauri > bundle > resources`"},{"kind":"text","text":", i.e. keeping subfolders and parent dir components ("},{"kind":"code","text":"`../`"},{"kind":"text","text":")."}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":415,"name":"resourceDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":490,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L490"}],"signatures":[{"id":416,"name":"resourceDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the application's resource directory.\nTo resolve a resource path, see the [[resolveResource | "},{"kind":"code","text":"`resolveResource API`"},{"kind":"text","text":"]]."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { resourceDir } from '@tauri-apps/api/path';\nconst resourceDirPath = await resourceDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":490,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L490"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":420,"name":"runtimeDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":542,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L542"}],"signatures":[{"id":421,"name":"runtimeDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's runtime directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_RUNTIME_DIR`"},{"kind":"text","text":".\n- **macOS:** Not supported.\n- **Windows:** Not supported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { runtimeDir } from '@tauri-apps/api/path';\nconst runtimeDirPath = await runtimeDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":542,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L542"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":422,"name":"templateDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":569,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L569"}],"signatures":[{"id":423,"name":"templateDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's template directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_TEMPLATES_DIR`"},{"kind":"text","text":".\n- **macOS:** Not supported.\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Templates}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { templateDir } from '@tauri-apps/api/path';\nconst templateDirPath = await templateDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":569,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L569"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":424,"name":"videoDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":596,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L596"}],"signatures":[{"id":425,"name":"videoDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's video directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_VIDEOS_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Movies`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Videos}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { videoDir } from '@tauri-apps/api/path';\nconst videoDirPath = await videoDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":596,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L596"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"References","children":[1174]},{"title":"Variables","children":[429,428]},{"title":"Functions","children":[385,379,381,377,383,387,389,445,391,393,395,397,439,399,401,403,442,405,407,449,436,409,426,433,411,413,430,417,415,420,422,424]}],"sources":[{"fileName":"path.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/path.ts#L1"}]},{"id":452,"name":"process","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Perform operations on the current process.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.process`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"children":[{"id":453,"name":"exit","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"process.ts","line":27,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/process.ts#L27"}],"signatures":[{"id":454,"name":"exit","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Exits immediately with the given "},{"kind":"code","text":"`exitCode`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { exit } from '@tauri-apps/api/process';\nawait exit(1);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"process.ts","line":27,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/process.ts#L27"}],"parameters":[{"id":455,"name":"exitCode","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The exit code to use."}]},"type":{"type":"intrinsic","name":"number"},"defaultValue":"0"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":456,"name":"relaunch","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"process.ts","line":49,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/process.ts#L49"}],"signatures":[{"id":457,"name":"relaunch","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Exits the current instance of the app then relaunches it."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { relaunch } from '@tauri-apps/api/process';\nawait relaunch();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"process.ts","line":49,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/process.ts#L49"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Functions","children":[453,456]}],"sources":[{"fileName":"process.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/process.ts#L1"}]},{"id":458,"name":"shell","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Access the system shell.\nAllows you to spawn child processes and manage files and URLs using their default application.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.shell`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.shell`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.shell) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"shell\": {\n \"all\": true, // enable all shell APIs\n \"execute\": true, // enable process spawn APIs\n \"sidecar\": true, // enable spawning sidecars\n \"open\": true // enable opening files/URLs using the default program\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security.\n\n## Security\n\nThis API has a scope configuration that forces you to restrict the programs and arguments that can be used.\n\n### Restricting access to the "},{"kind":"inline-tag","tag":"@link","text":"`open`","target":616},{"kind":"text","text":" API\n\nOn the allowlist, "},{"kind":"code","text":"`open: true`"},{"kind":"text","text":" means that the "},{"kind":"inline-tag","tag":"@link","text":"open","target":616},{"kind":"text","text":" API can be used with any URL,\nas the argument is validated with the "},{"kind":"code","text":"`^((mailto:\\w+)|(tel:\\w+)|(https?://\\w+)).+`"},{"kind":"text","text":" regex.\nYou can change that regex by changing the boolean value to a string, e.g. "},{"kind":"code","text":"`open: ^https://github.com/`"},{"kind":"text","text":".\n\n### Restricting access to the "},{"kind":"inline-tag","tag":"@link","text":"`Command`","target":459},{"kind":"text","text":" APIs\n\nThe "},{"kind":"code","text":"`shell`"},{"kind":"text","text":" allowlist object has a "},{"kind":"code","text":"`scope`"},{"kind":"text","text":" field that defines an array of CLIs that can be used.\nEach CLI is a configuration object "},{"kind":"code","text":"`{ name: string, cmd: string, sidecar?: bool, args?: boolean | Arg[] }`"},{"kind":"text","text":".\n\n- "},{"kind":"code","text":"`name`"},{"kind":"text","text":": the unique identifier of the command, passed to the "},{"kind":"inline-tag","tag":"@link","text":"Command constructor","target":465},{"kind":"text","text":".\nIf it's a sidecar, this must be the value defined on "},{"kind":"code","text":"`tauri.conf.json > tauri > bundle > externalBin`"},{"kind":"text","text":".\n- "},{"kind":"code","text":"`cmd`"},{"kind":"text","text":": the program that is executed on this configuration. If it's a sidecar, this value is ignored.\n- "},{"kind":"code","text":"`sidecar`"},{"kind":"text","text":": whether the object configures a sidecar or a system program.\n- "},{"kind":"code","text":"`args`"},{"kind":"text","text":": the arguments that can be passed to the program. By default no arguments are allowed.\n - "},{"kind":"code","text":"`true`"},{"kind":"text","text":" means that any argument list is allowed.\n - "},{"kind":"code","text":"`false`"},{"kind":"text","text":" means that no arguments are allowed.\n - otherwise an array can be configured. Each item is either a string representing the fixed argument value\n or a "},{"kind":"code","text":"`{ validator: string }`"},{"kind":"text","text":" that defines a regex validating the argument value.\n\n#### Example scope configuration\n\nCLI: "},{"kind":"code","text":"`git commit -m \"the commit message\"`"},{"kind":"text","text":"\n\nConfiguration:\n"},{"kind":"code","text":"```json\n{\n \"scope\": [\n {\n \"name\": \"run-git-commit\",\n \"cmd\": \"git\",\n \"args\": [\"commit\", \"-m\", { \"validator\": \"\\\\S+\" }]\n }\n ]\n}\n```"},{"kind":"text","text":"\nUsage:\n"},{"kind":"code","text":"```typescript\nimport { Command } from '@tauri-apps/api/shell'\nnew Command('run-git-commit', ['commit', '-m', 'the commit message'])\n```"},{"kind":"text","text":"\n\nTrying to execute any API with a program not configured on the scope results in a promise rejection due to denied access."}]},"children":[{"id":538,"name":"Child","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"children":[{"id":539,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"shell.ts","line":325,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L325"}],"signatures":[{"id":540,"name":"new Child","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"shell.ts","line":325,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L325"}],"parameters":[{"id":541,"name":"pid","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":538,"name":"Child","package":"@tauri-apps/api"}}]},{"id":542,"name":"pid","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The child process "},{"kind":"code","text":"`pid`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"shell.ts","line":323,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L323"}],"type":{"type":"intrinsic","name":"number"}},{"id":546,"name":"kill","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":361,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L361"}],"signatures":[{"id":547,"name":"kill","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Kills the child process."}],"blockTags":[{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"shell.ts","line":361,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L361"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":543,"name":"write","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":344,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L344"}],"signatures":[{"id":544,"name":"write","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Writes "},{"kind":"code","text":"`data`"},{"kind":"text","text":" to the "},{"kind":"code","text":"`stdin`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Command } from '@tauri-apps/api/shell';\nconst command = new Command('node');\nconst child = await command.spawn();\nawait child.write('message');\nawait child.write([0, 1, 2, 3, 4, 5]);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"shell.ts","line":344,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L344"}],"parameters":[{"id":545,"name":"data","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The message to write, either a string or a byte array."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Uint8Array"},"name":"Uint8Array","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Constructors","children":[539]},{"title":"Properties","children":[542]},{"title":"Methods","children":[546,543]}],"sources":[{"fileName":"shell.ts","line":321,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L321"}]},{"id":459,"name":"Command","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"The entry point for spawning child processes.\nIt emits the "},{"kind":"code","text":"`close`"},{"kind":"text","text":" and "},{"kind":"code","text":"`error`"},{"kind":"text","text":" events."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Command } from '@tauri-apps/api/shell';\nconst command = new Command('node');\ncommand.on('close', data => {\n console.log(`command finished with code ${data.code} and signal ${data.signal}`)\n});\ncommand.on('error', error => console.error(`command error: \"${error}\"`));\ncommand.stdout.on('data', line => console.log(`command stdout: \"${line}\"`));\ncommand.stderr.on('data', line => console.log(`command stderr: \"${line}\"`));\n\nconst child = await command.spawn();\nconsole.log('pid:', child.pid);\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"children":[{"id":465,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"shell.ts","line":413,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L413"}],"signatures":[{"id":466,"name":"new Command","variant":"signature","kind":16384,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a new "},{"kind":"code","text":"`Command`"},{"kind":"text","text":" instance."}]},"sources":[{"fileName":"shell.ts","line":413,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L413"}],"parameters":[{"id":467,"name":"program","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The program name to execute.\nIt must be configured on "},{"kind":"code","text":"`tauri.conf.json > tauri > allowlist > shell > scope`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":468,"name":"args","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Program arguments."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"array","elementType":{"type":"intrinsic","name":"string"}}]},"defaultValue":"[]"},{"id":469,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Spawn options."}]},"type":{"type":"reference","target":625,"name":"SpawnOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":459,"name":"Command","package":"@tauri-apps/api"},"overwrites":{"type":"reference","target":550,"name":"EventEmitter.constructor"}}],"overwrites":{"type":"reference","target":549,"name":"EventEmitter.constructor"}},{"id":474,"name":"stderr","variant":"declaration","kind":1024,"flags":{"isReadonly":true},"comment":{"summary":[{"kind":"text","text":"Event emitter for the "},{"kind":"code","text":"`stderr`"},{"kind":"text","text":". Emits the "},{"kind":"code","text":"`data`"},{"kind":"text","text":" event."}]},"sources":[{"fileName":"shell.ts","line":403,"character":11,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L403"}],"type":{"type":"reference","target":548,"typeArguments":[{"type":"literal","value":"data"}],"name":"EventEmitter","package":"@tauri-apps/api"},"defaultValue":"..."},{"id":473,"name":"stdout","variant":"declaration","kind":1024,"flags":{"isReadonly":true},"comment":{"summary":[{"kind":"text","text":"Event emitter for the "},{"kind":"code","text":"`stdout`"},{"kind":"text","text":". Emits the "},{"kind":"code","text":"`data`"},{"kind":"text","text":" event."}]},"sources":[{"fileName":"shell.ts","line":401,"character":11,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L401"}],"type":{"type":"reference","target":548,"typeArguments":[{"type":"literal","value":"data"}],"name":"EventEmitter","package":"@tauri-apps/api"},"defaultValue":"..."},{"id":479,"name":"addListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":164,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L164"}],"signatures":[{"id":480,"name":"addListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Alias for "},{"kind":"code","text":"`emitter.on(eventName, listener)`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":164,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L164"}],"parameters":[{"id":481,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}},{"id":482,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":483,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":164,"character":38,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L164"}],"signatures":[{"id":484,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":164,"character":38,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L164"}],"parameters":[{"id":485,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":459,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":557,"name":"EventEmitter.addListener"}}],"inheritedFrom":{"type":"reference","target":556,"name":"EventEmitter.addListener"}},{"id":477,"name":"execute","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":489,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L489"}],"signatures":[{"id":478,"name":"execute","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Executes the command as a child process, waiting for it to finish and collecting all of its output."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Command } from '@tauri-apps/api/shell';\nconst output = await new Command('echo', 'message').execute();\nassert(output.code === 0);\nassert(output.signal === null);\nassert(output.stdout === 'message');\nassert(output.stderr === '');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to the child process output."}]}]},"sources":[{"fileName":"shell.ts","line":489,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L489"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":620,"name":"ChildProcess","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":521,"name":"listenerCount","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":272,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L272"}],"signatures":[{"id":522,"name":"listenerCount","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the number of listeners listening to the event named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":272,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L272"}],"parameters":[{"id":523,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}}],"type":{"type":"intrinsic","name":"number"},"inheritedFrom":{"type":"reference","target":599,"name":"EventEmitter.listenerCount"}}],"inheritedFrom":{"type":"reference","target":598,"name":"EventEmitter.listenerCount"}},{"id":507,"name":"off","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":221,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L221"}],"signatures":[{"id":508,"name":"off","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Removes the all specified listener from the listener array for the event eventName\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":221,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L221"}],"parameters":[{"id":509,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}},{"id":510,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":511,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":221,"character":30,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L221"}],"signatures":[{"id":512,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":221,"character":30,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L221"}],"parameters":[{"id":513,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":459,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":585,"name":"EventEmitter.off"}}],"inheritedFrom":{"type":"reference","target":584,"name":"EventEmitter.off"}},{"id":493,"name":"on","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":187,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L187"}],"signatures":[{"id":494,"name":"on","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function to the end of the listeners array for the\nevent named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":". No checks are made to see if the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" has\nalready been added. Multiple calls passing the same combination of "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":"and "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" will result in the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" being added, and called, multiple\ntimes.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"shell.ts","line":187,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L187"}],"parameters":[{"id":495,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}},{"id":496,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":497,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":187,"character":29,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L187"}],"signatures":[{"id":498,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":187,"character":29,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L187"}],"parameters":[{"id":499,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":459,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":571,"name":"EventEmitter.on"}}],"inheritedFrom":{"type":"reference","target":570,"name":"EventEmitter.on"}},{"id":500,"name":"once","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":206,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L206"}],"signatures":[{"id":501,"name":"once","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds a **one-time**"},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function for the event named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":". The\nnext time "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":" is triggered, this listener is removed and then invoked.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":206,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L206"}],"parameters":[{"id":502,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}},{"id":503,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":504,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":206,"character":31,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L206"}],"signatures":[{"id":505,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":206,"character":31,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L206"}],"parameters":[{"id":506,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":459,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":578,"name":"EventEmitter.once"}}],"inheritedFrom":{"type":"reference","target":577,"name":"EventEmitter.once"}},{"id":524,"name":"prependListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":289,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L289"}],"signatures":[{"id":525,"name":"prependListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function to the _beginning_ of the listeners array for the\nevent named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":". No checks are made to see if the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" has\nalready been added. Multiple calls passing the same combination of "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":"and "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" will result in the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" being added, and called, multiple\ntimes.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":289,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L289"}],"parameters":[{"id":526,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}},{"id":527,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":528,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":289,"character":42,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L289"}],"signatures":[{"id":529,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":289,"character":42,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L289"}],"parameters":[{"id":530,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":459,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":602,"name":"EventEmitter.prependListener"}}],"inheritedFrom":{"type":"reference","target":601,"name":"EventEmitter.prependListener"}},{"id":531,"name":"prependOnceListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":308,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L308"}],"signatures":[{"id":532,"name":"prependOnceListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds a **one-time**"},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function for the event named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":" to the_beginning_ of the listeners array. The next time "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":" is triggered, this\nlistener is removed, and then invoked.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":308,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L308"}],"parameters":[{"id":533,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}},{"id":534,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":535,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":308,"character":46,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L308"}],"signatures":[{"id":536,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":308,"character":46,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L308"}],"parameters":[{"id":537,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":459,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":609,"name":"EventEmitter.prependOnceListener"}}],"inheritedFrom":{"type":"reference","target":608,"name":"EventEmitter.prependOnceListener"}},{"id":514,"name":"removeAllListeners","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":238,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L238"}],"signatures":[{"id":515,"name":"removeAllListeners","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Removes all listeners, or those of the specified eventName.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":238,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L238"}],"parameters":[{"id":516,"name":"event","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}}],"type":{"type":"reference","target":459,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":592,"name":"EventEmitter.removeAllListeners"}}],"inheritedFrom":{"type":"reference","target":591,"name":"EventEmitter.removeAllListeners"}},{"id":486,"name":"removeListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":173,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L173"}],"signatures":[{"id":487,"name":"removeListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Alias for "},{"kind":"code","text":"`emitter.off(eventName, listener)`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":173,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L173"}],"parameters":[{"id":488,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}},{"id":489,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":490,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":173,"character":41,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L173"}],"signatures":[{"id":491,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":173,"character":41,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L173"}],"parameters":[{"id":492,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":459,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":564,"name":"EventEmitter.removeListener"}}],"inheritedFrom":{"type":"reference","target":563,"name":"EventEmitter.removeListener"}},{"id":475,"name":"spawn","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":451,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L451"}],"signatures":[{"id":476,"name":"spawn","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Executes the command as a child process, returning a handle to it."}],"blockTags":[{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to the child process handle."}]}]},"sources":[{"fileName":"shell.ts","line":451,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L451"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":538,"name":"Child","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":460,"name":"sidecar","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"shell.ts","line":436,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L436"}],"signatures":[{"id":461,"name":"sidecar","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a command to execute the given sidecar program."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Command } from '@tauri-apps/api/shell';\nconst command = Command.sidecar('my-sidecar');\nconst output = await command.execute();\n```"}]}]},"sources":[{"fileName":"shell.ts","line":436,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L436"}],"parameters":[{"id":462,"name":"program","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The program to execute.\nIt must be configured on "},{"kind":"code","text":"`tauri.conf.json > tauri > allowlist > shell > scope`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":463,"name":"args","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"array","elementType":{"type":"intrinsic","name":"string"}}]},"defaultValue":"[]"},{"id":464,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":625,"name":"SpawnOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":459,"name":"Command","package":"@tauri-apps/api"}}]}],"groups":[{"title":"Constructors","children":[465]},{"title":"Properties","children":[474,473]},{"title":"Methods","children":[479,477,521,507,493,500,524,531,514,486,475,460]}],"sources":[{"fileName":"shell.ts","line":393,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L393"}],"extendedTypes":[{"type":"reference","target":548,"typeArguments":[{"type":"union","types":[{"type":"literal","value":"close"},{"type":"literal","value":"error"}]}],"name":"EventEmitter","package":"@tauri-apps/api"}]},{"id":548,"name":"EventEmitter","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":549,"name":"constructor","variant":"declaration","kind":512,"flags":{},"signatures":[{"id":550,"name":"new EventEmitter","variant":"signature","kind":16384,"flags":{},"typeParameter":[{"id":551,"name":"E","variant":"typeParam","kind":131072,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":548,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":556,"name":"addListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":164,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L164"}],"signatures":[{"id":557,"name":"addListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Alias for "},{"kind":"code","text":"`emitter.on(eventName, listener)`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":164,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L164"}],"parameters":[{"id":558,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}},{"id":559,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":560,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":164,"character":38,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L164"}],"signatures":[{"id":561,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":164,"character":38,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L164"}],"parameters":[{"id":562,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":548,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":598,"name":"listenerCount","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":272,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L272"}],"signatures":[{"id":599,"name":"listenerCount","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the number of listeners listening to the event named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":272,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L272"}],"parameters":[{"id":600,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}}],"type":{"type":"intrinsic","name":"number"}}]},{"id":584,"name":"off","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":221,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L221"}],"signatures":[{"id":585,"name":"off","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Removes the all specified listener from the listener array for the event eventName\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":221,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L221"}],"parameters":[{"id":586,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}},{"id":587,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":588,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":221,"character":30,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L221"}],"signatures":[{"id":589,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":221,"character":30,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L221"}],"parameters":[{"id":590,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":548,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":570,"name":"on","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":187,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L187"}],"signatures":[{"id":571,"name":"on","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function to the end of the listeners array for the\nevent named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":". No checks are made to see if the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" has\nalready been added. Multiple calls passing the same combination of "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":"and "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" will result in the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" being added, and called, multiple\ntimes.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"shell.ts","line":187,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L187"}],"parameters":[{"id":572,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}},{"id":573,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":574,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":187,"character":29,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L187"}],"signatures":[{"id":575,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":187,"character":29,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L187"}],"parameters":[{"id":576,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":548,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":577,"name":"once","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":206,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L206"}],"signatures":[{"id":578,"name":"once","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds a **one-time**"},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function for the event named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":". The\nnext time "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":" is triggered, this listener is removed and then invoked.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":206,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L206"}],"parameters":[{"id":579,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}},{"id":580,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":581,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":206,"character":31,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L206"}],"signatures":[{"id":582,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":206,"character":31,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L206"}],"parameters":[{"id":583,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":548,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":601,"name":"prependListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":289,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L289"}],"signatures":[{"id":602,"name":"prependListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function to the _beginning_ of the listeners array for the\nevent named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":". No checks are made to see if the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" has\nalready been added. Multiple calls passing the same combination of "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":"and "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" will result in the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" being added, and called, multiple\ntimes.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":289,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L289"}],"parameters":[{"id":603,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}},{"id":604,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":605,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":289,"character":42,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L289"}],"signatures":[{"id":606,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":289,"character":42,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L289"}],"parameters":[{"id":607,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":548,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":608,"name":"prependOnceListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":308,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L308"}],"signatures":[{"id":609,"name":"prependOnceListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds a **one-time**"},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function for the event named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":" to the_beginning_ of the listeners array. The next time "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":" is triggered, this\nlistener is removed, and then invoked.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":308,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L308"}],"parameters":[{"id":610,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}},{"id":611,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":612,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":308,"character":46,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L308"}],"signatures":[{"id":613,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":308,"character":46,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L308"}],"parameters":[{"id":614,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":548,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":591,"name":"removeAllListeners","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":238,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L238"}],"signatures":[{"id":592,"name":"removeAllListeners","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Removes all listeners, or those of the specified eventName.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":238,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L238"}],"parameters":[{"id":593,"name":"event","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}}],"type":{"type":"reference","target":548,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":563,"name":"removeListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":173,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L173"}],"signatures":[{"id":564,"name":"removeListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Alias for "},{"kind":"code","text":"`emitter.off(eventName, listener)`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":173,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L173"}],"parameters":[{"id":565,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}},{"id":566,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":567,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":173,"character":41,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L173"}],"signatures":[{"id":568,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":173,"character":41,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L173"}],"parameters":[{"id":569,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":548,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]}],"groups":[{"title":"Constructors","children":[549]},{"title":"Methods","children":[556,598,584,570,577,601,608,591,563]}],"sources":[{"fileName":"shell.ts","line":153,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L153"}],"typeParameters":[{"id":615,"name":"E","variant":"typeParam","kind":131072,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"extendedBy":[{"type":"reference","target":459,"name":"Command"}]},{"id":620,"name":"ChildProcess","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":621,"name":"code","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Exit code of the process. "},{"kind":"code","text":"`null`"},{"kind":"text","text":" if the process was terminated by a signal on Unix."}]},"sources":[{"fileName":"shell.ts","line":109,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L109"}],"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"intrinsic","name":"number"}]}},{"id":622,"name":"signal","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"If the process was terminated by a signal, represents that signal."}]},"sources":[{"fileName":"shell.ts","line":111,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L111"}],"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"intrinsic","name":"number"}]}},{"id":624,"name":"stderr","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The data that the process wrote to "},{"kind":"code","text":"`stderr`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"shell.ts","line":115,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L115"}],"type":{"type":"intrinsic","name":"string"}},{"id":623,"name":"stdout","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The data that the process wrote to "},{"kind":"code","text":"`stdout`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"shell.ts","line":113,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L113"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[621,622,624,623]}],"sources":[{"fileName":"shell.ts","line":107,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L107"}]},{"id":625,"name":"SpawnOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":626,"name":"cwd","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Current working directory."}]},"sources":[{"fileName":"shell.ts","line":88,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L88"}],"type":{"type":"intrinsic","name":"string"}},{"id":628,"name":"encoding","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Character encoding for stdout/stderr"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":96,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L96"}],"type":{"type":"intrinsic","name":"string"}},{"id":627,"name":"env","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Environment variables. set to "},{"kind":"code","text":"`null`"},{"kind":"text","text":" to clear the process env."}]},"sources":[{"fileName":"shell.ts","line":90,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L90"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"string"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}}],"groups":[{"title":"Properties","children":[626,628,627]}],"sources":[{"fileName":"shell.ts","line":86,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L86"}]},{"id":616,"name":"open","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"shell.ts","line":564,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L564"}],"signatures":[{"id":617,"name":"open","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Opens a path or URL with the system's default app,\nor the one specified with "},{"kind":"code","text":"`openWith`"},{"kind":"text","text":".\n\nThe "},{"kind":"code","text":"`openWith`"},{"kind":"text","text":" value must be one of "},{"kind":"code","text":"`firefox`"},{"kind":"text","text":", "},{"kind":"code","text":"`google chrome`"},{"kind":"text","text":", "},{"kind":"code","text":"`chromium`"},{"kind":"text","text":" "},{"kind":"code","text":"`safari`"},{"kind":"text","text":",\n"},{"kind":"code","text":"`open`"},{"kind":"text","text":", "},{"kind":"code","text":"`start`"},{"kind":"text","text":", "},{"kind":"code","text":"`xdg-open`"},{"kind":"text","text":", "},{"kind":"code","text":"`gio`"},{"kind":"text","text":", "},{"kind":"code","text":"`gnome-open`"},{"kind":"text","text":", "},{"kind":"code","text":"`kde-open`"},{"kind":"text","text":" or "},{"kind":"code","text":"`wslview`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { open } from '@tauri-apps/api/shell';\n// opens the given URL on the default browser:\nawait open('https://github.com/tauri-apps/tauri');\n// opens the given URL using `firefox`:\nawait open('https://github.com/tauri-apps/tauri', 'firefox');\n// opens a file using the default program:\nawait open('/path/to/file');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"shell.ts","line":564,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L564"}],"parameters":[{"id":618,"name":"path","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The path or URL to open.\nThis value is matched against the string regex defined on "},{"kind":"code","text":"`tauri.conf.json > tauri > allowlist > shell > open`"},{"kind":"text","text":",\nwhich defaults to "},{"kind":"code","text":"`^((mailto:\\w+)|(tel:\\w+)|(https?://\\w+)).+`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":619,"name":"openWith","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The app to open the file or URL with.\nDefaults to the system default application for the specified path type."}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Classes","children":[538,459,548]},{"title":"Interfaces","children":[620,625]},{"title":"Functions","children":[616]}],"sources":[{"fileName":"shell.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/shell.ts#L1"}]},{"id":629,"name":"tauri","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Invoke your custom commands.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.tauri`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"children":[{"id":630,"name":"InvokeArgs","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[{"kind":"text","text":"Command arguments."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"tauri.ts","line":63,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/tauri.ts#L63"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"unknown"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}},{"id":643,"name":"convertFileSrc","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"tauri.ts","line":129,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/tauri.ts#L129"}],"signatures":[{"id":644,"name":"convertFileSrc","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Convert a device file path to an URL that can be loaded by the webview.\nNote that "},{"kind":"code","text":"`asset:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`https://asset.localhost`"},{"kind":"text","text":" must be added to ["},{"kind":"code","text":"`tauri.security.csp`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#securityconfig.csp) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":".\nExample CSP value: "},{"kind":"code","text":"`\"csp\": \"default-src 'self'; img-src 'self' asset: https://asset.localhost\"`"},{"kind":"text","text":" to use the asset protocol on image sources.\n\nAdditionally, "},{"kind":"code","text":"`asset`"},{"kind":"text","text":" must be added to ["},{"kind":"code","text":"`tauri.allowlist.protocol`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.protocol)\nin "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" and its access scope must be defined on the "},{"kind":"code","text":"`assetScope`"},{"kind":"text","text":" array on the same "},{"kind":"code","text":"`protocol`"},{"kind":"text","text":" object."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appDataDir, join } from '@tauri-apps/api/path';\nimport { convertFileSrc } from '@tauri-apps/api/tauri';\nconst appDataDirPath = await appDataDir();\nconst filePath = await join(appDataDirPath, 'assets/video.mp4');\nconst assetUrl = convertFileSrc(filePath);\n\nconst video = document.getElementById('my-video');\nconst source = document.createElement('source');\nsource.type = 'video/mp4';\nsource.src = assetUrl;\nvideo.appendChild(source);\nvideo.load();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"the URL that can be used as source on the webview."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"tauri.ts","line":129,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/tauri.ts#L129"}],"parameters":[{"id":645,"name":"filePath","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The file path."}]},"type":{"type":"intrinsic","name":"string"}},{"id":646,"name":"protocol","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The protocol to use. Defaults to "},{"kind":"code","text":"`asset`"},{"kind":"text","text":". You only need to set this when using a custom protocol."}]},"type":{"type":"intrinsic","name":"string"},"defaultValue":"'asset'"}],"type":{"type":"intrinsic","name":"string"}}]},{"id":638,"name":"invoke","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"tauri.ts","line":79,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/tauri.ts#L79"}],"signatures":[{"id":639,"name":"invoke","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sends a message to the backend."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { invoke } from '@tauri-apps/api/tauri';\nawait invoke('login', { user: 'tauri', password: 'poiwe3h4r5ip3yrhtew9ty' });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving or rejecting to the backend response."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"tauri.ts","line":79,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/tauri.ts#L79"}],"typeParameter":[{"id":640,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":641,"name":"cmd","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The command name."}]},"type":{"type":"intrinsic","name":"string"}},{"id":642,"name":"args","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The optional arguments to pass to the command."}]},"type":{"type":"reference","target":630,"name":"InvokeArgs","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":631,"name":"transformCallback","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"tauri.ts","line":36,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/tauri.ts#L36"}],"signatures":[{"id":632,"name":"transformCallback","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Transforms a callback function to a string identifier that can be passed to the backend.\nThe backend uses the identifier to "},{"kind":"code","text":"`eval()`"},{"kind":"text","text":" the callback."}],"blockTags":[{"tag":"@returns","content":[{"kind":"text","text":"A unique identifier associated with the callback function."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"tauri.ts","line":36,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/tauri.ts#L36"}],"parameters":[{"id":633,"name":"callback","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reflection","declaration":{"id":634,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"tauri.ts","line":37,"character":13,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/tauri.ts#L37"}],"signatures":[{"id":635,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"tauri.ts","line":37,"character":13,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/tauri.ts#L37"}],"parameters":[{"id":636,"name":"response","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"void"}}]}}},{"id":637,"name":"once","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"},"defaultValue":"false"}],"type":{"type":"intrinsic","name":"number"}}]}],"groups":[{"title":"Type Aliases","children":[630]},{"title":"Functions","children":[643,638,631]}],"sources":[{"fileName":"tauri.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/tauri.ts#L1"}]},{"id":647,"name":"updater","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Customize the auto updater flow.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.updater`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"children":[{"id":652,"name":"UpdateManifest","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":655,"name":"body","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"updater.ts","line":34,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/updater.ts#L34"}],"type":{"type":"intrinsic","name":"string"}},{"id":654,"name":"date","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"updater.ts","line":33,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/updater.ts#L33"}],"type":{"type":"intrinsic","name":"string"}},{"id":653,"name":"version","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"updater.ts","line":32,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/updater.ts#L32"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[655,654,653]}],"sources":[{"fileName":"updater.ts","line":31,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/updater.ts#L31"}]},{"id":656,"name":"UpdateResult","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":657,"name":"manifest","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"updater.ts","line":41,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/updater.ts#L41"}],"type":{"type":"reference","target":652,"name":"UpdateManifest","package":"@tauri-apps/api"}},{"id":658,"name":"shouldUpdate","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"updater.ts","line":42,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/updater.ts#L42"}],"type":{"type":"intrinsic","name":"boolean"}}],"groups":[{"title":"Properties","children":[657,658]}],"sources":[{"fileName":"updater.ts","line":40,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/updater.ts#L40"}]},{"id":649,"name":"UpdateStatusResult","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":650,"name":"error","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"updater.ts","line":24,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/updater.ts#L24"}],"type":{"type":"intrinsic","name":"string"}},{"id":651,"name":"status","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"updater.ts","line":25,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/updater.ts#L25"}],"type":{"type":"reference","target":648,"name":"UpdateStatus","package":"@tauri-apps/api"}}],"groups":[{"title":"Properties","children":[650,651]}],"sources":[{"fileName":"updater.ts","line":23,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/updater.ts#L23"}]},{"id":648,"name":"UpdateStatus","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"updater.ts","line":18,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/updater.ts#L18"}],"type":{"type":"union","types":[{"type":"literal","value":"PENDING"},{"type":"literal","value":"ERROR"},{"type":"literal","value":"DONE"},{"type":"literal","value":"UPTODATE"}]}},{"id":667,"name":"checkUpdate","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"updater.ts","line":146,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/updater.ts#L146"}],"signatures":[{"id":668,"name":"checkUpdate","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Checks if an update is available."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { checkUpdate } from '@tauri-apps/api/updater';\nconst update = await checkUpdate();\n// now run installUpdate() if needed\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Promise resolving to the update status."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"updater.ts","line":146,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/updater.ts#L146"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":656,"name":"UpdateResult","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":665,"name":"installUpdate","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"updater.ts","line":87,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/updater.ts#L87"}],"signatures":[{"id":666,"name":"installUpdate","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Install the update if there's one available."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { checkUpdate, installUpdate } from '@tauri-apps/api/updater';\nconst update = await checkUpdate();\nif (update.shouldUpdate) {\n console.log(`Installing update ${update.manifest?.version}, ${update.manifest?.date}, ${update.manifest.body}`);\n await installUpdate();\n}\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"updater.ts","line":87,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/updater.ts#L87"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":659,"name":"onUpdaterEvent","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"updater.ts","line":63,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/updater.ts#L63"}],"signatures":[{"id":660,"name":"onUpdaterEvent","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to an updater event."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { onUpdaterEvent } from \"@tauri-apps/api/updater\";\nconst unlisten = await onUpdaterEvent(({ error, status }) => {\n console.log('Updater event', error, status);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"updater.ts","line":63,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/updater.ts#L63"}],"parameters":[{"id":661,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":662,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"updater.ts","line":64,"character":11,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/updater.ts#L64"}],"signatures":[{"id":663,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"updater.ts","line":64,"character":11,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/updater.ts#L64"}],"parameters":[{"id":664,"name":"status","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":649,"name":"UpdateStatusResult","package":"@tauri-apps/api"}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1171,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Interfaces","children":[652,656,649]},{"title":"Type Aliases","children":[648]},{"title":"Functions","children":[667,665,659]}],"sources":[{"fileName":"updater.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/updater.ts#L1"}]},{"id":669,"name":"window","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Provides APIs to create windows, communicate with other windows and manipulate the current window.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.window`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.window`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.window) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"window\": {\n \"all\": true, // enable all window APIs\n \"create\": true, // enable window creation\n \"center\": true,\n \"requestUserAttention\": true,\n \"setResizable\": true,\n \"setMaximizable\": true,\n \"setMinimizable\": true,\n \"setClosable\": true,\n \"setTitle\": true,\n \"maximize\": true,\n \"unmaximize\": true,\n \"minimize\": true,\n \"unminimize\": true,\n \"show\": true,\n \"hide\": true,\n \"close\": true,\n \"setDecorations\": true,\n \"setAlwaysOnTop\": true,\n \"setContentProtected\": true,\n \"setSize\": true,\n \"setMinSize\": true,\n \"setMaxSize\": true,\n \"setPosition\": true,\n \"setFullscreen\": true,\n \"setFocus\": true,\n \"setIcon\": true,\n \"setSkipTaskbar\": true,\n \"setCursorGrab\": true,\n \"setCursorVisible\": true,\n \"setCursorIcon\": true,\n \"setCursorPosition\": true,\n \"setIgnoreCursorEvents\": true,\n \"startDragging\": true,\n \"print\": true\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security.\n\n## Window events\n\nEvents can be listened to using "},{"kind":"code","text":"`appWindow.listen`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nappWindow.listen(\"my-window-event\", ({ event, payload }) => { });\n```"}]},"children":[{"id":1100,"name":"UserAttentionType","variant":"declaration","kind":8,"flags":{},"comment":{"summary":[{"kind":"text","text":"Attention type to request on a window."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":1101,"name":"Critical","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"#### Platform-specific\n- **macOS:** Bounces the dock icon until the application is in focus.\n- **Windows:** Flashes both the window and the taskbar button until the application is in focus."}]},"sources":[{"fileName":"window.ts","line":228,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L228"}],"type":{"type":"literal","value":1}},{"id":1102,"name":"Informational","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"#### Platform-specific\n- **macOS:** Bounces the dock icon once.\n- **Windows:** Flashes the taskbar button until the application is in focus."}]},"sources":[{"fileName":"window.ts","line":234,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L234"}],"type":{"type":"literal","value":2}}],"groups":[{"title":"Enumeration Members","children":[1101,1102]}],"sources":[{"fileName":"window.ts","line":222,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L222"}]},{"id":1045,"name":"CloseRequestedEvent","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"children":[{"id":1046,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"window.ts","line":2179,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2179"}],"signatures":[{"id":1047,"name":"new CloseRequestedEvent","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"window.ts","line":2179,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2179"}],"parameters":[{"id":1048,"name":"event","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1160,"typeArguments":[{"type":"literal","value":null}],"name":"Event","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":1045,"name":"CloseRequestedEvent","package":"@tauri-apps/api"}}]},{"id":1052,"name":"_preventDefault","variant":"declaration","kind":1024,"flags":{"isPrivate":true},"sources":[{"fileName":"window.ts","line":2177,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2177"}],"type":{"type":"intrinsic","name":"boolean"},"defaultValue":"false"},{"id":1049,"name":"event","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name"}]},"sources":[{"fileName":"window.ts","line":2172,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2172"}],"type":{"type":"reference","target":73,"name":"EventName","package":"@tauri-apps/api"}},{"id":1051,"name":"id","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event identifier used to unlisten"}]},"sources":[{"fileName":"window.ts","line":2176,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2176"}],"type":{"type":"intrinsic","name":"number"}},{"id":1050,"name":"windowLabel","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The label of the window that emitted this event."}]},"sources":[{"fileName":"window.ts","line":2174,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2174"}],"type":{"type":"intrinsic","name":"string"}},{"id":1055,"name":"isPreventDefault","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":2189,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2189"}],"signatures":[{"id":1056,"name":"isPreventDefault","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"window.ts","line":2189,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2189"}],"type":{"type":"intrinsic","name":"boolean"}}]},{"id":1053,"name":"preventDefault","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":2185,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2185"}],"signatures":[{"id":1054,"name":"preventDefault","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"window.ts","line":2185,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2185"}],"type":{"type":"intrinsic","name":"void"}}]}],"groups":[{"title":"Constructors","children":[1046]},{"title":"Properties","children":[1052,1049,1051,1050]},{"title":"Methods","children":[1055,1053]}],"sources":[{"fileName":"window.ts","line":2170,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2170"}]},{"id":1081,"name":"LogicalPosition","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"A position represented in logical pixels."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":1082,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"window.ts","line":166,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L166"}],"signatures":[{"id":1083,"name":"new LogicalPosition","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"window.ts","line":166,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L166"}],"parameters":[{"id":1084,"name":"x","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}},{"id":1085,"name":"y","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":1081,"name":"LogicalPosition","package":"@tauri-apps/api"}}]},{"id":1086,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":162,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L162"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'Logical'"},{"id":1087,"name":"x","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":163,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L163"}],"type":{"type":"intrinsic","name":"number"}},{"id":1088,"name":"y","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":164,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L164"}],"type":{"type":"intrinsic","name":"number"}}],"groups":[{"title":"Constructors","children":[1082]},{"title":"Properties","children":[1086,1087,1088]}],"sources":[{"fileName":"window.ts","line":161,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L161"}]},{"id":1062,"name":"LogicalSize","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"A size represented in logical pixels."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":1063,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"window.ts","line":120,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L120"}],"signatures":[{"id":1064,"name":"new LogicalSize","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"window.ts","line":120,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L120"}],"parameters":[{"id":1065,"name":"width","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}},{"id":1066,"name":"height","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":1062,"name":"LogicalSize","package":"@tauri-apps/api"}}]},{"id":1069,"name":"height","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":118,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L118"}],"type":{"type":"intrinsic","name":"number"}},{"id":1067,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":116,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L116"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'Logical'"},{"id":1068,"name":"width","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":117,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L117"}],"type":{"type":"intrinsic","name":"number"}}],"groups":[{"title":"Constructors","children":[1063]},{"title":"Properties","children":[1069,1067,1068]}],"sources":[{"fileName":"window.ts","line":115,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L115"}]},{"id":1089,"name":"PhysicalPosition","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"A position represented in physical pixels."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":1090,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"window.ts","line":182,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L182"}],"signatures":[{"id":1091,"name":"new PhysicalPosition","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"window.ts","line":182,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L182"}],"parameters":[{"id":1092,"name":"x","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}},{"id":1093,"name":"y","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":1089,"name":"PhysicalPosition","package":"@tauri-apps/api"}}]},{"id":1094,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":178,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L178"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'Physical'"},{"id":1095,"name":"x","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":179,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L179"}],"type":{"type":"intrinsic","name":"number"}},{"id":1096,"name":"y","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":180,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L180"}],"type":{"type":"intrinsic","name":"number"}},{"id":1097,"name":"toLogical","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":197,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L197"}],"signatures":[{"id":1098,"name":"toLogical","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Converts the physical position to a logical one."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst factor = await appWindow.scaleFactor();\nconst position = await appWindow.innerPosition();\nconst logical = position.toLogical(factor);\n```"}]}]},"sources":[{"fileName":"window.ts","line":197,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L197"}],"parameters":[{"id":1099,"name":"scaleFactor","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":1081,"name":"LogicalPosition","package":"@tauri-apps/api"}}]}],"groups":[{"title":"Constructors","children":[1090]},{"title":"Properties","children":[1094,1095,1096]},{"title":"Methods","children":[1097]}],"sources":[{"fileName":"window.ts","line":177,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L177"}]},{"id":1070,"name":"PhysicalSize","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"A size represented in physical pixels."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":1071,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"window.ts","line":136,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L136"}],"signatures":[{"id":1072,"name":"new PhysicalSize","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"window.ts","line":136,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L136"}],"parameters":[{"id":1073,"name":"width","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}},{"id":1074,"name":"height","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":1070,"name":"PhysicalSize","package":"@tauri-apps/api"}}]},{"id":1077,"name":"height","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":134,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L134"}],"type":{"type":"intrinsic","name":"number"}},{"id":1075,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":132,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L132"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'Physical'"},{"id":1076,"name":"width","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":133,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L133"}],"type":{"type":"intrinsic","name":"number"}},{"id":1078,"name":"toLogical","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":151,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L151"}],"signatures":[{"id":1079,"name":"toLogical","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Converts the physical size to a logical one."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst factor = await appWindow.scaleFactor();\nconst size = await appWindow.innerSize();\nconst logical = size.toLogical(factor);\n```"}]}]},"sources":[{"fileName":"window.ts","line":151,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L151"}],"parameters":[{"id":1080,"name":"scaleFactor","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":1062,"name":"LogicalSize","package":"@tauri-apps/api"}}]}],"groups":[{"title":"Constructors","children":[1071]},{"title":"Properties","children":[1077,1075,1076]},{"title":"Methods","children":[1078]}],"sources":[{"fileName":"window.ts","line":131,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L131"}]},{"id":672,"name":"WebviewWindow","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"Create new webview windows and get a handle to existing ones.\n\nWindows are identified by a *label* a unique identifier that can be used to reference it later.\nIt may only contain alphanumeric characters "},{"kind":"code","text":"`a-zA-Z`"},{"kind":"text","text":" plus the following special characters "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\n// loading embedded asset:\nconst webview = new WebviewWindow('theUniqueLabel', {\n url: 'path/to/page.html'\n});\n// alternatively, load a remote URL:\nconst webview = new WebviewWindow('theUniqueLabel', {\n url: 'https://github.com/tauri-apps/tauri'\n});\n\nwebview.once('tauri://created', function () {\n // webview window successfully created\n});\nwebview.once('tauri://error', function (e) {\n // an error happened creating the webview window\n});\n\n// emit an event to the backend\nawait webview.emit(\"some event\", \"data\");\n// listen to an event from the backend\nconst unlisten = await webview.listen(\"event name\", e => {});\nunlisten();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"children":[{"id":678,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"window.ts","line":2247,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2247"}],"signatures":[{"id":679,"name":"new WebviewWindow","variant":"signature","kind":16384,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a new WebviewWindow."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { WebviewWindow } from '@tauri-apps/api/window';\nconst webview = new WebviewWindow('my-label', {\n url: 'https://github.com/tauri-apps/tauri'\n});\nwebview.once('tauri://created', function () {\n // webview window successfully created\n});\nwebview.once('tauri://error', function (e) {\n // an error happened creating the webview window\n});\n```"},{"kind":"text","text":"\n\n*"}]},{"tag":"@returns","content":[{"kind":"text","text":"The WebviewWindow instance to communicate with the webview."}]}]},"sources":[{"fileName":"window.ts","line":2247,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2247"}],"parameters":[{"id":680,"name":"label","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The unique webview window label. Must be alphanumeric: "},{"kind":"code","text":"`a-zA-Z-/:_`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":681,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1128,"name":"WindowOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":672,"name":"WebviewWindow","package":"@tauri-apps/api"},"overwrites":{"type":"reference","target":-1,"name":"WindowManager.constructor"}}],"overwrites":{"type":"reference","target":-1,"name":"WindowManager.constructor"}},{"id":828,"name":"label","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The window label. It is a unique identifier for the window, can be used to reference it later."}]},"sources":[{"fileName":"window.ts","line":318,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L318"}],"type":{"type":"intrinsic","name":"string"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.label"}},{"id":829,"name":"listeners","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Local event listeners."}]},"sources":[{"fileName":"window.ts","line":320,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L320"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"array","elementType":{"type":"reference","target":1166,"typeArguments":[{"type":"intrinsic","name":"any"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.listeners"}},{"id":716,"name":"center","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":926,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L926"}],"signatures":[{"id":717,"name":"center","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Centers the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.center();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":926,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L926"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.center"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.center"}},{"id":750,"name":"close","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1326,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1326"}],"signatures":[{"id":751,"name":"close","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Closes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.close();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1326,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1326"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.close"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.close"}},{"id":840,"name":"emit","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":430,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L430"}],"signatures":[{"id":841,"name":"emit","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Emits an event to the backend and all Tauri windows.\nThe event will have this window's "},{"kind":"inline-tag","tag":"@link","text":"label","target":828,"tsLinkText":"label"},{"kind":"text","text":" as "},{"kind":"inline-tag","tag":"@link","text":"source window label","target":1162,"tsLinkText":"source window label"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.emit('window-loaded', { loggedIn: true, token: 'authToken' });\n```"},{"kind":"text","text":"\n\nThis function can also be used to communicate between windows:\n"},{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.listen('sync-data', (event) => { });\n\n// on another window...\nimport { WebviewWindow } from '@tauri-apps/api/window';\nconst otherWindow = WebviewWindow.getByLabel('other')\nawait otherWindow.emit('sync-data');\n```"},{"kind":"text","text":"\n\nGlobal listeners are also triggered:\n"},{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nimport { listen } from '@tauri-apps/api/event';\nawait listen('ping', (event) => { });\n\nawait appWindow.emit('ping');\n```"}]}]},"sources":[{"fileName":"window.ts","line":430,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L430"}],"parameters":[{"id":842,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":843,"name":"payload","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Event payload."}]},"type":{"type":"intrinsic","name":"unknown"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.emit"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.emit"}},{"id":748,"name":"hide","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1301,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1301"}],"signatures":[{"id":749,"name":"hide","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window visibility to false."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.hide();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1301,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1301"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.hide"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.hide"}},{"id":684,"name":"innerPosition","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":500,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L500"}],"signatures":[{"id":685,"name":"innerPosition","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"The position of the top-left hand corner of the window's client area relative to the top-left hand corner of the desktop."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst position = await appWindow.innerPosition();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window's inner position."}]}]},"sources":[{"fileName":"window.ts","line":500,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L500"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1089,"name":"PhysicalPosition","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.innerPosition"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.innerPosition"}},{"id":688,"name":"innerSize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":551,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L551"}],"signatures":[{"id":689,"name":"innerSize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"The physical size of the window's client area.\nThe client area is the content of the window, excluding the title bar and borders."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst size = await appWindow.innerSize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window's inner size."}]}]},"sources":[{"fileName":"window.ts","line":551,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L551"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1070,"name":"PhysicalSize","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.innerSize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.innerSize"}},{"id":708,"name":"isClosable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":819,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L819"}],"signatures":[{"id":709,"name":"isClosable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window’s native close button state.\n\n#### Platform-specific\n\n- **Linux / iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst closable = await appWindow.isClosable();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window's native close button is enabled or not."}]}]},"sources":[{"fileName":"window.ts","line":819,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L819"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isClosable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isClosable"}},{"id":700,"name":"isDecorated","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":704,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L704"}],"signatures":[{"id":701,"name":"isDecorated","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current decorated state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst decorated = await appWindow.isDecorated();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is decorated or not."}]}]},"sources":[{"fileName":"window.ts","line":704,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L704"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isDecorated"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isDecorated"}},{"id":698,"name":"isFocused","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":679,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L679"}],"signatures":[{"id":699,"name":"isFocused","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current focus state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst focused = await appWindow.isFocused();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is focused or not."}]},{"tag":"@since","content":[{"kind":"text","text":"1.4"}]}]},"sources":[{"fileName":"window.ts","line":679,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L679"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isFocused"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isFocused"}},{"id":692,"name":"isFullscreen","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":602,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L602"}],"signatures":[{"id":693,"name":"isFullscreen","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current fullscreen state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst fullscreen = await appWindow.isFullscreen();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is in fullscreen mode or not."}]}]},"sources":[{"fileName":"window.ts","line":602,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L602"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isFullscreen"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isFullscreen"}},{"id":704,"name":"isMaximizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":759,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L759"}],"signatures":[{"id":705,"name":"isMaximizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window’s native maximize button state.\n\n#### Platform-specific\n\n- **Linux / iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst maximizable = await appWindow.isMaximizable();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window's native maximize button is enabled or not."}]}]},"sources":[{"fileName":"window.ts","line":759,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L759"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMaximizable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMaximizable"}},{"id":696,"name":"isMaximized","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":652,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L652"}],"signatures":[{"id":697,"name":"isMaximized","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current maximized state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst maximized = await appWindow.isMaximized();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is maximized or not."}]}]},"sources":[{"fileName":"window.ts","line":652,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L652"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMaximized"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMaximized"}},{"id":706,"name":"isMinimizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":789,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L789"}],"signatures":[{"id":707,"name":"isMinimizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window’s native minimize button state.\n\n#### Platform-specific\n\n- **Linux / iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst minimizable = await appWindow.isMinimizable();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window's native minimize button is enabled or not."}]}]},"sources":[{"fileName":"window.ts","line":789,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L789"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMinimizable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMinimizable"}},{"id":694,"name":"isMinimized","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":627,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L627"}],"signatures":[{"id":695,"name":"isMinimized","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current minimized state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst minimized = await appWindow.isMinimized();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.3.0"}]}]},"sources":[{"fileName":"window.ts","line":627,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L627"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMinimized"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMinimized"}},{"id":702,"name":"isResizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":729,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L729"}],"signatures":[{"id":703,"name":"isResizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current resizable state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst resizable = await appWindow.isResizable();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is resizable or not."}]}]},"sources":[{"fileName":"window.ts","line":729,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L729"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isResizable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isResizable"}},{"id":710,"name":"isVisible","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":844,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L844"}],"signatures":[{"id":711,"name":"isVisible","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current visible state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst visible = await appWindow.isVisible();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is visible or not."}]}]},"sources":[{"fileName":"window.ts","line":844,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L844"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isVisible"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isVisible"}},{"id":830,"name":"listen","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":351,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L351"}],"signatures":[{"id":831,"name":"listen","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to an event emitted by the backend or webview.\nThe event must either be a global event or an event targetting this window.\n\nSee "},{"kind":"inline-tag","tag":"@link","text":"`emit`","target":840,"tsLinkText":"`emit`"},{"kind":"text","text":" for more information."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst unlisten = await appWindow.listen('state-changed', (event) => {\n console.log(`Got error: ${payload}`);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"},{"kind":"text","text":"\n\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event."}]}]},"sources":[{"fileName":"window.ts","line":351,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L351"}],"typeParameter":[{"id":832,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":833,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"reference","target":73,"name":"EventName","package":"@tauri-apps/api"}},{"id":834,"name":"handler","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event handler."}]},"type":{"type":"reference","target":1166,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1171,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.listen"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.listen"}},{"id":736,"name":"maximize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1151,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1151"}],"signatures":[{"id":737,"name":"maximize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Maximizes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.maximize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1151,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1151"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.maximize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.maximize"}},{"id":742,"name":"minimize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1226,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1226"}],"signatures":[{"id":743,"name":"minimize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Minimizes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.minimize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1226,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1226"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.minimize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.minimize"}},{"id":807,"name":"onCloseRequested","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1978,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1978"}],"signatures":[{"id":808,"name":"onCloseRequested","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to window close requested. Emitted when the user requests to closes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nimport { confirm } from '@tauri-apps/api/dialog';\nconst unlisten = await appWindow.onCloseRequested(async (event) => {\n const confirmed = await confirm('Are you sure?');\n if (!confirmed) {\n // user did not confirm closing the window; let's prevent it\n event.preventDefault();\n }\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":1978,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1978"}],"parameters":[{"id":809,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":810,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"window.ts","line":1979,"character":13,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1979"}],"signatures":[{"id":811,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"window.ts","line":1979,"character":13,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1979"}],"parameters":[{"id":812,"name":"event","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1045,"name":"CloseRequestedEvent","package":"@tauri-apps/api"}}],"type":{"type":"union","types":[{"type":"intrinsic","name":"void"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}]}}]}}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1171,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onCloseRequested"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onCloseRequested"}},{"id":822,"name":"onFileDropEvent","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":2112,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2112"}],"signatures":[{"id":823,"name":"onFileDropEvent","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to a file drop event.\nThe listener is triggered when the user hovers the selected files on the window,\ndrops the files or cancels the operation."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nconst unlisten = await appWindow.onFileDropEvent((event) => {\n if (event.payload.type === 'hover') {\n console.log('User hovering', event.payload.paths);\n } else if (event.payload.type === 'drop') {\n console.log('User dropped', event.payload.paths);\n } else {\n console.log('File drop cancelled');\n }\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":2112,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2112"}],"parameters":[{"id":824,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1166,"typeArguments":[{"type":"reference","target":1119,"name":"FileDropEvent","package":"@tauri-apps/api"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1171,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onFileDropEvent"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onFileDropEvent"}},{"id":813,"name":"onFocusChanged","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":2011,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2011"}],"signatures":[{"id":814,"name":"onFocusChanged","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to window focus change."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nconst unlisten = await appWindow.onFocusChanged(({ payload: focused }) => {\n console.log('Focus changed, window is focused? ' + focused);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":2011,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2011"}],"parameters":[{"id":815,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1166,"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1171,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onFocusChanged"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onFocusChanged"}},{"id":819,"name":"onMenuClicked","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":2081,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2081"}],"signatures":[{"id":820,"name":"onMenuClicked","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to the window menu item click. The payload is the item id."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nconst unlisten = await appWindow.onMenuClicked(({ payload: menuId }) => {\n console.log('Menu clicked: ' + menuId);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":2081,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2081"}],"parameters":[{"id":821,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1166,"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1171,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onMenuClicked"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onMenuClicked"}},{"id":804,"name":"onMoved","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1946,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1946"}],"signatures":[{"id":805,"name":"onMoved","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to window move."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nconst unlisten = await appWindow.onMoved(({ payload: position }) => {\n console.log('Window moved', position);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":1946,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1946"}],"parameters":[{"id":806,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1166,"typeArguments":[{"type":"reference","target":1089,"name":"PhysicalPosition","package":"@tauri-apps/api"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1171,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onMoved"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onMoved"}},{"id":801,"name":"onResized","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1920,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1920"}],"signatures":[{"id":802,"name":"onResized","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to window resize."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nconst unlisten = await appWindow.onResized(({ payload: size }) => {\n console.log('Window resized', size);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":1920,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1920"}],"parameters":[{"id":803,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1166,"typeArguments":[{"type":"reference","target":1070,"name":"PhysicalSize","package":"@tauri-apps/api"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1171,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onResized"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onResized"}},{"id":816,"name":"onScaleChanged","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":2053,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2053"}],"signatures":[{"id":817,"name":"onScaleChanged","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to window scale change. Emitted when the window's scale factor has changed.\nThe following user actions can cause DPI changes:\n- Changing the display's resolution.\n- Changing the display's scale factor (e.g. in Control Panel on Windows).\n- Moving the window to a display with a different scale factor."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nconst unlisten = await appWindow.onScaleChanged(({ payload }) => {\n console.log('Scale changed', payload.scaleFactor, payload.size);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":2053,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2053"}],"parameters":[{"id":818,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1166,"typeArguments":[{"type":"reference","target":1116,"name":"ScaleFactorChanged","package":"@tauri-apps/api"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1171,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onScaleChanged"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onScaleChanged"}},{"id":825,"name":"onThemeChanged","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":2162,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2162"}],"signatures":[{"id":826,"name":"onThemeChanged","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to the system theme change."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nconst unlisten = await appWindow.onThemeChanged(({ payload: theme }) => {\n console.log('New theme: ' + theme);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":2162,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2162"}],"parameters":[{"id":827,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1166,"typeArguments":[{"type":"reference","target":1109,"name":"Theme","package":"@tauri-apps/api"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1171,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onThemeChanged"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onThemeChanged"}},{"id":835,"name":"once","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":386,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L386"}],"signatures":[{"id":836,"name":"once","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to an one-off event.\nSee "},{"kind":"inline-tag","tag":"@link","text":"`listen`","target":830,"tsLinkText":"`listen`"},{"kind":"text","text":" for more information."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst unlisten = await appWindow.once('initialized', (event) => {\n console.log(`Window initialized!`);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"},{"kind":"text","text":"\n\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event."}]}]},"sources":[{"fileName":"window.ts","line":386,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L386"}],"typeParameter":[{"id":837,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":838,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":839,"name":"handler","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event handler."}]},"type":{"type":"reference","target":1166,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1171,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.once"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.once"}},{"id":686,"name":"outerPosition","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":525,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L525"}],"signatures":[{"id":687,"name":"outerPosition","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"The position of the top-left hand corner of the window relative to the top-left hand corner of the desktop."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst position = await appWindow.outerPosition();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window's outer position."}]}]},"sources":[{"fileName":"window.ts","line":525,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L525"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1089,"name":"PhysicalPosition","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.outerPosition"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.outerPosition"}},{"id":690,"name":"outerSize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":577,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L577"}],"signatures":[{"id":691,"name":"outerSize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"The physical size of the entire window.\nThese dimensions include the title bar and borders. If you don't want that (and you usually don't), use inner_size instead."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst size = await appWindow.outerSize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window's outer size."}]}]},"sources":[{"fileName":"window.ts","line":577,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L577"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1070,"name":"PhysicalSize","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.outerSize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.outerSize"}},{"id":718,"name":"requestUserAttention","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":962,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L962"}],"signatures":[{"id":719,"name":"requestUserAttention","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Requests user attention to the window, this has no effect if the application\nis already focused. How requesting for user attention manifests is platform dependent,\nsee "},{"kind":"code","text":"`UserAttentionType`"},{"kind":"text","text":" for details.\n\nProviding "},{"kind":"code","text":"`null`"},{"kind":"text","text":" will unset the request for user attention. Unsetting the request for\nuser attention might not be done automatically by the WM when the window receives input.\n\n#### Platform-specific\n\n- **macOS:** "},{"kind":"code","text":"`null`"},{"kind":"text","text":" has no effect.\n- **Linux:** Urgency levels have the same effect."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.requestUserAttention();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":962,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L962"}],"parameters":[{"id":720,"name":"requestType","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"reference","target":1100,"name":"UserAttentionType","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.requestUserAttention"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.requestUserAttention"}},{"id":682,"name":"scaleFactor","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":475,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L475"}],"signatures":[{"id":683,"name":"scaleFactor","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"The scale factor that can be used to map physical pixels to logical pixels."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst factor = await appWindow.scaleFactor();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window's monitor scale factor."}]}]},"sources":[{"fileName":"window.ts","line":475,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L475"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"number"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.scaleFactor"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.scaleFactor"}},{"id":755,"name":"setAlwaysOnTop","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1379,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1379"}],"signatures":[{"id":756,"name":"setAlwaysOnTop","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window should always be on top of other windows."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setAlwaysOnTop(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1379,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1379"}],"parameters":[{"id":757,"name":"alwaysOnTop","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window should always be on top of other windows or not."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setAlwaysOnTop"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setAlwaysOnTop"}},{"id":730,"name":"setClosable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1098,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1098"}],"signatures":[{"id":731,"name":"setClosable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets whether the window's native close button is enabled or not.\n\n#### Platform-specific\n\n- **Linux:** GTK+ will do its best to convince the window manager not to show a close button. Depending on the system, this function may not have any effect when called on a window that is already visible\n- **iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setClosable(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1098,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1098"}],"parameters":[{"id":732,"name":"closable","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setClosable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setClosable"}},{"id":758,"name":"setContentProtected","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1407,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1407"}],"signatures":[{"id":759,"name":"setContentProtected","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Prevents the window contents from being captured by other apps."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setContentProtected(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"window.ts","line":1407,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1407"}],"parameters":[{"id":760,"name":"protected_","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setContentProtected"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setContentProtected"}},{"id":784,"name":"setCursorGrab","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1727,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1727"}],"signatures":[{"id":785,"name":"setCursorGrab","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Grabs the cursor, preventing it from leaving the window.\n\nThere's no guarantee that the cursor will be hidden. You should\nhide it by yourself if you want so.\n\n#### Platform-specific\n\n- **Linux:** Unsupported.\n- **macOS:** This locks the cursor in a fixed location, which looks visually awkward."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setCursorGrab(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1727,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1727"}],"parameters":[{"id":786,"name":"grab","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"code","text":"`true`"},{"kind":"text","text":" to grab the cursor icon, "},{"kind":"code","text":"`false`"},{"kind":"text","text":" to release it."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorGrab"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorGrab"}},{"id":790,"name":"setCursorIcon","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1787,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1787"}],"signatures":[{"id":791,"name":"setCursorIcon","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Modifies the cursor icon of the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setCursorIcon('help');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1787,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1787"}],"parameters":[{"id":792,"name":"icon","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new cursor icon."}]},"type":{"type":"reference","target":670,"name":"CursorIcon","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorIcon"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorIcon"}},{"id":793,"name":"setCursorPosition","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1814,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1814"}],"signatures":[{"id":794,"name":"setCursorPosition","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Changes the position of the cursor in window coordinates."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow, LogicalPosition } from '@tauri-apps/api/window';\nawait appWindow.setCursorPosition(new LogicalPosition(600, 300));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1814,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1814"}],"parameters":[{"id":795,"name":"position","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new cursor position."}]},"type":{"type":"union","types":[{"type":"reference","target":1089,"name":"PhysicalPosition","package":"@tauri-apps/api"},{"type":"reference","target":1081,"name":"LogicalPosition","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorPosition"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorPosition"}},{"id":787,"name":"setCursorVisible","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1760,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1760"}],"signatures":[{"id":788,"name":"setCursorVisible","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Modifies the cursor's visibility.\n\n#### Platform-specific\n\n- **Windows:** The cursor is only hidden within the confines of the window.\n- **macOS:** The cursor is hidden as long as the window has input focus, even if the cursor is\n outside of the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setCursorVisible(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1760,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1760"}],"parameters":[{"id":789,"name":"visible","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"If "},{"kind":"code","text":"`false`"},{"kind":"text","text":", this will hide the cursor. If "},{"kind":"code","text":"`true`"},{"kind":"text","text":", this will show the cursor."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorVisible"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorVisible"}},{"id":752,"name":"setDecorations","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1352,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1352"}],"signatures":[{"id":753,"name":"setDecorations","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window should have borders and bars."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setDecorations(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1352,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1352"}],"parameters":[{"id":754,"name":"decorations","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window should have borders and bars."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setDecorations"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setDecorations"}},{"id":776,"name":"setFocus","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1625,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1625"}],"signatures":[{"id":777,"name":"setFocus","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Bring the window to front and focus."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setFocus();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1625,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1625"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setFocus"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setFocus"}},{"id":773,"name":"setFullscreen","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1599,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1599"}],"signatures":[{"id":774,"name":"setFullscreen","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window fullscreen state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setFullscreen(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1599,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1599"}],"parameters":[{"id":775,"name":"fullscreen","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window should go to fullscreen or not."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setFullscreen"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setFullscreen"}},{"id":778,"name":"setIcon","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1658,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1658"}],"signatures":[{"id":779,"name":"setIcon","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window icon."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setIcon('/tauri/awesome.png');\n```"},{"kind":"text","text":"\n\nNote that you need the "},{"kind":"code","text":"`icon-ico`"},{"kind":"text","text":" or "},{"kind":"code","text":"`icon-png`"},{"kind":"text","text":" Cargo features to use this API.\nTo enable it, change your Cargo.toml file:\n"},{"kind":"code","text":"```toml\n[dependencies]\ntauri = { version = \"...\", features = [\"...\", \"icon-png\"] }\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1658,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1658"}],"parameters":[{"id":780,"name":"icon","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Icon bytes or path to the icon file."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Uint8Array"},"name":"Uint8Array","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setIcon"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setIcon"}},{"id":796,"name":"setIgnoreCursorEvents","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1858,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1858"}],"signatures":[{"id":797,"name":"setIgnoreCursorEvents","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Changes the cursor events behavior."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setIgnoreCursorEvents(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1858,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1858"}],"parameters":[{"id":798,"name":"ignore","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"code","text":"`true`"},{"kind":"text","text":" to ignore the cursor events; "},{"kind":"code","text":"`false`"},{"kind":"text","text":" to process them as usual."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setIgnoreCursorEvents"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setIgnoreCursorEvents"}},{"id":767,"name":"setMaxSize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1514,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1514"}],"signatures":[{"id":768,"name":"setMaxSize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window maximum inner size. If the "},{"kind":"code","text":"`size`"},{"kind":"text","text":" argument is undefined, the constraint is unset."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow, LogicalSize } from '@tauri-apps/api/window';\nawait appWindow.setMaxSize(new LogicalSize(600, 500));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1514,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1514"}],"parameters":[{"id":769,"name":"size","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The logical or physical inner size, or "},{"kind":"code","text":"`null`"},{"kind":"text","text":" to unset the constraint."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"undefined"},{"type":"literal","value":null},{"type":"reference","target":1070,"name":"PhysicalSize","package":"@tauri-apps/api"},{"type":"reference","target":1062,"name":"LogicalSize","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMaxSize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMaxSize"}},{"id":724,"name":"setMaximizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1033,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1033"}],"signatures":[{"id":725,"name":"setMaximizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets whether the window's native maximize button is enabled or not.\nIf resizable is set to false, this setting is ignored.\n\n#### Platform-specific\n\n- **macOS:** Disables the \"zoom\" button in the window titlebar, which is also used to enter fullscreen mode.\n- **Linux / iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setMaximizable(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1033,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1033"}],"parameters":[{"id":726,"name":"maximizable","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMaximizable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMaximizable"}},{"id":764,"name":"setMinSize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1472,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1472"}],"signatures":[{"id":765,"name":"setMinSize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window minimum inner size. If the "},{"kind":"code","text":"`size`"},{"kind":"text","text":" argument is not provided, the constraint is unset."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow, PhysicalSize } from '@tauri-apps/api/window';\nawait appWindow.setMinSize(new PhysicalSize(600, 500));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1472,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1472"}],"parameters":[{"id":766,"name":"size","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The logical or physical inner size, or "},{"kind":"code","text":"`null`"},{"kind":"text","text":" to unset the constraint."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"undefined"},{"type":"literal","value":null},{"type":"reference","target":1070,"name":"PhysicalSize","package":"@tauri-apps/api"},{"type":"reference","target":1062,"name":"LogicalSize","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMinSize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMinSize"}},{"id":727,"name":"setMinimizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1065,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1065"}],"signatures":[{"id":728,"name":"setMinimizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets whether the window's native minimize button is enabled or not.\n\n#### Platform-specific\n\n- **Linux / iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setMinimizable(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1065,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1065"}],"parameters":[{"id":729,"name":"minimizable","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMinimizable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMinimizable"}},{"id":770,"name":"setPosition","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1556,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1556"}],"signatures":[{"id":771,"name":"setPosition","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window outer position."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow, LogicalPosition } from '@tauri-apps/api/window';\nawait appWindow.setPosition(new LogicalPosition(600, 500));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1556,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1556"}],"parameters":[{"id":772,"name":"position","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new position, in logical or physical pixels."}]},"type":{"type":"union","types":[{"type":"reference","target":1089,"name":"PhysicalPosition","package":"@tauri-apps/api"},{"type":"reference","target":1081,"name":"LogicalPosition","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setPosition"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setPosition"}},{"id":721,"name":"setResizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":999,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L999"}],"signatures":[{"id":722,"name":"setResizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Updates the window resizable flag."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setResizable(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":999,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L999"}],"parameters":[{"id":723,"name":"resizable","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setResizable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setResizable"}},{"id":761,"name":"setSize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1434,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1434"}],"signatures":[{"id":762,"name":"setSize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Resizes the window with a new inner size."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow, LogicalSize } from '@tauri-apps/api/window';\nawait appWindow.setSize(new LogicalSize(600, 500));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1434,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1434"}],"parameters":[{"id":763,"name":"size","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The logical or physical inner size."}]},"type":{"type":"union","types":[{"type":"reference","target":1070,"name":"PhysicalSize","package":"@tauri-apps/api"},{"type":"reference","target":1062,"name":"LogicalSize","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setSize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setSize"}},{"id":781,"name":"setSkipTaskbar","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1692,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1692"}],"signatures":[{"id":782,"name":"setSkipTaskbar","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window icon should be hidden from the taskbar or not.\n\n#### Platform-specific\n\n- **macOS:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setSkipTaskbar(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1692,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1692"}],"parameters":[{"id":783,"name":"skip","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"true to hide window icon, false to show it."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setSkipTaskbar"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setSkipTaskbar"}},{"id":733,"name":"setTitle","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1125,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1125"}],"signatures":[{"id":734,"name":"setTitle","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window title."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setTitle('Tauri');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1125,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1125"}],"parameters":[{"id":735,"name":"title","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new title"}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setTitle"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setTitle"}},{"id":746,"name":"show","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1276,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1276"}],"signatures":[{"id":747,"name":"show","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window visibility to true."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.show();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1276,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1276"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.show"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.show"}},{"id":799,"name":"startDragging","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1884,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1884"}],"signatures":[{"id":800,"name":"startDragging","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Starts dragging the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.startDragging();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1884,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1884"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.startDragging"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.startDragging"}},{"id":714,"name":"theme","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":899,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L899"}],"signatures":[{"id":715,"name":"theme","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current theme.\n\n#### Platform-specific\n\n- **macOS:** Theme was introduced on macOS 10.14. Returns "},{"kind":"code","text":"`light`"},{"kind":"text","text":" on macOS 10.13 and below."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst theme = await appWindow.theme();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window theme."}]}]},"sources":[{"fileName":"window.ts","line":899,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L899"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"literal","value":null},{"type":"reference","target":1109,"name":"Theme","package":"@tauri-apps/api"}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.theme"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.theme"}},{"id":712,"name":"title","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":869,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L869"}],"signatures":[{"id":713,"name":"title","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current title."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst title = await appWindow.title();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.3.0"}]}]},"sources":[{"fileName":"window.ts","line":869,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L869"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.title"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.title"}},{"id":740,"name":"toggleMaximize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1201,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1201"}],"signatures":[{"id":741,"name":"toggleMaximize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Toggles the window maximized state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.toggleMaximize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1201,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1201"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.toggleMaximize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.toggleMaximize"}},{"id":738,"name":"unmaximize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1176,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1176"}],"signatures":[{"id":739,"name":"unmaximize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Unmaximizes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.unmaximize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1176,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1176"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.unmaximize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.unmaximize"}},{"id":744,"name":"unminimize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1251,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1251"}],"signatures":[{"id":745,"name":"unminimize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Unminimizes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.unminimize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1251,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1251"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.unminimize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.unminimize"}},{"id":673,"name":"getByLabel","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"window.ts","line":2279,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2279"}],"signatures":[{"id":674,"name":"getByLabel","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the WebviewWindow for the webview associated with the given label."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { WebviewWindow } from '@tauri-apps/api/window';\nconst mainWindow = WebviewWindow.getByLabel('main');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The WebviewWindow instance to communicate with the webview or null if the webview doesn't exist."}]}]},"sources":[{"fileName":"window.ts","line":2279,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2279"}],"parameters":[{"id":675,"name":"label","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The webview window label."}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"reference","target":672,"name":"WebviewWindow","package":"@tauri-apps/api"}]}}]},{"id":676,"name":"getFocusedWindow","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"window.ts","line":2299,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2299"}],"signatures":[{"id":677,"name":"getFocusedWindow","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the focused window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { WebviewWindow } from '@tauri-apps/api/window';\nconst focusedWindow = WebviewWindow.getFocusedWindow();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The WebviewWindow instance to communicate with the webview or "},{"kind":"code","text":"`undefined`"},{"kind":"text","text":" if there is not any focused window."}]},{"tag":"@since","content":[{"kind":"text","text":"1.4"}]}]},"sources":[{"fileName":"window.ts","line":2299,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2299"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"literal","value":null},{"type":"reference","target":672,"name":"WebviewWindow","package":"@tauri-apps/api"}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Constructors","children":[678]},{"title":"Properties","children":[828,829]},{"title":"Methods","children":[716,750,840,748,684,688,708,700,698,692,704,696,706,694,702,710,830,736,742,807,822,813,819,804,801,816,825,835,686,690,718,682,755,730,758,784,790,793,787,752,776,773,778,796,767,724,764,727,770,721,761,781,733,746,799,714,712,740,738,744,673,676]}],"sources":[{"fileName":"window.ts","line":2227,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2227"}],"extendedTypes":[{"type":"reference","target":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager"},"name":"WindowManager","package":"@tauri-apps/api"}]},{"id":1111,"name":"Monitor","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Allows you to retrieve information about a given monitor."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":1112,"name":"name","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Human-readable name of the monitor"}]},"sources":[{"fileName":"window.ts","line":83,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L83"}],"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"intrinsic","name":"string"}]}},{"id":1114,"name":"position","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"the Top-left corner position of the monitor relative to the larger full screen area."}]},"sources":[{"fileName":"window.ts","line":87,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L87"}],"type":{"type":"reference","target":1089,"name":"PhysicalPosition","package":"@tauri-apps/api"}},{"id":1115,"name":"scaleFactor","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The scale factor that can be used to map physical pixels to logical pixels."}]},"sources":[{"fileName":"window.ts","line":89,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L89"}],"type":{"type":"intrinsic","name":"number"}},{"id":1113,"name":"size","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The monitor's resolution."}]},"sources":[{"fileName":"window.ts","line":85,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L85"}],"type":{"type":"reference","target":1070,"name":"PhysicalSize","package":"@tauri-apps/api"}}],"groups":[{"title":"Properties","children":[1112,1114,1115,1113]}],"sources":[{"fileName":"window.ts","line":81,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L81"}]},{"id":1116,"name":"ScaleFactorChanged","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"The payload for the "},{"kind":"code","text":"`scaleChange`"},{"kind":"text","text":" event."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"children":[{"id":1117,"name":"scaleFactor","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new window scale factor."}]},"sources":[{"fileName":"window.ts","line":99,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L99"}],"type":{"type":"intrinsic","name":"number"}},{"id":1118,"name":"size","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new window size"}]},"sources":[{"fileName":"window.ts","line":101,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L101"}],"type":{"type":"reference","target":1070,"name":"PhysicalSize","package":"@tauri-apps/api"}}],"groups":[{"title":"Properties","children":[1117,1118]}],"sources":[{"fileName":"window.ts","line":97,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L97"}]},{"id":1128,"name":"WindowOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Configuration for the window to create."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":1154,"name":"acceptFirstMouse","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether clicking an inactive window also clicks through to the webview on macOS."}]},"sources":[{"fileName":"window.ts","line":2410,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2410"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1147,"name":"alwaysOnTop","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window should always be on top of other windows or not."}]},"sources":[{"fileName":"window.ts","line":2382,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2382"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1130,"name":"center","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Show window in the center of the screen.."}]},"sources":[{"fileName":"window.ts","line":2344,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2344"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1159,"name":"closable","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window's native close button is enabled or not. Defaults to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"window.ts","line":2433,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2433"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1148,"name":"contentProtected","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Prevents the window contents from being captured by other apps."}]},"sources":[{"fileName":"window.ts","line":2384,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2384"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1146,"name":"decorations","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window should have borders and bars or not."}]},"sources":[{"fileName":"window.ts","line":2380,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2380"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1150,"name":"fileDropEnabled","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the file drop is enabled or not on the webview. By default it is enabled.\n\nDisabling it is required to use drag and drop on the frontend on Windows."}]},"sources":[{"fileName":"window.ts","line":2392,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2392"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1142,"name":"focus","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window will be initially focused or not."}]},"sources":[{"fileName":"window.ts","line":2368,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2368"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1141,"name":"fullscreen","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window is in fullscreen mode or not."}]},"sources":[{"fileName":"window.ts","line":2366,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2366"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1134,"name":"height","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The initial height."}]},"sources":[{"fileName":"window.ts","line":2352,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2352"}],"type":{"type":"intrinsic","name":"number"}},{"id":1153,"name":"hiddenTitle","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"If "},{"kind":"code","text":"`true`"},{"kind":"text","text":", sets the window title to be hidden on macOS."}]},"sources":[{"fileName":"window.ts","line":2406,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2406"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1138,"name":"maxHeight","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The maximum height. Only applies if "},{"kind":"code","text":"`maxWidth`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2360,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2360"}],"type":{"type":"intrinsic","name":"number"}},{"id":1137,"name":"maxWidth","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The maximum width. Only applies if "},{"kind":"code","text":"`maxHeight`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2358,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2358"}],"type":{"type":"intrinsic","name":"number"}},{"id":1157,"name":"maximizable","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window's native maximize button is enabled or not. Defaults to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"window.ts","line":2425,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2425"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1144,"name":"maximized","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window should be maximized upon creation or not."}]},"sources":[{"fileName":"window.ts","line":2376,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2376"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1136,"name":"minHeight","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The minimum height. Only applies if "},{"kind":"code","text":"`minWidth`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2356,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2356"}],"type":{"type":"intrinsic","name":"number"}},{"id":1135,"name":"minWidth","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The minimum width. Only applies if "},{"kind":"code","text":"`minHeight`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2354,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2354"}],"type":{"type":"intrinsic","name":"number"}},{"id":1158,"name":"minimizable","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window's native minimize button is enabled or not. Defaults to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"window.ts","line":2429,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2429"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1139,"name":"resizable","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window is resizable or not."}]},"sources":[{"fileName":"window.ts","line":2362,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2362"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1149,"name":"skipTaskbar","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether or not the window icon should be added to the taskbar."}]},"sources":[{"fileName":"window.ts","line":2386,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2386"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1155,"name":"tabbingIdentifier","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Defines the window [tabbing identifier](https://developer.apple.com/documentation/appkit/nswindow/1644704-tabbingidentifier) on macOS.\n\nWindows with the same tabbing identifier will be grouped together.\nIf the tabbing identifier is not set, automatic tabbing will be disabled."}]},"sources":[{"fileName":"window.ts","line":2417,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2417"}],"type":{"type":"intrinsic","name":"string"}},{"id":1151,"name":"theme","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The initial window theme. Defaults to the system theme.\n\nOnly implemented on Windows and macOS 10.14+."}]},"sources":[{"fileName":"window.ts","line":2398,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2398"}],"type":{"type":"reference","target":1109,"name":"Theme","package":"@tauri-apps/api"}},{"id":1140,"name":"title","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Window title."}]},"sources":[{"fileName":"window.ts","line":2364,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2364"}],"type":{"type":"intrinsic","name":"string"}},{"id":1152,"name":"titleBarStyle","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The style of the macOS title bar."}]},"sources":[{"fileName":"window.ts","line":2402,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2402"}],"type":{"type":"reference","target":1110,"name":"TitleBarStyle","package":"@tauri-apps/api"}},{"id":1143,"name":"transparent","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window is transparent or not.\nNote that on "},{"kind":"code","text":"`macOS`"},{"kind":"text","text":" this requires the "},{"kind":"code","text":"`macos-private-api`"},{"kind":"text","text":" feature flag, enabled under "},{"kind":"code","text":"`tauri.conf.json > tauri > macOSPrivateApi`"},{"kind":"text","text":".\nWARNING: Using private APIs on "},{"kind":"code","text":"`macOS`"},{"kind":"text","text":" prevents your application from being accepted to the "},{"kind":"code","text":"`App Store`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"window.ts","line":2374,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2374"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1129,"name":"url","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Remote URL or local file path to open.\n\n- URL such as "},{"kind":"code","text":"`https://github.com/tauri-apps`"},{"kind":"text","text":" is opened directly on a Tauri window.\n- data: URL such as "},{"kind":"code","text":"`data:text/html,...`"},{"kind":"text","text":" is only supported with the "},{"kind":"code","text":"`window-data-url`"},{"kind":"text","text":" Cargo feature for the "},{"kind":"code","text":"`tauri`"},{"kind":"text","text":" dependency.\n- local file path or route such as "},{"kind":"code","text":"`/path/to/page.html`"},{"kind":"text","text":" or "},{"kind":"code","text":"`/users`"},{"kind":"text","text":" is appended to the application URL (the devServer URL on development, or "},{"kind":"code","text":"`tauri://localhost/`"},{"kind":"text","text":" and "},{"kind":"code","text":"`https://tauri.localhost/`"},{"kind":"text","text":" on production)."}]},"sources":[{"fileName":"window.ts","line":2342,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2342"}],"type":{"type":"intrinsic","name":"string"}},{"id":1156,"name":"userAgent","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The user agent for the webview."}]},"sources":[{"fileName":"window.ts","line":2421,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2421"}],"type":{"type":"intrinsic","name":"string"}},{"id":1145,"name":"visible","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window should be immediately visible upon creation or not."}]},"sources":[{"fileName":"window.ts","line":2378,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2378"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1133,"name":"width","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The initial width."}]},"sources":[{"fileName":"window.ts","line":2350,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2350"}],"type":{"type":"intrinsic","name":"number"}},{"id":1131,"name":"x","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The initial vertical position. Only applies if "},{"kind":"code","text":"`y`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2346,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2346"}],"type":{"type":"intrinsic","name":"number"}},{"id":1132,"name":"y","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The initial horizontal position. Only applies if "},{"kind":"code","text":"`x`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2348,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2348"}],"type":{"type":"intrinsic","name":"number"}}],"groups":[{"title":"Properties","children":[1154,1147,1130,1159,1148,1146,1150,1142,1141,1134,1153,1138,1137,1157,1144,1136,1135,1158,1139,1149,1155,1151,1140,1152,1143,1129,1156,1145,1133,1131,1132]}],"sources":[{"fileName":"window.ts","line":2334,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2334"}]},{"id":670,"name":"CursorIcon","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"window.ts","line":237,"character":12,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L237"}],"type":{"type":"union","types":[{"type":"literal","value":"default"},{"type":"literal","value":"crosshair"},{"type":"literal","value":"hand"},{"type":"literal","value":"arrow"},{"type":"literal","value":"move"},{"type":"literal","value":"text"},{"type":"literal","value":"wait"},{"type":"literal","value":"help"},{"type":"literal","value":"progress"},{"type":"literal","value":"notAllowed"},{"type":"literal","value":"contextMenu"},{"type":"literal","value":"cell"},{"type":"literal","value":"verticalText"},{"type":"literal","value":"alias"},{"type":"literal","value":"copy"},{"type":"literal","value":"noDrop"},{"type":"literal","value":"grab"},{"type":"literal","value":"grabbing"},{"type":"literal","value":"allScroll"},{"type":"literal","value":"zoomIn"},{"type":"literal","value":"zoomOut"},{"type":"literal","value":"eResize"},{"type":"literal","value":"nResize"},{"type":"literal","value":"neResize"},{"type":"literal","value":"nwResize"},{"type":"literal","value":"sResize"},{"type":"literal","value":"seResize"},{"type":"literal","value":"swResize"},{"type":"literal","value":"wResize"},{"type":"literal","value":"ewResize"},{"type":"literal","value":"nsResize"},{"type":"literal","value":"neswResize"},{"type":"literal","value":"nwseResize"},{"type":"literal","value":"colResize"},{"type":"literal","value":"rowResize"}]}},{"id":1119,"name":"FileDropEvent","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[{"kind":"text","text":"The file drop event types."}]},"sources":[{"fileName":"window.ts","line":105,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L105"}],"type":{"type":"union","types":[{"type":"reflection","declaration":{"id":1120,"name":"__type","variant":"declaration","kind":65536,"flags":{},"children":[{"id":1122,"name":"paths","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":106,"character":21,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L106"}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}},{"id":1121,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":106,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L106"}],"type":{"type":"literal","value":"hover"}}],"groups":[{"title":"Properties","children":[1122,1121]}],"sources":[{"fileName":"window.ts","line":106,"character":4,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L106"}]}},{"type":"reflection","declaration":{"id":1123,"name":"__type","variant":"declaration","kind":65536,"flags":{},"children":[{"id":1125,"name":"paths","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":107,"character":20,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L107"}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}},{"id":1124,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":107,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L107"}],"type":{"type":"literal","value":"drop"}}],"groups":[{"title":"Properties","children":[1125,1124]}],"sources":[{"fileName":"window.ts","line":107,"character":4,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L107"}]}},{"type":"reflection","declaration":{"id":1126,"name":"__type","variant":"declaration","kind":65536,"flags":{},"children":[{"id":1127,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":108,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L108"}],"type":{"type":"literal","value":"cancel"}}],"groups":[{"title":"Properties","children":[1127]}],"sources":[{"fileName":"window.ts","line":108,"character":4,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L108"}]}}]}},{"id":1109,"name":"Theme","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"window.ts","line":73,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L73"}],"type":{"type":"union","types":[{"type":"literal","value":"light"},{"type":"literal","value":"dark"}]}},{"id":1110,"name":"TitleBarStyle","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"window.ts","line":74,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L74"}],"type":{"type":"union","types":[{"type":"literal","value":"visible"},{"type":"literal","value":"transparent"},{"type":"literal","value":"overlay"}]}},{"id":1061,"name":"appWindow","variant":"declaration","kind":32,"flags":{},"comment":{"summary":[{"kind":"text","text":"The WebviewWindow for the current window."}]},"sources":[{"fileName":"window.ts","line":2310,"character":4,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2310"}],"type":{"type":"reference","target":672,"name":"WebviewWindow","package":"@tauri-apps/api"}},{"id":1107,"name":"availableMonitors","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"window.ts","line":2515,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2515"}],"signatures":[{"id":1108,"name":"availableMonitors","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the list of all the monitors available on the system."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { availableMonitors } from '@tauri-apps/api/window';\nconst monitors = availableMonitors();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"window.ts","line":2515,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2515"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"array","elementType":{"type":"reference","target":1111,"name":"Monitor","package":"@tauri-apps/api"}}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":1103,"name":"currentMonitor","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"window.ts","line":2466,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2466"}],"signatures":[{"id":1104,"name":"currentMonitor","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the monitor on which the window currently resides.\nReturns "},{"kind":"code","text":"`null`"},{"kind":"text","text":" if current monitor can't be detected."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { currentMonitor } from '@tauri-apps/api/window';\nconst monitor = currentMonitor();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"window.ts","line":2466,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2466"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"reference","target":1111,"name":"Monitor","package":"@tauri-apps/api"},{"type":"literal","value":null}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":1059,"name":"getAll","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"window.ts","line":295,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L295"}],"signatures":[{"id":1060,"name":"getAll","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets a list of instances of "},{"kind":"code","text":"`WebviewWindow`"},{"kind":"text","text":" for all available webview windows."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"window.ts","line":295,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L295"}],"type":{"type":"array","elementType":{"type":"reference","target":672,"name":"WebviewWindow","package":"@tauri-apps/api"}}}]},{"id":1057,"name":"getCurrent","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"window.ts","line":283,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L283"}],"signatures":[{"id":1058,"name":"getCurrent","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Get an instance of "},{"kind":"code","text":"`WebviewWindow`"},{"kind":"text","text":" for the current webview window."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"window.ts","line":283,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L283"}],"type":{"type":"reference","target":672,"name":"WebviewWindow","package":"@tauri-apps/api"}}]},{"id":1105,"name":"primaryMonitor","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"window.ts","line":2491,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2491"}],"signatures":[{"id":1106,"name":"primaryMonitor","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the primary monitor of the system.\nReturns "},{"kind":"code","text":"`null`"},{"kind":"text","text":" if it can't identify any monitor as a primary one."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { primaryMonitor } from '@tauri-apps/api/window';\nconst monitor = primaryMonitor();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"window.ts","line":2491,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L2491"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"reference","target":1111,"name":"Monitor","package":"@tauri-apps/api"},{"type":"literal","value":null}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Enumerations","children":[1100]},{"title":"Classes","children":[1045,1081,1062,1089,1070,672]},{"title":"Interfaces","children":[1111,1116,1128]},{"title":"Type Aliases","children":[670,1119,1109,1110]},{"title":"Variables","children":[1061]},{"title":"Functions","children":[1107,1103,1059,1057,1105]}],"sources":[{"fileName":"window.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/076e1a81a/tooling/api/src/window.ts#L1"}]}],"groups":[{"title":"Modules","children":[1,12,24,30,72,107,206,227,332,346,359,376,452,458,629,647,669]}],"packageName":"@tauri-apps/api","symbolIdMap":{"1":{"sourceFileName":"src/app.ts","qualifiedName":""},"2":{"sourceFileName":"src/app.ts","qualifiedName":"getName"},"3":{"sourceFileName":"src/app.ts","qualifiedName":"getName"},"4":{"sourceFileName":"src/app.ts","qualifiedName":"getVersion"},"5":{"sourceFileName":"src/app.ts","qualifiedName":"getVersion"},"6":{"sourceFileName":"src/app.ts","qualifiedName":"getTauriVersion"},"7":{"sourceFileName":"src/app.ts","qualifiedName":"getTauriVersion"},"8":{"sourceFileName":"src/app.ts","qualifiedName":"show"},"9":{"sourceFileName":"src/app.ts","qualifiedName":"show"},"10":{"sourceFileName":"src/app.ts","qualifiedName":"hide"},"11":{"sourceFileName":"src/app.ts","qualifiedName":"hide"},"12":{"sourceFileName":"src/cli.ts","qualifiedName":""},"13":{"sourceFileName":"src/cli.ts","qualifiedName":"ArgMatch"},"14":{"sourceFileName":"src/cli.ts","qualifiedName":"ArgMatch.value"},"15":{"sourceFileName":"src/cli.ts","qualifiedName":"ArgMatch.occurrences"},"16":{"sourceFileName":"src/cli.ts","qualifiedName":"SubcommandMatch"},"17":{"sourceFileName":"src/cli.ts","qualifiedName":"SubcommandMatch.name"},"18":{"sourceFileName":"src/cli.ts","qualifiedName":"SubcommandMatch.matches"},"19":{"sourceFileName":"src/cli.ts","qualifiedName":"CliMatches"},"20":{"sourceFileName":"src/cli.ts","qualifiedName":"CliMatches.args"},"21":{"sourceFileName":"src/cli.ts","qualifiedName":"CliMatches.subcommand"},"22":{"sourceFileName":"src/cli.ts","qualifiedName":"getMatches"},"23":{"sourceFileName":"src/cli.ts","qualifiedName":"getMatches"},"24":{"sourceFileName":"src/clipboard.ts","qualifiedName":""},"25":{"sourceFileName":"src/clipboard.ts","qualifiedName":"writeText"},"26":{"sourceFileName":"src/clipboard.ts","qualifiedName":"writeText"},"27":{"sourceFileName":"src/clipboard.ts","qualifiedName":"text"},"28":{"sourceFileName":"src/clipboard.ts","qualifiedName":"readText"},"29":{"sourceFileName":"src/clipboard.ts","qualifiedName":"readText"},"30":{"sourceFileName":"src/dialog.ts","qualifiedName":""},"31":{"sourceFileName":"src/dialog.ts","qualifiedName":"DialogFilter"},"32":{"sourceFileName":"src/dialog.ts","qualifiedName":"DialogFilter.name"},"33":{"sourceFileName":"src/dialog.ts","qualifiedName":"DialogFilter.extensions"},"34":{"sourceFileName":"src/dialog.ts","qualifiedName":"OpenDialogOptions"},"35":{"sourceFileName":"src/dialog.ts","qualifiedName":"OpenDialogOptions.title"},"36":{"sourceFileName":"src/dialog.ts","qualifiedName":"OpenDialogOptions.filters"},"37":{"sourceFileName":"src/dialog.ts","qualifiedName":"OpenDialogOptions.defaultPath"},"38":{"sourceFileName":"src/dialog.ts","qualifiedName":"OpenDialogOptions.multiple"},"39":{"sourceFileName":"src/dialog.ts","qualifiedName":"OpenDialogOptions.directory"},"40":{"sourceFileName":"src/dialog.ts","qualifiedName":"OpenDialogOptions.recursive"},"41":{"sourceFileName":"src/dialog.ts","qualifiedName":"SaveDialogOptions"},"42":{"sourceFileName":"src/dialog.ts","qualifiedName":"SaveDialogOptions.title"},"43":{"sourceFileName":"src/dialog.ts","qualifiedName":"SaveDialogOptions.filters"},"44":{"sourceFileName":"src/dialog.ts","qualifiedName":"SaveDialogOptions.defaultPath"},"45":{"sourceFileName":"src/dialog.ts","qualifiedName":"MessageDialogOptions"},"46":{"sourceFileName":"src/dialog.ts","qualifiedName":"MessageDialogOptions.title"},"47":{"sourceFileName":"src/dialog.ts","qualifiedName":"MessageDialogOptions.type"},"48":{"sourceFileName":"src/dialog.ts","qualifiedName":"MessageDialogOptions.okLabel"},"49":{"sourceFileName":"src/dialog.ts","qualifiedName":"ConfirmDialogOptions"},"50":{"sourceFileName":"src/dialog.ts","qualifiedName":"ConfirmDialogOptions.title"},"51":{"sourceFileName":"src/dialog.ts","qualifiedName":"ConfirmDialogOptions.type"},"52":{"sourceFileName":"src/dialog.ts","qualifiedName":"ConfirmDialogOptions.okLabel"},"53":{"sourceFileName":"src/dialog.ts","qualifiedName":"ConfirmDialogOptions.cancelLabel"},"54":{"sourceFileName":"src/dialog.ts","qualifiedName":"open"},"55":{"sourceFileName":"src/dialog.ts","qualifiedName":"open"},"56":{"sourceFileName":"src/dialog.ts","qualifiedName":"options"},"57":{"sourceFileName":"src/dialog.ts","qualifiedName":"save"},"58":{"sourceFileName":"src/dialog.ts","qualifiedName":"save"},"59":{"sourceFileName":"src/dialog.ts","qualifiedName":"options"},"60":{"sourceFileName":"src/dialog.ts","qualifiedName":"message"},"61":{"sourceFileName":"src/dialog.ts","qualifiedName":"message"},"62":{"sourceFileName":"src/dialog.ts","qualifiedName":"message"},"63":{"sourceFileName":"src/dialog.ts","qualifiedName":"options"},"64":{"sourceFileName":"src/dialog.ts","qualifiedName":"ask"},"65":{"sourceFileName":"src/dialog.ts","qualifiedName":"ask"},"66":{"sourceFileName":"src/dialog.ts","qualifiedName":"message"},"67":{"sourceFileName":"src/dialog.ts","qualifiedName":"options"},"68":{"sourceFileName":"src/dialog.ts","qualifiedName":"confirm"},"69":{"sourceFileName":"src/dialog.ts","qualifiedName":"confirm"},"70":{"sourceFileName":"src/dialog.ts","qualifiedName":"message"},"71":{"sourceFileName":"src/dialog.ts","qualifiedName":"options"},"72":{"sourceFileName":"src/event.ts","qualifiedName":""},"73":{"sourceFileName":"src/event.ts","qualifiedName":"EventName"},"74":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent"},"75":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_RESIZED"},"76":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_MOVED"},"77":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_CLOSE_REQUESTED"},"78":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_CREATED"},"79":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_DESTROYED"},"80":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_FOCUS"},"81":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_BLUR"},"82":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_SCALE_FACTOR_CHANGED"},"83":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_THEME_CHANGED"},"84":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_FILE_DROP"},"85":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_FILE_DROP_HOVER"},"86":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_FILE_DROP_CANCELLED"},"87":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.MENU"},"88":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.CHECK_UPDATE"},"89":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.UPDATE_AVAILABLE"},"90":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.INSTALL_UPDATE"},"91":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.STATUS_UPDATE"},"92":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.DOWNLOAD_PROGRESS"},"93":{"sourceFileName":"src/event.ts","qualifiedName":"listen"},"94":{"sourceFileName":"src/event.ts","qualifiedName":"listen"},"95":{"sourceFileName":"src/event.ts","qualifiedName":"T"},"96":{"sourceFileName":"src/event.ts","qualifiedName":"event"},"97":{"sourceFileName":"src/event.ts","qualifiedName":"handler"},"98":{"sourceFileName":"src/event.ts","qualifiedName":"once"},"99":{"sourceFileName":"src/event.ts","qualifiedName":"once"},"100":{"sourceFileName":"src/event.ts","qualifiedName":"T"},"101":{"sourceFileName":"src/event.ts","qualifiedName":"event"},"102":{"sourceFileName":"src/event.ts","qualifiedName":"handler"},"103":{"sourceFileName":"src/event.ts","qualifiedName":"emit"},"104":{"sourceFileName":"src/event.ts","qualifiedName":"emit"},"105":{"sourceFileName":"src/event.ts","qualifiedName":"event"},"106":{"sourceFileName":"src/event.ts","qualifiedName":"payload"},"107":{"sourceFileName":"src/fs.ts","qualifiedName":""},"108":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory"},"109":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Audio"},"110":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Cache"},"111":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Config"},"112":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Data"},"113":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.LocalData"},"114":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Desktop"},"115":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Document"},"116":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Download"},"117":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Executable"},"118":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Font"},"119":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Home"},"120":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Picture"},"121":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Public"},"122":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Runtime"},"123":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Template"},"124":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Video"},"125":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Resource"},"126":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.App"},"127":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Log"},"128":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Temp"},"129":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.AppConfig"},"130":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.AppData"},"131":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.AppLocalData"},"132":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.AppCache"},"133":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.AppLog"},"134":{"sourceFileName":"src/fs.ts","qualifiedName":"FsOptions"},"135":{"sourceFileName":"src/fs.ts","qualifiedName":"FsOptions.dir"},"136":{"sourceFileName":"src/fs.ts","qualifiedName":"FsDirOptions"},"137":{"sourceFileName":"src/fs.ts","qualifiedName":"FsDirOptions.dir"},"138":{"sourceFileName":"src/fs.ts","qualifiedName":"FsDirOptions.recursive"},"139":{"sourceFileName":"src/fs.ts","qualifiedName":"FsTextFileOption"},"140":{"sourceFileName":"src/fs.ts","qualifiedName":"FsTextFileOption.path"},"141":{"sourceFileName":"src/fs.ts","qualifiedName":"FsTextFileOption.contents"},"142":{"sourceFileName":"src/fs.ts","qualifiedName":"BinaryFileContents"},"143":{"sourceFileName":"src/fs.ts","qualifiedName":"FsBinaryFileOption"},"144":{"sourceFileName":"src/fs.ts","qualifiedName":"FsBinaryFileOption.path"},"145":{"sourceFileName":"src/fs.ts","qualifiedName":"FsBinaryFileOption.contents"},"146":{"sourceFileName":"src/fs.ts","qualifiedName":"FileEntry"},"147":{"sourceFileName":"src/fs.ts","qualifiedName":"FileEntry.path"},"148":{"sourceFileName":"src/fs.ts","qualifiedName":"FileEntry.name"},"149":{"sourceFileName":"src/fs.ts","qualifiedName":"FileEntry.children"},"150":{"sourceFileName":"src/fs.ts","qualifiedName":"Dir"},"151":{"sourceFileName":"src/fs.ts","qualifiedName":"readTextFile"},"152":{"sourceFileName":"src/fs.ts","qualifiedName":"readTextFile"},"153":{"sourceFileName":"src/fs.ts","qualifiedName":"filePath"},"154":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"155":{"sourceFileName":"src/fs.ts","qualifiedName":"readBinaryFile"},"156":{"sourceFileName":"src/fs.ts","qualifiedName":"readBinaryFile"},"157":{"sourceFileName":"src/fs.ts","qualifiedName":"filePath"},"158":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"159":{"sourceFileName":"src/fs.ts","qualifiedName":"writeTextFile"},"160":{"sourceFileName":"src/fs.ts","qualifiedName":"writeTextFile"},"161":{"sourceFileName":"src/fs.ts","qualifiedName":"path"},"162":{"sourceFileName":"src/fs.ts","qualifiedName":"contents"},"163":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"164":{"sourceFileName":"src/fs.ts","qualifiedName":"writeTextFile"},"165":{"sourceFileName":"src/fs.ts","qualifiedName":"file"},"166":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"167":{"sourceFileName":"src/fs.ts","qualifiedName":"writeFile"},"168":{"sourceFileName":"src/fs.ts","qualifiedName":"writeBinaryFile"},"169":{"sourceFileName":"src/fs.ts","qualifiedName":"writeBinaryFile"},"170":{"sourceFileName":"src/fs.ts","qualifiedName":"path"},"171":{"sourceFileName":"src/fs.ts","qualifiedName":"contents"},"172":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"173":{"sourceFileName":"src/fs.ts","qualifiedName":"writeBinaryFile"},"174":{"sourceFileName":"src/fs.ts","qualifiedName":"file"},"175":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"176":{"sourceFileName":"src/fs.ts","qualifiedName":"readDir"},"177":{"sourceFileName":"src/fs.ts","qualifiedName":"readDir"},"178":{"sourceFileName":"src/fs.ts","qualifiedName":"dir"},"179":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"180":{"sourceFileName":"src/fs.ts","qualifiedName":"createDir"},"181":{"sourceFileName":"src/fs.ts","qualifiedName":"createDir"},"182":{"sourceFileName":"src/fs.ts","qualifiedName":"dir"},"183":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"184":{"sourceFileName":"src/fs.ts","qualifiedName":"removeDir"},"185":{"sourceFileName":"src/fs.ts","qualifiedName":"removeDir"},"186":{"sourceFileName":"src/fs.ts","qualifiedName":"dir"},"187":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"188":{"sourceFileName":"src/fs.ts","qualifiedName":"copyFile"},"189":{"sourceFileName":"src/fs.ts","qualifiedName":"copyFile"},"190":{"sourceFileName":"src/fs.ts","qualifiedName":"source"},"191":{"sourceFileName":"src/fs.ts","qualifiedName":"destination"},"192":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"193":{"sourceFileName":"src/fs.ts","qualifiedName":"removeFile"},"194":{"sourceFileName":"src/fs.ts","qualifiedName":"removeFile"},"195":{"sourceFileName":"src/fs.ts","qualifiedName":"file"},"196":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"197":{"sourceFileName":"src/fs.ts","qualifiedName":"renameFile"},"198":{"sourceFileName":"src/fs.ts","qualifiedName":"renameFile"},"199":{"sourceFileName":"src/fs.ts","qualifiedName":"oldPath"},"200":{"sourceFileName":"src/fs.ts","qualifiedName":"newPath"},"201":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"202":{"sourceFileName":"src/fs.ts","qualifiedName":"exists"},"203":{"sourceFileName":"src/fs.ts","qualifiedName":"exists"},"204":{"sourceFileName":"src/fs.ts","qualifiedName":"path"},"205":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"206":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":""},"207":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"ShortcutHandler"},"208":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"__type"},"209":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"__type"},"210":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"shortcut"},"211":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"register"},"212":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"register"},"213":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"shortcut"},"214":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"handler"},"215":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"registerAll"},"216":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"registerAll"},"217":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"shortcuts"},"218":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"handler"},"219":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"isRegistered"},"220":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"isRegistered"},"221":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"shortcut"},"222":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"unregister"},"223":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"unregister"},"224":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"shortcut"},"225":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"unregisterAll"},"226":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"unregisterAll"},"227":{"sourceFileName":"src/http.ts","qualifiedName":""},"228":{"sourceFileName":"src/http.ts","qualifiedName":"Duration"},"229":{"sourceFileName":"src/http.ts","qualifiedName":"Duration.secs"},"230":{"sourceFileName":"src/http.ts","qualifiedName":"Duration.nanos"},"231":{"sourceFileName":"src/http.ts","qualifiedName":"ClientOptions"},"232":{"sourceFileName":"src/http.ts","qualifiedName":"ClientOptions.maxRedirections"},"233":{"sourceFileName":"src/http.ts","qualifiedName":"ClientOptions.connectTimeout"},"234":{"sourceFileName":"src/http.ts","qualifiedName":"Part"},"235":{"sourceFileName":"src/http.ts","qualifiedName":"HttpVerb"},"236":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions"},"237":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions.method"},"238":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions.url"},"239":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions.headers"},"240":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions.query"},"241":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions.body"},"242":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions.timeout"},"243":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions.responseType"},"244":{"sourceFileName":"src/http.ts","qualifiedName":"RequestOptions"},"245":{"sourceFileName":"src/http.ts","qualifiedName":"FetchOptions"},"246":{"sourceFileName":"src/http.ts","qualifiedName":"getClient"},"247":{"sourceFileName":"src/http.ts","qualifiedName":"getClient"},"248":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"249":{"sourceFileName":"src/http.ts","qualifiedName":"fetch"},"250":{"sourceFileName":"src/http.ts","qualifiedName":"fetch"},"251":{"sourceFileName":"src/http.ts","qualifiedName":"T"},"252":{"sourceFileName":"src/http.ts","qualifiedName":"url"},"253":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"254":{"sourceFileName":"src/http.ts","qualifiedName":"Body"},"255":{"sourceFileName":"src/http.ts","qualifiedName":"Body.form"},"256":{"sourceFileName":"src/http.ts","qualifiedName":"Body.form"},"257":{"sourceFileName":"src/http.ts","qualifiedName":"data"},"258":{"sourceFileName":"src/http.ts","qualifiedName":"Body.json"},"259":{"sourceFileName":"src/http.ts","qualifiedName":"Body.json"},"260":{"sourceFileName":"src/http.ts","qualifiedName":"data"},"261":{"sourceFileName":"src/http.ts","qualifiedName":"Body.text"},"262":{"sourceFileName":"src/http.ts","qualifiedName":"Body.text"},"263":{"sourceFileName":"src/http.ts","qualifiedName":"value"},"264":{"sourceFileName":"src/http.ts","qualifiedName":"Body.bytes"},"265":{"sourceFileName":"src/http.ts","qualifiedName":"Body.bytes"},"266":{"sourceFileName":"src/http.ts","qualifiedName":"bytes"},"271":{"sourceFileName":"src/http.ts","qualifiedName":"Body.type"},"272":{"sourceFileName":"src/http.ts","qualifiedName":"Body.payload"},"273":{"sourceFileName":"src/http.ts","qualifiedName":"Client"},"277":{"sourceFileName":"src/http.ts","qualifiedName":"Client.id"},"278":{"sourceFileName":"src/http.ts","qualifiedName":"Client.drop"},"279":{"sourceFileName":"src/http.ts","qualifiedName":"Client.drop"},"280":{"sourceFileName":"src/http.ts","qualifiedName":"Client.request"},"281":{"sourceFileName":"src/http.ts","qualifiedName":"Client.request"},"282":{"sourceFileName":"src/http.ts","qualifiedName":"T"},"283":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"284":{"sourceFileName":"src/http.ts","qualifiedName":"Client.get"},"285":{"sourceFileName":"src/http.ts","qualifiedName":"Client.get"},"286":{"sourceFileName":"src/http.ts","qualifiedName":"T"},"287":{"sourceFileName":"src/http.ts","qualifiedName":"url"},"288":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"289":{"sourceFileName":"src/http.ts","qualifiedName":"Client.post"},"290":{"sourceFileName":"src/http.ts","qualifiedName":"Client.post"},"291":{"sourceFileName":"src/http.ts","qualifiedName":"T"},"292":{"sourceFileName":"src/http.ts","qualifiedName":"url"},"293":{"sourceFileName":"src/http.ts","qualifiedName":"body"},"294":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"295":{"sourceFileName":"src/http.ts","qualifiedName":"Client.put"},"296":{"sourceFileName":"src/http.ts","qualifiedName":"Client.put"},"297":{"sourceFileName":"src/http.ts","qualifiedName":"T"},"298":{"sourceFileName":"src/http.ts","qualifiedName":"url"},"299":{"sourceFileName":"src/http.ts","qualifiedName":"body"},"300":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"301":{"sourceFileName":"src/http.ts","qualifiedName":"Client.patch"},"302":{"sourceFileName":"src/http.ts","qualifiedName":"Client.patch"},"303":{"sourceFileName":"src/http.ts","qualifiedName":"T"},"304":{"sourceFileName":"src/http.ts","qualifiedName":"url"},"305":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"306":{"sourceFileName":"src/http.ts","qualifiedName":"Client.delete"},"307":{"sourceFileName":"src/http.ts","qualifiedName":"Client.delete"},"308":{"sourceFileName":"src/http.ts","qualifiedName":"T"},"309":{"sourceFileName":"src/http.ts","qualifiedName":"url"},"310":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"311":{"sourceFileName":"src/http.ts","qualifiedName":"Response"},"316":{"sourceFileName":"src/http.ts","qualifiedName":"Response.url"},"317":{"sourceFileName":"src/http.ts","qualifiedName":"Response.status"},"318":{"sourceFileName":"src/http.ts","qualifiedName":"Response.ok"},"319":{"sourceFileName":"src/http.ts","qualifiedName":"Response.headers"},"320":{"sourceFileName":"src/http.ts","qualifiedName":"Response.rawHeaders"},"321":{"sourceFileName":"src/http.ts","qualifiedName":"Response.data"},"322":{"sourceFileName":"src/http.ts","qualifiedName":"Response.T"},"323":{"sourceFileName":"src/http.ts","qualifiedName":"ResponseType"},"324":{"sourceFileName":"src/http.ts","qualifiedName":"ResponseType.JSON"},"325":{"sourceFileName":"src/http.ts","qualifiedName":"ResponseType.Text"},"326":{"sourceFileName":"src/http.ts","qualifiedName":"ResponseType.Binary"},"327":{"sourceFileName":"src/http.ts","qualifiedName":"FilePart"},"328":{"sourceFileName":"src/http.ts","qualifiedName":"FilePart.file"},"329":{"sourceFileName":"src/http.ts","qualifiedName":"FilePart.mime"},"330":{"sourceFileName":"src/http.ts","qualifiedName":"FilePart.fileName"},"331":{"sourceFileName":"src/http.ts","qualifiedName":"FilePart.T"},"332":{"sourceFileName":"src/mocks.ts","qualifiedName":""},"333":{"sourceFileName":"src/mocks.ts","qualifiedName":"mockIPC"},"334":{"sourceFileName":"src/mocks.ts","qualifiedName":"mockIPC"},"335":{"sourceFileName":"src/mocks.ts","qualifiedName":"cb"},"336":{"sourceFileName":"src/mocks.ts","qualifiedName":"__type"},"337":{"sourceFileName":"src/mocks.ts","qualifiedName":"__type"},"338":{"sourceFileName":"src/mocks.ts","qualifiedName":"cmd"},"339":{"sourceFileName":"src/mocks.ts","qualifiedName":"args"},"340":{"sourceFileName":"src/mocks.ts","qualifiedName":"mockWindows"},"341":{"sourceFileName":"src/mocks.ts","qualifiedName":"mockWindows"},"342":{"sourceFileName":"src/mocks.ts","qualifiedName":"current"},"343":{"sourceFileName":"src/mocks.ts","qualifiedName":"additionalWindows"},"344":{"sourceFileName":"src/mocks.ts","qualifiedName":"clearMocks"},"345":{"sourceFileName":"src/mocks.ts","qualifiedName":"clearMocks"},"346":{"sourceFileName":"src/notification.ts","qualifiedName":""},"347":{"sourceFileName":"src/notification.ts","qualifiedName":"Options"},"348":{"sourceFileName":"src/notification.ts","qualifiedName":"Options.title"},"349":{"sourceFileName":"src/notification.ts","qualifiedName":"Options.body"},"350":{"sourceFileName":"src/notification.ts","qualifiedName":"Options.icon"},"351":{"sourceFileName":"src/notification.ts","qualifiedName":"Permission"},"352":{"sourceFileName":"src/notification.ts","qualifiedName":"sendNotification"},"353":{"sourceFileName":"src/notification.ts","qualifiedName":"sendNotification"},"354":{"sourceFileName":"src/notification.ts","qualifiedName":"options"},"355":{"sourceFileName":"src/notification.ts","qualifiedName":"requestPermission"},"356":{"sourceFileName":"src/notification.ts","qualifiedName":"requestPermission"},"357":{"sourceFileName":"src/notification.ts","qualifiedName":"isPermissionGranted"},"358":{"sourceFileName":"src/notification.ts","qualifiedName":"isPermissionGranted"},"359":{"sourceFileName":"src/os.ts","qualifiedName":""},"360":{"sourceFileName":"src/os.ts","qualifiedName":"EOL"},"361":{"sourceFileName":"src/os.ts","qualifiedName":"platform"},"362":{"sourceFileName":"src/os.ts","qualifiedName":"platform"},"363":{"sourceFileName":"src/os.ts","qualifiedName":"version"},"364":{"sourceFileName":"src/os.ts","qualifiedName":"version"},"365":{"sourceFileName":"src/os.ts","qualifiedName":"type"},"366":{"sourceFileName":"src/os.ts","qualifiedName":"type"},"367":{"sourceFileName":"src/os.ts","qualifiedName":"arch"},"368":{"sourceFileName":"src/os.ts","qualifiedName":"arch"},"369":{"sourceFileName":"src/os.ts","qualifiedName":"tempdir"},"370":{"sourceFileName":"src/os.ts","qualifiedName":"tempdir"},"371":{"sourceFileName":"src/os.ts","qualifiedName":"locale"},"372":{"sourceFileName":"src/os.ts","qualifiedName":"locale"},"373":{"sourceFileName":"src/os.ts","qualifiedName":"Platform"},"374":{"sourceFileName":"src/os.ts","qualifiedName":"OsType"},"375":{"sourceFileName":"src/os.ts","qualifiedName":"Arch"},"376":{"sourceFileName":"src/path.ts","qualifiedName":""},"377":{"sourceFileName":"src/path.ts","qualifiedName":"appDir"},"378":{"sourceFileName":"src/path.ts","qualifiedName":"appDir"},"379":{"sourceFileName":"src/path.ts","qualifiedName":"appConfigDir"},"380":{"sourceFileName":"src/path.ts","qualifiedName":"appConfigDir"},"381":{"sourceFileName":"src/path.ts","qualifiedName":"appDataDir"},"382":{"sourceFileName":"src/path.ts","qualifiedName":"appDataDir"},"383":{"sourceFileName":"src/path.ts","qualifiedName":"appLocalDataDir"},"384":{"sourceFileName":"src/path.ts","qualifiedName":"appLocalDataDir"},"385":{"sourceFileName":"src/path.ts","qualifiedName":"appCacheDir"},"386":{"sourceFileName":"src/path.ts","qualifiedName":"appCacheDir"},"387":{"sourceFileName":"src/path.ts","qualifiedName":"appLogDir"},"388":{"sourceFileName":"src/path.ts","qualifiedName":"appLogDir"},"389":{"sourceFileName":"src/path.ts","qualifiedName":"audioDir"},"390":{"sourceFileName":"src/path.ts","qualifiedName":"audioDir"},"391":{"sourceFileName":"src/path.ts","qualifiedName":"cacheDir"},"392":{"sourceFileName":"src/path.ts","qualifiedName":"cacheDir"},"393":{"sourceFileName":"src/path.ts","qualifiedName":"configDir"},"394":{"sourceFileName":"src/path.ts","qualifiedName":"configDir"},"395":{"sourceFileName":"src/path.ts","qualifiedName":"dataDir"},"396":{"sourceFileName":"src/path.ts","qualifiedName":"dataDir"},"397":{"sourceFileName":"src/path.ts","qualifiedName":"desktopDir"},"398":{"sourceFileName":"src/path.ts","qualifiedName":"desktopDir"},"399":{"sourceFileName":"src/path.ts","qualifiedName":"documentDir"},"400":{"sourceFileName":"src/path.ts","qualifiedName":"documentDir"},"401":{"sourceFileName":"src/path.ts","qualifiedName":"downloadDir"},"402":{"sourceFileName":"src/path.ts","qualifiedName":"downloadDir"},"403":{"sourceFileName":"src/path.ts","qualifiedName":"executableDir"},"404":{"sourceFileName":"src/path.ts","qualifiedName":"executableDir"},"405":{"sourceFileName":"src/path.ts","qualifiedName":"fontDir"},"406":{"sourceFileName":"src/path.ts","qualifiedName":"fontDir"},"407":{"sourceFileName":"src/path.ts","qualifiedName":"homeDir"},"408":{"sourceFileName":"src/path.ts","qualifiedName":"homeDir"},"409":{"sourceFileName":"src/path.ts","qualifiedName":"localDataDir"},"410":{"sourceFileName":"src/path.ts","qualifiedName":"localDataDir"},"411":{"sourceFileName":"src/path.ts","qualifiedName":"pictureDir"},"412":{"sourceFileName":"src/path.ts","qualifiedName":"pictureDir"},"413":{"sourceFileName":"src/path.ts","qualifiedName":"publicDir"},"414":{"sourceFileName":"src/path.ts","qualifiedName":"publicDir"},"415":{"sourceFileName":"src/path.ts","qualifiedName":"resourceDir"},"416":{"sourceFileName":"src/path.ts","qualifiedName":"resourceDir"},"417":{"sourceFileName":"src/path.ts","qualifiedName":"resolveResource"},"418":{"sourceFileName":"src/path.ts","qualifiedName":"resolveResource"},"419":{"sourceFileName":"src/path.ts","qualifiedName":"resourcePath"},"420":{"sourceFileName":"src/path.ts","qualifiedName":"runtimeDir"},"421":{"sourceFileName":"src/path.ts","qualifiedName":"runtimeDir"},"422":{"sourceFileName":"src/path.ts","qualifiedName":"templateDir"},"423":{"sourceFileName":"src/path.ts","qualifiedName":"templateDir"},"424":{"sourceFileName":"src/path.ts","qualifiedName":"videoDir"},"425":{"sourceFileName":"src/path.ts","qualifiedName":"videoDir"},"426":{"sourceFileName":"src/path.ts","qualifiedName":"logDir"},"427":{"sourceFileName":"src/path.ts","qualifiedName":"logDir"},"428":{"sourceFileName":"src/path.ts","qualifiedName":"sep"},"429":{"sourceFileName":"src/path.ts","qualifiedName":"delimiter"},"430":{"sourceFileName":"src/path.ts","qualifiedName":"resolve"},"431":{"sourceFileName":"src/path.ts","qualifiedName":"resolve"},"432":{"sourceFileName":"src/path.ts","qualifiedName":"paths"},"433":{"sourceFileName":"src/path.ts","qualifiedName":"normalize"},"434":{"sourceFileName":"src/path.ts","qualifiedName":"normalize"},"435":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"436":{"sourceFileName":"src/path.ts","qualifiedName":"join"},"437":{"sourceFileName":"src/path.ts","qualifiedName":"join"},"438":{"sourceFileName":"src/path.ts","qualifiedName":"paths"},"439":{"sourceFileName":"src/path.ts","qualifiedName":"dirname"},"440":{"sourceFileName":"src/path.ts","qualifiedName":"dirname"},"441":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"442":{"sourceFileName":"src/path.ts","qualifiedName":"extname"},"443":{"sourceFileName":"src/path.ts","qualifiedName":"extname"},"444":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"445":{"sourceFileName":"src/path.ts","qualifiedName":"basename"},"446":{"sourceFileName":"src/path.ts","qualifiedName":"basename"},"447":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"448":{"sourceFileName":"src/path.ts","qualifiedName":"ext"},"449":{"sourceFileName":"src/path.ts","qualifiedName":"isAbsolute"},"450":{"sourceFileName":"src/path.ts","qualifiedName":"isAbsolute"},"451":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"452":{"sourceFileName":"src/process.ts","qualifiedName":""},"453":{"sourceFileName":"src/process.ts","qualifiedName":"exit"},"454":{"sourceFileName":"src/process.ts","qualifiedName":"exit"},"455":{"sourceFileName":"src/process.ts","qualifiedName":"exitCode"},"456":{"sourceFileName":"src/process.ts","qualifiedName":"relaunch"},"457":{"sourceFileName":"src/process.ts","qualifiedName":"relaunch"},"458":{"sourceFileName":"src/shell.ts","qualifiedName":""},"459":{"sourceFileName":"src/shell.ts","qualifiedName":"Command"},"460":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.sidecar"},"461":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.sidecar"},"462":{"sourceFileName":"src/shell.ts","qualifiedName":"program"},"463":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"464":{"sourceFileName":"src/shell.ts","qualifiedName":"options"},"465":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.__constructor"},"466":{"sourceFileName":"src/shell.ts","qualifiedName":"Command"},"467":{"sourceFileName":"src/shell.ts","qualifiedName":"program"},"468":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"469":{"sourceFileName":"src/shell.ts","qualifiedName":"options"},"473":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.stdout"},"474":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.stderr"},"475":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.spawn"},"476":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.spawn"},"477":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.execute"},"478":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.execute"},"479":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.addListener"},"480":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.addListener"},"481":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"482":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"483":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"484":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"485":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"486":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeListener"},"487":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeListener"},"488":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"489":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"490":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"491":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"492":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"493":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.on"},"494":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.on"},"495":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"496":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"497":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"498":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"499":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"500":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.once"},"501":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.once"},"502":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"503":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"504":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"505":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"506":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"507":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.off"},"508":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.off"},"509":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"510":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"511":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"512":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"513":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"514":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeAllListeners"},"515":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeAllListeners"},"516":{"sourceFileName":"src/shell.ts","qualifiedName":"event"},"521":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.listenerCount"},"522":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.listenerCount"},"523":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"524":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependListener"},"525":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependListener"},"526":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"527":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"528":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"529":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"530":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"531":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependOnceListener"},"532":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependOnceListener"},"533":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"534":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"535":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"536":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"537":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"538":{"sourceFileName":"src/shell.ts","qualifiedName":"Child"},"539":{"sourceFileName":"src/shell.ts","qualifiedName":"Child.__constructor"},"540":{"sourceFileName":"src/shell.ts","qualifiedName":"Child"},"541":{"sourceFileName":"src/shell.ts","qualifiedName":"pid"},"542":{"sourceFileName":"src/shell.ts","qualifiedName":"Child.pid"},"543":{"sourceFileName":"src/shell.ts","qualifiedName":"Child.write"},"544":{"sourceFileName":"src/shell.ts","qualifiedName":"Child.write"},"545":{"sourceFileName":"src/shell.ts","qualifiedName":"data"},"546":{"sourceFileName":"src/shell.ts","qualifiedName":"Child.kill"},"547":{"sourceFileName":"src/shell.ts","qualifiedName":"Child.kill"},"548":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter"},"551":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.E"},"556":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.addListener"},"557":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.addListener"},"558":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"559":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"560":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"561":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"562":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"563":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeListener"},"564":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeListener"},"565":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"566":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"567":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"568":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"569":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"570":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.on"},"571":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.on"},"572":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"573":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"574":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"575":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"576":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"577":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.once"},"578":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.once"},"579":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"580":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"581":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"582":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"583":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"584":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.off"},"585":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.off"},"586":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"587":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"588":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"589":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"590":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"591":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeAllListeners"},"592":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeAllListeners"},"593":{"sourceFileName":"src/shell.ts","qualifiedName":"event"},"598":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.listenerCount"},"599":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.listenerCount"},"600":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"601":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependListener"},"602":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependListener"},"603":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"604":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"605":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"606":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"607":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"608":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependOnceListener"},"609":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependOnceListener"},"610":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"611":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"612":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"613":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"614":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"615":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.E"},"616":{"sourceFileName":"src/shell.ts","qualifiedName":"open"},"617":{"sourceFileName":"src/shell.ts","qualifiedName":"open"},"618":{"sourceFileName":"src/shell.ts","qualifiedName":"path"},"619":{"sourceFileName":"src/shell.ts","qualifiedName":"openWith"},"620":{"sourceFileName":"src/shell.ts","qualifiedName":"ChildProcess"},"621":{"sourceFileName":"src/shell.ts","qualifiedName":"ChildProcess.code"},"622":{"sourceFileName":"src/shell.ts","qualifiedName":"ChildProcess.signal"},"623":{"sourceFileName":"src/shell.ts","qualifiedName":"ChildProcess.stdout"},"624":{"sourceFileName":"src/shell.ts","qualifiedName":"ChildProcess.stderr"},"625":{"sourceFileName":"src/shell.ts","qualifiedName":"SpawnOptions"},"626":{"sourceFileName":"src/shell.ts","qualifiedName":"SpawnOptions.cwd"},"627":{"sourceFileName":"src/shell.ts","qualifiedName":"SpawnOptions.env"},"628":{"sourceFileName":"src/shell.ts","qualifiedName":"SpawnOptions.encoding"},"629":{"sourceFileName":"src/tauri.ts","qualifiedName":""},"630":{"sourceFileName":"src/tauri.ts","qualifiedName":"InvokeArgs"},"631":{"sourceFileName":"src/tauri.ts","qualifiedName":"transformCallback"},"632":{"sourceFileName":"src/tauri.ts","qualifiedName":"transformCallback"},"633":{"sourceFileName":"src/tauri.ts","qualifiedName":"callback"},"634":{"sourceFileName":"src/tauri.ts","qualifiedName":"__type"},"635":{"sourceFileName":"src/tauri.ts","qualifiedName":"__type"},"636":{"sourceFileName":"src/tauri.ts","qualifiedName":"response"},"637":{"sourceFileName":"src/tauri.ts","qualifiedName":"once"},"638":{"sourceFileName":"src/tauri.ts","qualifiedName":"invoke"},"639":{"sourceFileName":"src/tauri.ts","qualifiedName":"invoke"},"640":{"sourceFileName":"src/tauri.ts","qualifiedName":"T"},"641":{"sourceFileName":"src/tauri.ts","qualifiedName":"cmd"},"642":{"sourceFileName":"src/tauri.ts","qualifiedName":"args"},"643":{"sourceFileName":"src/tauri.ts","qualifiedName":"convertFileSrc"},"644":{"sourceFileName":"src/tauri.ts","qualifiedName":"convertFileSrc"},"645":{"sourceFileName":"src/tauri.ts","qualifiedName":"filePath"},"646":{"sourceFileName":"src/tauri.ts","qualifiedName":"protocol"},"647":{"sourceFileName":"src/updater.ts","qualifiedName":""},"648":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateStatus"},"649":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateStatusResult"},"650":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateStatusResult.error"},"651":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateStatusResult.status"},"652":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateManifest"},"653":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateManifest.version"},"654":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateManifest.date"},"655":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateManifest.body"},"656":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateResult"},"657":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateResult.manifest"},"658":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateResult.shouldUpdate"},"659":{"sourceFileName":"src/updater.ts","qualifiedName":"onUpdaterEvent"},"660":{"sourceFileName":"src/updater.ts","qualifiedName":"onUpdaterEvent"},"661":{"sourceFileName":"src/updater.ts","qualifiedName":"handler"},"662":{"sourceFileName":"src/updater.ts","qualifiedName":"__type"},"663":{"sourceFileName":"src/updater.ts","qualifiedName":"__type"},"664":{"sourceFileName":"src/updater.ts","qualifiedName":"status"},"665":{"sourceFileName":"src/updater.ts","qualifiedName":"installUpdate"},"666":{"sourceFileName":"src/updater.ts","qualifiedName":"installUpdate"},"667":{"sourceFileName":"src/updater.ts","qualifiedName":"checkUpdate"},"668":{"sourceFileName":"src/updater.ts","qualifiedName":"checkUpdate"},"669":{"sourceFileName":"src/window.ts","qualifiedName":""},"670":{"sourceFileName":"src/window.ts","qualifiedName":"CursorIcon"},"672":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindow"},"673":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindow.getByLabel"},"674":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindow.getByLabel"},"675":{"sourceFileName":"src/window.ts","qualifiedName":"label"},"676":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindow.getFocusedWindow"},"677":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindow.getFocusedWindow"},"678":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindow.__constructor"},"679":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindow"},"680":{"sourceFileName":"src/window.ts","qualifiedName":"label"},"681":{"sourceFileName":"src/window.ts","qualifiedName":"options"},"682":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.scaleFactor"},"683":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.scaleFactor"},"684":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.innerPosition"},"685":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.innerPosition"},"686":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.outerPosition"},"687":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.outerPosition"},"688":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.innerSize"},"689":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.innerSize"},"690":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.outerSize"},"691":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.outerSize"},"692":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isFullscreen"},"693":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isFullscreen"},"694":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMinimized"},"695":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMinimized"},"696":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMaximized"},"697":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMaximized"},"698":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isFocused"},"699":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isFocused"},"700":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isDecorated"},"701":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isDecorated"},"702":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isResizable"},"703":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isResizable"},"704":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMaximizable"},"705":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMaximizable"},"706":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMinimizable"},"707":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMinimizable"},"708":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isClosable"},"709":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isClosable"},"710":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isVisible"},"711":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isVisible"},"712":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.title"},"713":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.title"},"714":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.theme"},"715":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.theme"},"716":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.center"},"717":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.center"},"718":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.requestUserAttention"},"719":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.requestUserAttention"},"720":{"sourceFileName":"src/window.ts","qualifiedName":"requestType"},"721":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setResizable"},"722":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setResizable"},"723":{"sourceFileName":"src/window.ts","qualifiedName":"resizable"},"724":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMaximizable"},"725":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMaximizable"},"726":{"sourceFileName":"src/window.ts","qualifiedName":"maximizable"},"727":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMinimizable"},"728":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMinimizable"},"729":{"sourceFileName":"src/window.ts","qualifiedName":"minimizable"},"730":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setClosable"},"731":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setClosable"},"732":{"sourceFileName":"src/window.ts","qualifiedName":"closable"},"733":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setTitle"},"734":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setTitle"},"735":{"sourceFileName":"src/window.ts","qualifiedName":"title"},"736":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.maximize"},"737":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.maximize"},"738":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.unmaximize"},"739":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.unmaximize"},"740":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.toggleMaximize"},"741":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.toggleMaximize"},"742":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.minimize"},"743":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.minimize"},"744":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.unminimize"},"745":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.unminimize"},"746":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.show"},"747":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.show"},"748":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.hide"},"749":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.hide"},"750":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.close"},"751":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.close"},"752":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setDecorations"},"753":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setDecorations"},"754":{"sourceFileName":"src/window.ts","qualifiedName":"decorations"},"755":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setAlwaysOnTop"},"756":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setAlwaysOnTop"},"757":{"sourceFileName":"src/window.ts","qualifiedName":"alwaysOnTop"},"758":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setContentProtected"},"759":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setContentProtected"},"760":{"sourceFileName":"src/window.ts","qualifiedName":"protected_"},"761":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setSize"},"762":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setSize"},"763":{"sourceFileName":"src/window.ts","qualifiedName":"size"},"764":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMinSize"},"765":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMinSize"},"766":{"sourceFileName":"src/window.ts","qualifiedName":"size"},"767":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMaxSize"},"768":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMaxSize"},"769":{"sourceFileName":"src/window.ts","qualifiedName":"size"},"770":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setPosition"},"771":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setPosition"},"772":{"sourceFileName":"src/window.ts","qualifiedName":"position"},"773":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setFullscreen"},"774":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setFullscreen"},"775":{"sourceFileName":"src/window.ts","qualifiedName":"fullscreen"},"776":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setFocus"},"777":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setFocus"},"778":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setIcon"},"779":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setIcon"},"780":{"sourceFileName":"src/window.ts","qualifiedName":"icon"},"781":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setSkipTaskbar"},"782":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setSkipTaskbar"},"783":{"sourceFileName":"src/window.ts","qualifiedName":"skip"},"784":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorGrab"},"785":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorGrab"},"786":{"sourceFileName":"src/window.ts","qualifiedName":"grab"},"787":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorVisible"},"788":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorVisible"},"789":{"sourceFileName":"src/window.ts","qualifiedName":"visible"},"790":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorIcon"},"791":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorIcon"},"792":{"sourceFileName":"src/window.ts","qualifiedName":"icon"},"793":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorPosition"},"794":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorPosition"},"795":{"sourceFileName":"src/window.ts","qualifiedName":"position"},"796":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setIgnoreCursorEvents"},"797":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setIgnoreCursorEvents"},"798":{"sourceFileName":"src/window.ts","qualifiedName":"ignore"},"799":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.startDragging"},"800":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.startDragging"},"801":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onResized"},"802":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onResized"},"803":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"804":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onMoved"},"805":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onMoved"},"806":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"807":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onCloseRequested"},"808":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onCloseRequested"},"809":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"810":{"sourceFileName":"src/window.ts","qualifiedName":"__type"},"811":{"sourceFileName":"src/window.ts","qualifiedName":"__type"},"812":{"sourceFileName":"src/window.ts","qualifiedName":"event"},"813":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onFocusChanged"},"814":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onFocusChanged"},"815":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"816":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onScaleChanged"},"817":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onScaleChanged"},"818":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"819":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onMenuClicked"},"820":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onMenuClicked"},"821":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"822":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onFileDropEvent"},"823":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onFileDropEvent"},"824":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"825":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onThemeChanged"},"826":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onThemeChanged"},"827":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"828":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.label"},"829":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.listeners"},"830":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.listen"},"831":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.listen"},"832":{"sourceFileName":"src/window.ts","qualifiedName":"T"},"833":{"sourceFileName":"src/window.ts","qualifiedName":"event"},"834":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"835":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.once"},"836":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.once"},"837":{"sourceFileName":"src/window.ts","qualifiedName":"T"},"838":{"sourceFileName":"src/window.ts","qualifiedName":"event"},"839":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"840":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.emit"},"841":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.emit"},"842":{"sourceFileName":"src/window.ts","qualifiedName":"event"},"843":{"sourceFileName":"src/window.ts","qualifiedName":"payload"},"1045":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent"},"1046":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.__constructor"},"1047":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent"},"1048":{"sourceFileName":"src/window.ts","qualifiedName":"event"},"1049":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.event"},"1050":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.windowLabel"},"1051":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.id"},"1052":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent._preventDefault"},"1053":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.preventDefault"},"1054":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.preventDefault"},"1055":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.isPreventDefault"},"1056":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.isPreventDefault"},"1057":{"sourceFileName":"src/window.ts","qualifiedName":"getCurrent"},"1058":{"sourceFileName":"src/window.ts","qualifiedName":"getCurrent"},"1059":{"sourceFileName":"src/window.ts","qualifiedName":"getAll"},"1060":{"sourceFileName":"src/window.ts","qualifiedName":"getAll"},"1061":{"sourceFileName":"src/window.ts","qualifiedName":"appWindow"},"1062":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalSize"},"1063":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalSize.__constructor"},"1064":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalSize"},"1065":{"sourceFileName":"src/window.ts","qualifiedName":"width"},"1066":{"sourceFileName":"src/window.ts","qualifiedName":"height"},"1067":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalSize.type"},"1068":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalSize.width"},"1069":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalSize.height"},"1070":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize"},"1071":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize.__constructor"},"1072":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize"},"1073":{"sourceFileName":"src/window.ts","qualifiedName":"width"},"1074":{"sourceFileName":"src/window.ts","qualifiedName":"height"},"1075":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize.type"},"1076":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize.width"},"1077":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize.height"},"1078":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize.toLogical"},"1079":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize.toLogical"},"1080":{"sourceFileName":"src/window.ts","qualifiedName":"scaleFactor"},"1081":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalPosition"},"1082":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalPosition.__constructor"},"1083":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalPosition"},"1084":{"sourceFileName":"src/window.ts","qualifiedName":"x"},"1085":{"sourceFileName":"src/window.ts","qualifiedName":"y"},"1086":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalPosition.type"},"1087":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalPosition.x"},"1088":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalPosition.y"},"1089":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition"},"1090":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition.__constructor"},"1091":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition"},"1092":{"sourceFileName":"src/window.ts","qualifiedName":"x"},"1093":{"sourceFileName":"src/window.ts","qualifiedName":"y"},"1094":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition.type"},"1095":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition.x"},"1096":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition.y"},"1097":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition.toLogical"},"1098":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition.toLogical"},"1099":{"sourceFileName":"src/window.ts","qualifiedName":"scaleFactor"},"1100":{"sourceFileName":"src/window.ts","qualifiedName":"UserAttentionType"},"1101":{"sourceFileName":"src/window.ts","qualifiedName":"UserAttentionType.Critical"},"1102":{"sourceFileName":"src/window.ts","qualifiedName":"UserAttentionType.Informational"},"1103":{"sourceFileName":"src/window.ts","qualifiedName":"currentMonitor"},"1104":{"sourceFileName":"src/window.ts","qualifiedName":"currentMonitor"},"1105":{"sourceFileName":"src/window.ts","qualifiedName":"primaryMonitor"},"1106":{"sourceFileName":"src/window.ts","qualifiedName":"primaryMonitor"},"1107":{"sourceFileName":"src/window.ts","qualifiedName":"availableMonitors"},"1108":{"sourceFileName":"src/window.ts","qualifiedName":"availableMonitors"},"1109":{"sourceFileName":"src/window.ts","qualifiedName":"Theme"},"1110":{"sourceFileName":"src/window.ts","qualifiedName":"TitleBarStyle"},"1111":{"sourceFileName":"src/window.ts","qualifiedName":"Monitor"},"1112":{"sourceFileName":"src/window.ts","qualifiedName":"Monitor.name"},"1113":{"sourceFileName":"src/window.ts","qualifiedName":"Monitor.size"},"1114":{"sourceFileName":"src/window.ts","qualifiedName":"Monitor.position"},"1115":{"sourceFileName":"src/window.ts","qualifiedName":"Monitor.scaleFactor"},"1116":{"sourceFileName":"src/window.ts","qualifiedName":"ScaleFactorChanged"},"1117":{"sourceFileName":"src/window.ts","qualifiedName":"ScaleFactorChanged.scaleFactor"},"1118":{"sourceFileName":"src/window.ts","qualifiedName":"ScaleFactorChanged.size"},"1119":{"sourceFileName":"src/window.ts","qualifiedName":"FileDropEvent"},"1120":{"sourceFileName":"src/window.ts","qualifiedName":"__type"},"1121":{"sourceFileName":"src/window.ts","qualifiedName":"__type.type"},"1122":{"sourceFileName":"src/window.ts","qualifiedName":"__type.paths"},"1123":{"sourceFileName":"src/window.ts","qualifiedName":"__type"},"1124":{"sourceFileName":"src/window.ts","qualifiedName":"__type.type"},"1125":{"sourceFileName":"src/window.ts","qualifiedName":"__type.paths"},"1126":{"sourceFileName":"src/window.ts","qualifiedName":"__type"},"1127":{"sourceFileName":"src/window.ts","qualifiedName":"__type.type"},"1128":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions"},"1129":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.url"},"1130":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.center"},"1131":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.x"},"1132":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.y"},"1133":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.width"},"1134":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.height"},"1135":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.minWidth"},"1136":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.minHeight"},"1137":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.maxWidth"},"1138":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.maxHeight"},"1139":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.resizable"},"1140":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.title"},"1141":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.fullscreen"},"1142":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.focus"},"1143":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.transparent"},"1144":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.maximized"},"1145":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.visible"},"1146":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.decorations"},"1147":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.alwaysOnTop"},"1148":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.contentProtected"},"1149":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.skipTaskbar"},"1150":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.fileDropEnabled"},"1151":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.theme"},"1152":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.titleBarStyle"},"1153":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.hiddenTitle"},"1154":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.acceptFirstMouse"},"1155":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.tabbingIdentifier"},"1156":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.userAgent"},"1157":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.maximizable"},"1158":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.minimizable"},"1159":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.closable"},"1160":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"Event"},"1161":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"Event.event"},"1162":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"Event.windowLabel"},"1163":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"Event.id"},"1164":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"Event.payload"},"1165":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"Event.T"},"1166":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"EventCallback"},"1167":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"__type"},"1168":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"__type"},"1169":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"event"},"1170":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"T"},"1171":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"UnlistenFn"},"1172":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"__type"},"1173":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"__type"},"1174":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory"}}} \ No newline at end of file +{"id":0,"name":"@tauri-apps/api","variant":"project","kind":1,"flags":{},"children":[{"id":1,"name":"app","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Get application metadata.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.app`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.app`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.app) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"app\": {\n \"all\": true, // enable all app APIs\n \"show\": true,\n \"hide\": true\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security."}]},"children":[{"id":2,"name":"getName","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"app.ts","line":60,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/app.ts#L60"}],"signatures":[{"id":3,"name":"getName","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the application name."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getName } from '@tauri-apps/api/app';\nconst appName = await getName();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"app.ts","line":60,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/app.ts#L60"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":6,"name":"getTauriVersion","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"app.ts","line":80,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/app.ts#L80"}],"signatures":[{"id":7,"name":"getTauriVersion","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the Tauri version."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getTauriVersion } from '@tauri-apps/api/app';\nconst tauriVersion = await getTauriVersion();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"app.ts","line":80,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/app.ts#L80"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":4,"name":"getVersion","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"app.ts","line":41,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/app.ts#L41"}],"signatures":[{"id":5,"name":"getVersion","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the application version."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getVersion } from '@tauri-apps/api/app';\nconst appVersion = await getVersion();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"app.ts","line":41,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/app.ts#L41"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":10,"name":"hide","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"app.ts","line":120,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/app.ts#L120"}],"signatures":[{"id":11,"name":"hide","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Hides the application on macOS."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { hide } from '@tauri-apps/api/app';\nawait hide();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"app.ts","line":120,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/app.ts#L120"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":8,"name":"show","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"app.ts","line":100,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/app.ts#L100"}],"signatures":[{"id":9,"name":"show","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Shows the application on macOS. This function does not automatically focus any specific app window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { show } from '@tauri-apps/api/app';\nawait show();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"app.ts","line":100,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/app.ts#L100"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Functions","children":[2,6,4,10,8]}],"sources":[{"fileName":"app.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/app.ts#L1"}]},{"id":12,"name":"cli","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Parse arguments from your Command Line Interface.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.cli`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"children":[{"id":13,"name":"ArgMatch","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":15,"name":"occurrences","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Number of occurrences"}]},"sources":[{"fileName":"cli.ts","line":27,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/cli.ts#L27"}],"type":{"type":"intrinsic","name":"number"}},{"id":14,"name":"value","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"string if takes value\nboolean if flag\nstring[] or null if takes multiple values"}]},"sources":[{"fileName":"cli.ts","line":23,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/cli.ts#L23"}],"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"boolean"},{"type":"array","elementType":{"type":"intrinsic","name":"string"}}]}}],"groups":[{"title":"Properties","children":[15,14]}],"sources":[{"fileName":"cli.ts","line":17,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/cli.ts#L17"}]},{"id":19,"name":"CliMatches","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":20,"name":"args","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"cli.ts","line":42,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/cli.ts#L42"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"reference","target":13,"name":"ArgMatch","package":"@tauri-apps/api"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}},{"id":21,"name":"subcommand","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"cli.ts","line":43,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/cli.ts#L43"}],"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"reference","target":16,"name":"SubcommandMatch","package":"@tauri-apps/api"}]}}],"groups":[{"title":"Properties","children":[20,21]}],"sources":[{"fileName":"cli.ts","line":41,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/cli.ts#L41"}]},{"id":16,"name":"SubcommandMatch","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":18,"name":"matches","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"cli.ts","line":35,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/cli.ts#L35"}],"type":{"type":"reference","target":19,"name":"CliMatches","package":"@tauri-apps/api"}},{"id":17,"name":"name","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"cli.ts","line":34,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/cli.ts#L34"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[18,17]}],"sources":[{"fileName":"cli.ts","line":33,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/cli.ts#L33"}]},{"id":22,"name":"getMatches","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"cli.ts","line":66,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/cli.ts#L66"}],"signatures":[{"id":23,"name":"getMatches","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Parse the arguments provided to the current process and get the matches using the configuration defined ["},{"kind":"code","text":"`tauri.cli`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#tauriconfig.cli) in "},{"kind":"code","text":"`tauri.conf.json`"}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getMatches } from '@tauri-apps/api/cli';\nconst matches = await getMatches();\nif (matches.subcommand?.name === 'run') {\n // `./your-app run $ARGS` was executed\n const args = matches.subcommand?.matches.args\n if ('debug' in args) {\n // `./your-app run --debug` was executed\n }\n} else {\n const args = matches.args\n // `./your-app $ARGS` was executed\n}\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"cli.ts","line":66,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/cli.ts#L66"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":19,"name":"CliMatches","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Interfaces","children":[13,19,16]},{"title":"Functions","children":[22]}],"sources":[{"fileName":"cli.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/cli.ts#L1"}]},{"id":24,"name":"clipboard","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Read and write to the system clipboard.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.clipboard`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.clipboard`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.clipboard) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"clipboard\": {\n \"all\": true, // enable all Clipboard APIs\n \"writeText\": true,\n \"readText\": true\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security."}]},"children":[{"id":28,"name":"readText","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"clipboard.ts","line":63,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/clipboard.ts#L63"}],"signatures":[{"id":29,"name":"readText","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the clipboard content as plain text."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { readText } from '@tauri-apps/api/clipboard';\nconst clipboardText = await readText();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0."}]}]},"sources":[{"fileName":"clipboard.ts","line":63,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/clipboard.ts#L63"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"literal","value":null}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":25,"name":"writeText","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"clipboard.ts","line":44,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/clipboard.ts#L44"}],"signatures":[{"id":26,"name":"writeText","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Writes plain text to the clipboard."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { writeText, readText } from '@tauri-apps/api/clipboard';\nawait writeText('Tauri is awesome!');\nassert(await readText(), 'Tauri is awesome!');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0."}]}]},"sources":[{"fileName":"clipboard.ts","line":44,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/clipboard.ts#L44"}],"parameters":[{"id":27,"name":"text","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Functions","children":[28,25]}],"sources":[{"fileName":"clipboard.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/clipboard.ts#L1"}]},{"id":30,"name":"dialog","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Native system dialogs for opening and saving files.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.dialog`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.dialog`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.dialog) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"dialog\": {\n \"all\": true, // enable all dialog APIs\n \"ask\": true, // enable dialog ask API\n \"confirm\": true, // enable dialog confirm API\n \"message\": true, // enable dialog message API\n \"open\": true, // enable file open API\n \"save\": true // enable file save API\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security."}]},"children":[{"id":49,"name":"ConfirmDialogOptions","variant":"declaration","kind":256,"flags":{},"children":[{"id":53,"name":"cancelLabel","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The label of the cancel button."}]},"sources":[{"fileName":"dialog.ts","line":112,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L112"}],"type":{"type":"intrinsic","name":"string"}},{"id":52,"name":"okLabel","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The label of the confirm button."}]},"sources":[{"fileName":"dialog.ts","line":110,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L110"}],"type":{"type":"intrinsic","name":"string"}},{"id":50,"name":"title","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The title of the dialog. Defaults to the app name."}]},"sources":[{"fileName":"dialog.ts","line":106,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L106"}],"type":{"type":"intrinsic","name":"string"}},{"id":51,"name":"type","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The type of the dialog. Defaults to "},{"kind":"code","text":"`info`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"dialog.ts","line":108,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L108"}],"type":{"type":"union","types":[{"type":"literal","value":"info"},{"type":"literal","value":"warning"},{"type":"literal","value":"error"}]}}],"groups":[{"title":"Properties","children":[53,52,50,51]}],"sources":[{"fileName":"dialog.ts","line":104,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L104"}]},{"id":31,"name":"DialogFilter","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Extension filters for the file dialog."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":33,"name":"extensions","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Extensions to filter, without a "},{"kind":"code","text":"`.`"},{"kind":"text","text":" prefix."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nextensions: ['svg', 'png']\n```"}]}]},"sources":[{"fileName":"dialog.ts","line":48,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L48"}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}},{"id":32,"name":"name","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Filter name."}]},"sources":[{"fileName":"dialog.ts","line":40,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L40"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[33,32]}],"sources":[{"fileName":"dialog.ts","line":38,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L38"}]},{"id":45,"name":"MessageDialogOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":48,"name":"okLabel","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The label of the confirm button."}]},"sources":[{"fileName":"dialog.ts","line":101,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L101"}],"type":{"type":"intrinsic","name":"string"}},{"id":46,"name":"title","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The title of the dialog. Defaults to the app name."}]},"sources":[{"fileName":"dialog.ts","line":97,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L97"}],"type":{"type":"intrinsic","name":"string"}},{"id":47,"name":"type","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The type of the dialog. Defaults to "},{"kind":"code","text":"`info`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"dialog.ts","line":99,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L99"}],"type":{"type":"union","types":[{"type":"literal","value":"info"},{"type":"literal","value":"warning"},{"type":"literal","value":"error"}]}}],"groups":[{"title":"Properties","children":[48,46,47]}],"sources":[{"fileName":"dialog.ts","line":95,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L95"}]},{"id":34,"name":"OpenDialogOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Options for the open dialog."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":37,"name":"defaultPath","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Initial directory or file path."}]},"sources":[{"fileName":"dialog.ts","line":62,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L62"}],"type":{"type":"intrinsic","name":"string"}},{"id":39,"name":"directory","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the dialog is a directory selection or not."}]},"sources":[{"fileName":"dialog.ts","line":66,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L66"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":36,"name":"filters","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The filters of the dialog."}]},"sources":[{"fileName":"dialog.ts","line":60,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L60"}],"type":{"type":"array","elementType":{"type":"reference","target":31,"name":"DialogFilter","package":"@tauri-apps/api"}}},{"id":38,"name":"multiple","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the dialog allows multiple selection or not."}]},"sources":[{"fileName":"dialog.ts","line":64,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L64"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":40,"name":"recursive","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"If "},{"kind":"code","text":"`directory`"},{"kind":"text","text":" is true, indicates that it will be read recursively later.\nDefines whether subdirectories will be allowed on the scope or not."}]},"sources":[{"fileName":"dialog.ts","line":71,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L71"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":35,"name":"title","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The title of the dialog window."}]},"sources":[{"fileName":"dialog.ts","line":58,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L58"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[37,39,36,38,40,35]}],"sources":[{"fileName":"dialog.ts","line":56,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L56"}]},{"id":41,"name":"SaveDialogOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Options for the save dialog."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":44,"name":"defaultPath","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Initial directory or file path.\nIf it's a directory path, the dialog interface will change to that folder.\nIf it's not an existing directory, the file name will be set to the dialog's file name input and the dialog will be set to the parent folder."}]},"sources":[{"fileName":"dialog.ts","line":89,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L89"}],"type":{"type":"intrinsic","name":"string"}},{"id":43,"name":"filters","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The filters of the dialog."}]},"sources":[{"fileName":"dialog.ts","line":83,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L83"}],"type":{"type":"array","elementType":{"type":"reference","target":31,"name":"DialogFilter","package":"@tauri-apps/api"}}},{"id":42,"name":"title","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The title of the dialog window."}]},"sources":[{"fileName":"dialog.ts","line":81,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L81"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[44,43,42]}],"sources":[{"fileName":"dialog.ts","line":79,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L79"}]},{"id":64,"name":"ask","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"dialog.ts","line":271,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L271"}],"signatures":[{"id":65,"name":"ask","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Shows a question dialog with "},{"kind":"code","text":"`Yes`"},{"kind":"text","text":" and "},{"kind":"code","text":"`No`"},{"kind":"text","text":" buttons."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { ask } from '@tauri-apps/api/dialog';\nconst yes = await ask('Are you sure?', 'Tauri');\nconst yes2 = await ask('This action cannot be reverted. Are you sure?', { title: 'Tauri', type: 'warning' });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a boolean indicating whether "},{"kind":"code","text":"`Yes`"},{"kind":"text","text":" was clicked or not."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"dialog.ts","line":271,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L271"}],"parameters":[{"id":66,"name":"message","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The message to show."}]},"type":{"type":"intrinsic","name":"string"}},{"id":67,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The dialog's options. If a string, it represents the dialog title."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":49,"name":"ConfirmDialogOptions","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":68,"name":"confirm","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"dialog.ts","line":307,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L307"}],"signatures":[{"id":69,"name":"confirm","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Shows a question dialog with "},{"kind":"code","text":"`Ok`"},{"kind":"text","text":" and "},{"kind":"code","text":"`Cancel`"},{"kind":"text","text":" buttons."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { confirm } from '@tauri-apps/api/dialog';\nconst confirmed = await confirm('Are you sure?', 'Tauri');\nconst confirmed2 = await confirm('This action cannot be reverted. Are you sure?', { title: 'Tauri', type: 'warning' });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a boolean indicating whether "},{"kind":"code","text":"`Ok`"},{"kind":"text","text":" was clicked or not."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"dialog.ts","line":307,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L307"}],"parameters":[{"id":70,"name":"message","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The message to show."}]},"type":{"type":"intrinsic","name":"string"}},{"id":71,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The dialog's options. If a string, it represents the dialog title."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":49,"name":"ConfirmDialogOptions","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":60,"name":"message","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"dialog.ts","line":238,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L238"}],"signatures":[{"id":61,"name":"message","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Shows a message dialog with an "},{"kind":"code","text":"`Ok`"},{"kind":"text","text":" button."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { message } from '@tauri-apps/api/dialog';\nawait message('Tauri is awesome', 'Tauri');\nawait message('File not found', { title: 'Tauri', type: 'error' });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"dialog.ts","line":238,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L238"}],"parameters":[{"id":62,"name":"message","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The message to show."}]},"type":{"type":"intrinsic","name":"string"}},{"id":63,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The dialog's options. If a string, it represents the dialog title."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":45,"name":"MessageDialogOptions","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":54,"name":"open","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"dialog.ts","line":167,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L167"}],"signatures":[{"id":55,"name":"open","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Open a file/directory selection dialog.\n\nThe selected paths are added to the filesystem and asset protocol allowlist scopes.\nWhen security is more important than the easy of use of this API,\nprefer writing a dedicated command instead.\n\nNote that the allowlist scope change is not persisted, so the values are cleared when the application is restarted.\nYou can save it to the filesystem using [tauri-plugin-persisted-scope](https://github.com/tauri-apps/tauri-plugin-persisted-scope)."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { open } from '@tauri-apps/api/dialog';\n// Open a selection dialog for image files\nconst selected = await open({\n multiple: true,\n filters: [{\n name: 'Image',\n extensions: ['png', 'jpeg']\n }]\n});\nif (Array.isArray(selected)) {\n // user selected multiple files\n} else if (selected === null) {\n // user cancelled the selection\n} else {\n // user selected a single file\n}\n```"}]},{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { open } from '@tauri-apps/api/dialog';\nimport { appDir } from '@tauri-apps/api/path';\n// Open a selection dialog for directories\nconst selected = await open({\n directory: true,\n multiple: true,\n defaultPath: await appDir(),\n});\nif (Array.isArray(selected)) {\n // user selected multiple directories\n} else if (selected === null) {\n // user cancelled the selection\n} else {\n // user selected a single directory\n}\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to the selected path(s)"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"dialog.ts","line":167,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L167"}],"parameters":[{"id":56,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":34,"name":"OpenDialogOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"literal","value":null},{"type":"intrinsic","name":"string"},{"type":"array","elementType":{"type":"intrinsic","name":"string"}}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":57,"name":"save","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"dialog.ts","line":207,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L207"}],"signatures":[{"id":58,"name":"save","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Open a file/directory save dialog.\n\nThe selected path is added to the filesystem and asset protocol allowlist scopes.\nWhen security is more important than the easy of use of this API,\nprefer writing a dedicated command instead.\n\nNote that the allowlist scope change is not persisted, so the values are cleared when the application is restarted.\nYou can save it to the filesystem using [tauri-plugin-persisted-scope](https://github.com/tauri-apps/tauri-plugin-persisted-scope)."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { save } from '@tauri-apps/api/dialog';\nconst filePath = await save({\n filters: [{\n name: 'Image',\n extensions: ['png', 'jpeg']\n }]\n});\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to the selected path."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"dialog.ts","line":207,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L207"}],"parameters":[{"id":59,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":41,"name":"SaveDialogOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"literal","value":null}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Interfaces","children":[49,31,45,34,41]},{"title":"Functions","children":[64,68,60,54,57]}],"sources":[{"fileName":"dialog.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L1"}]},{"id":72,"name":"event","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"The event system allows you to emit events to the backend and listen to events from it.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.event`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"children":[{"id":74,"name":"TauriEvent","variant":"declaration","kind":8,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"children":[{"id":88,"name":"CHECK_UPDATE","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":34,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L34"}],"type":{"type":"literal","value":"tauri://update"}},{"id":92,"name":"DOWNLOAD_PROGRESS","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":38,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L38"}],"type":{"type":"literal","value":"tauri://update-download-progress"}},{"id":90,"name":"INSTALL_UPDATE","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":36,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L36"}],"type":{"type":"literal","value":"tauri://update-install"}},{"id":87,"name":"MENU","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":33,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L33"}],"type":{"type":"literal","value":"tauri://menu"}},{"id":91,"name":"STATUS_UPDATE","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":37,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L37"}],"type":{"type":"literal","value":"tauri://update-status"}},{"id":89,"name":"UPDATE_AVAILABLE","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":35,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L35"}],"type":{"type":"literal","value":"tauri://update-available"}},{"id":81,"name":"WINDOW_BLUR","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":27,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L27"}],"type":{"type":"literal","value":"tauri://blur"}},{"id":77,"name":"WINDOW_CLOSE_REQUESTED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":23,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L23"}],"type":{"type":"literal","value":"tauri://close-requested"}},{"id":78,"name":"WINDOW_CREATED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":24,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L24"}],"type":{"type":"literal","value":"tauri://window-created"}},{"id":79,"name":"WINDOW_DESTROYED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":25,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L25"}],"type":{"type":"literal","value":"tauri://destroyed"}},{"id":84,"name":"WINDOW_FILE_DROP","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":30,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L30"}],"type":{"type":"literal","value":"tauri://file-drop"}},{"id":86,"name":"WINDOW_FILE_DROP_CANCELLED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":32,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L32"}],"type":{"type":"literal","value":"tauri://file-drop-cancelled"}},{"id":85,"name":"WINDOW_FILE_DROP_HOVER","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":31,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L31"}],"type":{"type":"literal","value":"tauri://file-drop-hover"}},{"id":80,"name":"WINDOW_FOCUS","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":26,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L26"}],"type":{"type":"literal","value":"tauri://focus"}},{"id":76,"name":"WINDOW_MOVED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":22,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L22"}],"type":{"type":"literal","value":"tauri://move"}},{"id":75,"name":"WINDOW_RESIZED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":21,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L21"}],"type":{"type":"literal","value":"tauri://resize"}},{"id":82,"name":"WINDOW_SCALE_FACTOR_CHANGED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":28,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L28"}],"type":{"type":"literal","value":"tauri://scale-change"}},{"id":83,"name":"WINDOW_THEME_CHANGED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":29,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L29"}],"type":{"type":"literal","value":"tauri://theme-changed"}}],"groups":[{"title":"Enumeration Members","children":[88,92,90,87,91,89,81,77,78,79,84,86,85,80,76,75,82,83]}],"sources":[{"fileName":"event.ts","line":20,"character":12,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L20"}]},{"id":1161,"name":"Event","variant":"declaration","kind":256,"flags":{},"children":[{"id":1162,"name":"event","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name"}]},"sources":[{"fileName":"helpers/event.ts","line":12,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/helpers/event.ts#L12"}],"type":{"type":"reference","target":73,"name":"EventName","package":"@tauri-apps/api"}},{"id":1164,"name":"id","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event identifier used to unlisten"}]},"sources":[{"fileName":"helpers/event.ts","line":16,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/helpers/event.ts#L16"}],"type":{"type":"intrinsic","name":"number"}},{"id":1165,"name":"payload","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event payload"}]},"sources":[{"fileName":"helpers/event.ts","line":18,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/helpers/event.ts#L18"}],"type":{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}},{"id":1163,"name":"windowLabel","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The label of the window that emitted this event."}]},"sources":[{"fileName":"helpers/event.ts","line":14,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/helpers/event.ts#L14"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[1162,1164,1165,1163]}],"sources":[{"fileName":"helpers/event.ts","line":10,"character":17,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/helpers/event.ts#L10"}],"typeParameters":[{"id":1166,"name":"T","variant":"typeParam","kind":131072,"flags":{}}]},{"id":1167,"name":"EventCallback","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"helpers/event.ts","line":21,"character":12,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/helpers/event.ts#L21"}],"typeParameters":[{"id":1171,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"type":{"type":"reflection","declaration":{"id":1168,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"helpers/event.ts","line":21,"character":31,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/helpers/event.ts#L21"}],"signatures":[{"id":1169,"name":"__type","variant":"signature","kind":4096,"flags":{},"parameters":[{"id":1170,"name":"event","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1161,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Event","package":"@tauri-apps/api"}}],"type":{"type":"intrinsic","name":"void"}}]}}},{"id":73,"name":"EventName","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"event.ts","line":15,"character":12,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L15"}],"type":{"type":"union","types":[{"type":"templateLiteral","head":"","tail":[[{"type":"reference","target":74,"name":"TauriEvent","package":"@tauri-apps/api"},""]]},{"type":"intersection","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"never"},{"type":"intrinsic","name":"never"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}]}]}},{"id":1172,"name":"UnlistenFn","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"helpers/event.ts","line":23,"character":12,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/helpers/event.ts#L23"}],"type":{"type":"reflection","declaration":{"id":1173,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"helpers/event.ts","line":23,"character":25,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/helpers/event.ts#L23"}],"signatures":[{"id":1174,"name":"__type","variant":"signature","kind":4096,"flags":{},"type":{"type":"intrinsic","name":"void"}}]}}},{"id":103,"name":"emit","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"event.ts","line":113,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L113"}],"signatures":[{"id":104,"name":"emit","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Emits an event to the backend and all Tauri windows."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { emit } from '@tauri-apps/api/event';\nawait emit('frontend-loaded', { loggedIn: true, token: 'authToken' });\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"event.ts","line":113,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L113"}],"parameters":[{"id":105,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":106,"name":"payload","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"intrinsic","name":"unknown"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":93,"name":"listen","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"event.ts","line":63,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L63"}],"signatures":[{"id":94,"name":"listen","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to an event. The event can be either global or window-specific.\nSee "},{"kind":"inline-tag","tag":"@link","text":"windowLabel","target":1163,"tsLinkText":""},{"kind":"text","text":" to check the event source."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { listen } from '@tauri-apps/api/event';\nconst unlisten = await listen('error', (event) => {\n console.log(`Got error in window ${event.windowLabel}, payload: ${event.payload}`);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"event.ts","line":63,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L63"}],"typeParameter":[{"id":95,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":96,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"reference","target":73,"name":"EventName","package":"@tauri-apps/api"}},{"id":97,"name":"handler","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event handler callback."}]},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":98,"name":"once","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"event.ts","line":94,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L94"}],"signatures":[{"id":99,"name":"once","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to an one-off event. See "},{"kind":"inline-tag","tag":"@link","text":"listen","target":93,"tsLinkText":""},{"kind":"text","text":" for more information."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { once } from '@tauri-apps/api/event';\ninterface LoadedPayload {\n loggedIn: boolean,\n token: string\n}\nconst unlisten = await once('loaded', (event) => {\n console.log(`App is loaded, loggedIn: ${event.payload.loggedIn}, token: ${event.payload.token}`);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"event.ts","line":94,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L94"}],"typeParameter":[{"id":100,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":101,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"reference","target":73,"name":"EventName","package":"@tauri-apps/api"}},{"id":102,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Enumerations","children":[74]},{"title":"Interfaces","children":[1161]},{"title":"Type Aliases","children":[1167,73,1172]},{"title":"Functions","children":[103,93,98]}],"sources":[{"fileName":"event.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L1"}]},{"id":107,"name":"fs","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Access the file system.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.fs`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.fs`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.fs) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"fs\": {\n \"all\": true, // enable all FS APIs\n \"readFile\": true,\n \"writeFile\": true,\n \"readDir\": true,\n \"copyFile\": true,\n \"createDir\": true,\n \"removeDir\": true,\n \"removeFile\": true,\n \"renameFile\": true,\n \"exists\": true\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security.\n\n## Security\n\nThis module prevents path traversal, not allowing absolute paths or parent dir components\n(i.e. \"/usr/path/to/file\" or \"../path/to/file\" paths are not allowed).\nPaths accessed with this API must be relative to one of the "},{"kind":"inline-tag","tag":"@link","text":"base directories","target":108},{"kind":"text","text":"\nso if you need access to arbitrary filesystem paths, you must write such logic on the core layer instead.\n\nThe API has a scope configuration that forces you to restrict the paths that can be accessed using glob patterns.\n\nThe scope configuration is an array of glob patterns describing folder paths that are allowed.\nFor instance, this scope configuration only allows accessing files on the\n*databases* folder of the "},{"kind":"inline-tag","tag":"@link","text":"$APPDATA directory","target":382},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"fs\": {\n \"scope\": [\"$APPDATA/databases/*\"]\n }\n }\n }\n}\n```"},{"kind":"text","text":"\n\nNotice the use of the "},{"kind":"code","text":"`$APPDATA`"},{"kind":"text","text":" variable. The value is injected at runtime, resolving to the "},{"kind":"inline-tag","tag":"@link","text":"app data directory","target":382},{"kind":"text","text":".\nThe available variables are:\n"},{"kind":"inline-tag","tag":"@link","text":"`$APPCONFIG`","target":380},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$APPDATA`","target":382},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$APPLOCALDATA`","target":384},{"kind":"text","text":",\n"},{"kind":"inline-tag","tag":"@link","text":"`$APPCACHE`","target":386},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$APPLOG`","target":388},{"kind":"text","text":",\n"},{"kind":"inline-tag","tag":"@link","text":"`$AUDIO`","target":390},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$CACHE`","target":392},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$CONFIG`","target":394},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$DATA`","target":396},{"kind":"text","text":",\n"},{"kind":"inline-tag","tag":"@link","text":"`$LOCALDATA`","target":410},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$DESKTOP`","target":398},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$DOCUMENT`","target":400},{"kind":"text","text":",\n"},{"kind":"inline-tag","tag":"@link","text":"`$DOWNLOAD`","target":402},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$EXE`","target":404},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$FONT`","target":406},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$HOME`","target":408},{"kind":"text","text":",\n"},{"kind":"inline-tag","tag":"@link","text":"`$PICTURE`","target":412},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$PUBLIC`","target":414},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$RUNTIME`","target":421},{"kind":"text","text":",\n"},{"kind":"inline-tag","tag":"@link","text":"`$TEMPLATE`","target":423},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$VIDEO`","target":425},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$RESOURCE`","target":416},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$APP`","target":378},{"kind":"text","text":",\n"},{"kind":"inline-tag","tag":"@link","text":"`$LOG`","target":427},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$TEMP`","target":370},{"kind":"text","text":".\n\nTrying to execute any API with a URL not configured on the scope results in a promise rejection due to denied access.\n\nNote that this scope applies to **all** APIs on this module."}]},"children":[{"id":150,"name":"Dir","variant":"reference","kind":8388608,"flags":{},"sources":[{"fileName":"fs.ts","line":593,"character":19,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L593"}],"target":108},{"id":167,"name":"writeFile","variant":"reference","kind":8388608,"flags":{},"sources":[{"fileName":"fs.ts","line":597,"character":19,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L597"}],"target":159},{"id":108,"name":"BaseDirectory","variant":"declaration","kind":8,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":126,"name":"App","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":98,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L98"}],"type":{"type":"literal","value":18}},{"id":132,"name":"AppCache","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":104,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L104"}],"type":{"type":"literal","value":24}},{"id":129,"name":"AppConfig","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":101,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L101"}],"type":{"type":"literal","value":21}},{"id":130,"name":"AppData","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":102,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L102"}],"type":{"type":"literal","value":22}},{"id":131,"name":"AppLocalData","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":103,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L103"}],"type":{"type":"literal","value":23}},{"id":133,"name":"AppLog","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":105,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L105"}],"type":{"type":"literal","value":25}},{"id":109,"name":"Audio","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":81,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L81"}],"type":{"type":"literal","value":1}},{"id":110,"name":"Cache","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":82,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L82"}],"type":{"type":"literal","value":2}},{"id":111,"name":"Config","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":83,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L83"}],"type":{"type":"literal","value":3}},{"id":112,"name":"Data","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":84,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L84"}],"type":{"type":"literal","value":4}},{"id":114,"name":"Desktop","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":86,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L86"}],"type":{"type":"literal","value":6}},{"id":115,"name":"Document","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":87,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L87"}],"type":{"type":"literal","value":7}},{"id":116,"name":"Download","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":88,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L88"}],"type":{"type":"literal","value":8}},{"id":117,"name":"Executable","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":89,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L89"}],"type":{"type":"literal","value":9}},{"id":118,"name":"Font","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":90,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L90"}],"type":{"type":"literal","value":10}},{"id":119,"name":"Home","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":91,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L91"}],"type":{"type":"literal","value":11}},{"id":113,"name":"LocalData","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":85,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L85"}],"type":{"type":"literal","value":5}},{"id":127,"name":"Log","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":99,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L99"}],"type":{"type":"literal","value":19}},{"id":120,"name":"Picture","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":92,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L92"}],"type":{"type":"literal","value":12}},{"id":121,"name":"Public","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":93,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L93"}],"type":{"type":"literal","value":13}},{"id":125,"name":"Resource","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":97,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L97"}],"type":{"type":"literal","value":17}},{"id":122,"name":"Runtime","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":94,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L94"}],"type":{"type":"literal","value":14}},{"id":128,"name":"Temp","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":100,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L100"}],"type":{"type":"literal","value":20}},{"id":123,"name":"Template","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":95,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L95"}],"type":{"type":"literal","value":15}},{"id":124,"name":"Video","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":96,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L96"}],"type":{"type":"literal","value":16}}],"groups":[{"title":"Enumeration Members","children":[126,132,129,130,131,133,109,110,111,112,114,115,116,117,118,119,113,127,120,121,125,122,128,123,124]}],"sources":[{"fileName":"fs.ts","line":80,"character":12,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L80"}]},{"id":146,"name":"FileEntry","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":149,"name":"children","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Children of this entry if it's a directory; null otherwise"}]},"sources":[{"fileName":"fs.ts","line":161,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L161"}],"type":{"type":"array","elementType":{"type":"reference","target":146,"name":"FileEntry","package":"@tauri-apps/api"}}},{"id":148,"name":"name","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Name of the directory/file\ncan be null if the path terminates with "},{"kind":"code","text":"`..`"}]},"sources":[{"fileName":"fs.ts","line":159,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L159"}],"type":{"type":"intrinsic","name":"string"}},{"id":147,"name":"path","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"fs.ts","line":154,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L154"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[149,148,147]}],"sources":[{"fileName":"fs.ts","line":153,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L153"}]},{"id":143,"name":"FsBinaryFileOption","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Options object used to write a binary data to a file."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":145,"name":"contents","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The byte array contents."}]},"sources":[{"fileName":"fs.ts","line":147,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L147"}],"type":{"type":"reference","target":142,"name":"BinaryFileContents","package":"@tauri-apps/api"}},{"id":144,"name":"path","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Path to the file to write."}]},"sources":[{"fileName":"fs.ts","line":145,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L145"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[145,144]}],"sources":[{"fileName":"fs.ts","line":143,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L143"}]},{"id":136,"name":"FsDirOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":137,"name":"dir","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"fs.ts","line":120,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L120"}],"type":{"type":"reference","target":108,"name":"BaseDirectory","package":"@tauri-apps/api"}},{"id":138,"name":"recursive","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"fs.ts","line":121,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L121"}],"type":{"type":"intrinsic","name":"boolean"}}],"groups":[{"title":"Properties","children":[137,138]}],"sources":[{"fileName":"fs.ts","line":119,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L119"}]},{"id":134,"name":"FsOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":135,"name":"dir","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"fs.ts","line":112,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L112"}],"type":{"type":"reference","target":108,"name":"BaseDirectory","package":"@tauri-apps/api"}}],"groups":[{"title":"Properties","children":[135]}],"sources":[{"fileName":"fs.ts","line":111,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L111"}]},{"id":139,"name":"FsTextFileOption","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Options object used to write a UTF-8 string to a file."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":141,"name":"contents","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The UTF-8 string to write to the file."}]},"sources":[{"fileName":"fs.ts","line":133,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L133"}],"type":{"type":"intrinsic","name":"string"}},{"id":140,"name":"path","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Path to the file to write."}]},"sources":[{"fileName":"fs.ts","line":131,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L131"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[141,140]}],"sources":[{"fileName":"fs.ts","line":129,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L129"}]},{"id":142,"name":"BinaryFileContents","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"fs.ts","line":136,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L136"}],"type":{"type":"union","types":[{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es2015.iterable.d.ts","qualifiedName":"Iterable"},"typeArguments":[{"type":"intrinsic","name":"number"}],"name":"Iterable","package":"typescript"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"ArrayLike"},"typeArguments":[{"type":"intrinsic","name":"number"}],"name":"ArrayLike","package":"typescript"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"ArrayBuffer"},"name":"ArrayBuffer","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer"}]}},{"id":188,"name":"copyFile","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":489,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L489"}],"signatures":[{"id":189,"name":"copyFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Copies a file to a destination."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { copyFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Copy the `$APPCONFIG/app.conf` file to `$APPCONFIG/app.conf.bk`\nawait copyFile('app.conf', 'app.conf.bk', { dir: BaseDirectory.AppConfig });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":489,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L489"}],"parameters":[{"id":190,"name":"source","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":191,"name":"destination","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":192,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":180,"name":"createDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":434,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L434"}],"signatures":[{"id":181,"name":"createDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a directory.\nIf one of the path's parent components doesn't exist\nand the "},{"kind":"code","text":"`recursive`"},{"kind":"text","text":" option isn't set to true, the promise will be rejected."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { createDir, BaseDirectory } from '@tauri-apps/api/fs';\n// Create the `$APPDATA/users` directory\nawait createDir('users', { dir: BaseDirectory.AppData, recursive: true });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":434,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L434"}],"parameters":[{"id":182,"name":"dir","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":183,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":136,"name":"FsDirOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":202,"name":"exists","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":572,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L572"}],"signatures":[{"id":203,"name":"exists","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Check if a path exists."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { exists, BaseDirectory } from '@tauri-apps/api/fs';\n// Check if the `$APPDATA/avatar.png` file exists\nawait exists('avatar.png', { dir: BaseDirectory.AppData });\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"fs.ts","line":572,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L572"}],"parameters":[{"id":204,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":205,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":155,"name":"readBinaryFile","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":200,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L200"}],"signatures":[{"id":156,"name":"readBinaryFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Reads a file as byte array."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { readBinaryFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Read the image file in the `$RESOURCEDIR/avatar.png` path\nconst contents = await readBinaryFile('avatar.png', { dir: BaseDirectory.Resource });\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":200,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L200"}],"parameters":[{"id":157,"name":"filePath","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":158,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Uint8Array"},"name":"Uint8Array","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":176,"name":"readDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":405,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L405"}],"signatures":[{"id":177,"name":"readDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"List directory files."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { readDir, BaseDirectory } from '@tauri-apps/api/fs';\n// Reads the `$APPDATA/users` directory recursively\nconst entries = await readDir('users', { dir: BaseDirectory.AppData, recursive: true });\n\nfunction processEntries(entries) {\n for (const entry of entries) {\n console.log(`Entry: ${entry.path}`);\n if (entry.children) {\n processEntries(entry.children)\n }\n }\n}\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":405,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L405"}],"parameters":[{"id":178,"name":"dir","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":179,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":136,"name":"FsDirOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"array","elementType":{"type":"reference","target":146,"name":"FileEntry","package":"@tauri-apps/api"}}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":151,"name":"readTextFile","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":175,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L175"}],"signatures":[{"id":152,"name":"readTextFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Reads a file as an UTF-8 encoded string."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { readTextFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Read the text file in the `$APPCONFIG/app.conf` path\nconst contents = await readTextFile('app.conf', { dir: BaseDirectory.AppConfig });\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":175,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L175"}],"parameters":[{"id":153,"name":"filePath","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":154,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":184,"name":"removeDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":462,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L462"}],"signatures":[{"id":185,"name":"removeDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Removes a directory.\nIf the directory is not empty and the "},{"kind":"code","text":"`recursive`"},{"kind":"text","text":" option isn't set to true, the promise will be rejected."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { removeDir, BaseDirectory } from '@tauri-apps/api/fs';\n// Remove the directory `$APPDATA/users`\nawait removeDir('users', { dir: BaseDirectory.AppData });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":462,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L462"}],"parameters":[{"id":186,"name":"dir","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":187,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":136,"name":"FsDirOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":193,"name":"removeFile","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":518,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L518"}],"signatures":[{"id":194,"name":"removeFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Removes a file."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { removeFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Remove the `$APPConfig/app.conf` file\nawait removeFile('app.conf', { dir: BaseDirectory.AppConfig });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":518,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L518"}],"parameters":[{"id":195,"name":"file","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":196,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":197,"name":"renameFile","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":545,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L545"}],"signatures":[{"id":198,"name":"renameFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Renames a file."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { renameFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Rename the `$APPDATA/avatar.png` file\nawait renameFile('avatar.png', 'deleted.png', { dir: BaseDirectory.AppData });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":545,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L545"}],"parameters":[{"id":199,"name":"oldPath","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":200,"name":"newPath","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":201,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":168,"name":"writeBinaryFile","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":309,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L309"},{"fileName":"fs.ts","line":330,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L330"},{"fileName":"fs.ts","line":342,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L342"}],"signatures":[{"id":169,"name":"writeBinaryFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Writes a byte array content to a file."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { writeBinaryFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Write a binary file to the `$APPDATA/avatar.png` path\nawait writeBinaryFile('avatar.png', new Uint8Array([]), { dir: BaseDirectory.AppData });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":309,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L309"}],"parameters":[{"id":170,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":171,"name":"contents","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":142,"name":"BinaryFileContents","package":"@tauri-apps/api"}},{"id":172,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Configuration object."}]},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}},{"id":173,"name":"writeBinaryFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Writes a byte array content to a file."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { writeBinaryFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Write a binary file to the `$APPDATA/avatar.png` path\nawait writeBinaryFile({ path: 'avatar.png', contents: new Uint8Array([]) }, { dir: BaseDirectory.AppData });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":330,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L330"}],"parameters":[{"id":174,"name":"file","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The object containing the file path and contents."}]},"type":{"type":"reference","target":143,"name":"FsBinaryFileOption","package":"@tauri-apps/api"}},{"id":175,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Configuration object."}]},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":159,"name":"writeTextFile","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":227,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L227"},{"fileName":"fs.ts","line":245,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L245"},{"fileName":"fs.ts","line":257,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L257"}],"signatures":[{"id":160,"name":"writeTextFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Writes a UTF-8 text file."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { writeTextFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Write a text file to the `$APPCONFIG/app.conf` path\nawait writeTextFile('app.conf', 'file contents', { dir: BaseDirectory.AppConfig });\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":227,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L227"}],"parameters":[{"id":161,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":162,"name":"contents","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":163,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}},{"id":164,"name":"writeTextFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Writes a UTF-8 text file."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { writeTextFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Write a text file to the `$APPCONFIG/app.conf` path\nawait writeTextFile({ path: 'app.conf', contents: 'file contents' }, { dir: BaseDirectory.AppConfig });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":245,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L245"}],"parameters":[{"id":165,"name":"file","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":139,"name":"FsTextFileOption","package":"@tauri-apps/api"}},{"id":166,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"References","children":[150,167]},{"title":"Enumerations","children":[108]},{"title":"Interfaces","children":[146,143,136,134,139]},{"title":"Type Aliases","children":[142]},{"title":"Functions","children":[188,180,202,155,176,151,184,193,197,168,159]}],"sources":[{"fileName":"fs.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L1"}]},{"id":206,"name":"globalShortcut","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Register global shortcuts.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.globalShortcut`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.globalShortcut`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.globalshortcut) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"globalShortcut\": {\n \"all\": true // enable all global shortcut APIs\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security."}]},"children":[{"id":207,"name":"ShortcutHandler","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"globalShortcut.ts","line":29,"character":12,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/globalShortcut.ts#L29"}],"type":{"type":"reflection","declaration":{"id":208,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"globalShortcut.ts","line":29,"character":30,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/globalShortcut.ts#L29"}],"signatures":[{"id":209,"name":"__type","variant":"signature","kind":4096,"flags":{},"parameters":[{"id":210,"name":"shortcut","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"intrinsic","name":"void"}}]}}},{"id":219,"name":"isRegistered","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"globalShortcut.ts","line":101,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/globalShortcut.ts#L101"}],"signatures":[{"id":220,"name":"isRegistered","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Determines whether the given shortcut is registered by this application or not."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { isRegistered } from '@tauri-apps/api/globalShortcut';\nconst isRegistered = await isRegistered('CommandOrControl+P');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"globalShortcut.ts","line":101,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/globalShortcut.ts#L101"}],"parameters":[{"id":221,"name":"shortcut","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Array of shortcut definitions, modifiers and key separated by \"+\" e.g. CmdOrControl+Q"}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":211,"name":"register","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"globalShortcut.ts","line":46,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/globalShortcut.ts#L46"}],"signatures":[{"id":212,"name":"register","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Register a global shortcut."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { register } from '@tauri-apps/api/globalShortcut';\nawait register('CommandOrControl+Shift+C', () => {\n console.log('Shortcut triggered');\n});\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"globalShortcut.ts","line":46,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/globalShortcut.ts#L46"}],"parameters":[{"id":213,"name":"shortcut","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Shortcut definition, modifiers and key separated by \"+\" e.g. CmdOrControl+Q"}]},"type":{"type":"intrinsic","name":"string"}},{"id":214,"name":"handler","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Shortcut handler callback - takes the triggered shortcut as argument"}]},"type":{"type":"reference","target":207,"name":"ShortcutHandler","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":215,"name":"registerAll","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"globalShortcut.ts","line":75,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/globalShortcut.ts#L75"}],"signatures":[{"id":216,"name":"registerAll","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Register a collection of global shortcuts."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { registerAll } from '@tauri-apps/api/globalShortcut';\nawait registerAll(['CommandOrControl+Shift+C', 'Ctrl+Alt+F12'], (shortcut) => {\n console.log(`Shortcut ${shortcut} triggered`);\n});\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"globalShortcut.ts","line":75,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/globalShortcut.ts#L75"}],"parameters":[{"id":217,"name":"shortcuts","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Array of shortcut definitions, modifiers and key separated by \"+\" e.g. CmdOrControl+Q"}]},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}},{"id":218,"name":"handler","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Shortcut handler callback - takes the triggered shortcut as argument"}]},"type":{"type":"reference","target":207,"name":"ShortcutHandler","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":222,"name":"unregister","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"globalShortcut.ts","line":123,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/globalShortcut.ts#L123"}],"signatures":[{"id":223,"name":"unregister","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Unregister a global shortcut."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { unregister } from '@tauri-apps/api/globalShortcut';\nawait unregister('CmdOrControl+Space');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"globalShortcut.ts","line":123,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/globalShortcut.ts#L123"}],"parameters":[{"id":224,"name":"shortcut","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"shortcut definition, modifiers and key separated by \"+\" e.g. CmdOrControl+Q"}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":225,"name":"unregisterAll","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"globalShortcut.ts","line":143,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/globalShortcut.ts#L143"}],"signatures":[{"id":226,"name":"unregisterAll","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Unregisters all shortcuts registered by the application."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { unregisterAll } from '@tauri-apps/api/globalShortcut';\nawait unregisterAll();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"globalShortcut.ts","line":143,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/globalShortcut.ts#L143"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Type Aliases","children":[207]},{"title":"Functions","children":[219,211,215,222,225]}],"sources":[{"fileName":"globalShortcut.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/globalShortcut.ts#L1"}]},{"id":227,"name":"http","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Access the HTTP client written in Rust.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.http`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be allowlisted on "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"http\": {\n \"all\": true, // enable all http APIs\n \"request\": true // enable HTTP request API\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security.\n\n## Security\n\nThis API has a scope configuration that forces you to restrict the URLs and paths that can be accessed using glob patterns.\n\nFor instance, this scope configuration only allows making HTTP requests to the GitHub API for the "},{"kind":"code","text":"`tauri-apps`"},{"kind":"text","text":" organization:\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"http\": {\n \"scope\": [\"https://api.github.com/repos/tauri-apps/*\"]\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nTrying to execute any API with a URL not configured on the scope results in a promise rejection due to denied access."}]},"children":[{"id":323,"name":"ResponseType","variant":"declaration","kind":8,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":326,"name":"Binary","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"http.ts","line":74,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L74"}],"type":{"type":"literal","value":3}},{"id":324,"name":"JSON","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"http.ts","line":72,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L72"}],"type":{"type":"literal","value":1}},{"id":325,"name":"Text","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"http.ts","line":73,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L73"}],"type":{"type":"literal","value":2}}],"groups":[{"title":"Enumeration Members","children":[326,324,325]}],"sources":[{"fileName":"http.ts","line":71,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L71"}]},{"id":254,"name":"Body","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"The body object to be used on POST and PUT requests."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":272,"name":"payload","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":95,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L95"}],"type":{"type":"intrinsic","name":"unknown"}},{"id":271,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":94,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L94"}],"type":{"type":"intrinsic","name":"string"}},{"id":264,"name":"bytes","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"http.ts","line":217,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L217"}],"signatures":[{"id":265,"name":"bytes","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a new byte array body."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Body } from \"@tauri-apps/api/http\"\nBody.bytes(new Uint8Array([1, 2, 3]));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The body object ready to be used on the POST and PUT requests."}]}]},"sources":[{"fileName":"http.ts","line":217,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L217"}],"parameters":[{"id":266,"name":"bytes","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The body byte array."}]},"type":{"type":"union","types":[{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es2015.iterable.d.ts","qualifiedName":"Iterable"},"typeArguments":[{"type":"intrinsic","name":"number"}],"name":"Iterable","package":"typescript"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"ArrayBuffer"},"name":"ArrayBuffer","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"ArrayLike"},"typeArguments":[{"type":"intrinsic","name":"number"}],"name":"ArrayLike","package":"typescript"}]}}],"type":{"type":"reference","target":254,"name":"Body","package":"@tauri-apps/api"}}]},{"id":255,"name":"form","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"http.ts","line":134,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L134"}],"signatures":[{"id":256,"name":"form","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a new form data body. The form data is an object where each key is the entry name,\nand the value is either a string or a file object.\n\nBy default it sets the "},{"kind":"code","text":"`application/x-www-form-urlencoded`"},{"kind":"text","text":" Content-Type header,\nbut you can set it to "},{"kind":"code","text":"`multipart/form-data`"},{"kind":"text","text":" if the Cargo feature "},{"kind":"code","text":"`http-multipart`"},{"kind":"text","text":" is enabled.\n\nNote that a file path must be allowed in the "},{"kind":"code","text":"`fs`"},{"kind":"text","text":" allowlist scope."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Body } from \"@tauri-apps/api/http\"\nconst body = Body.form({\n key: 'value',\n image: {\n file: '/path/to/file', // either a path or an array buffer of the file contents\n mime: 'image/jpeg', // optional\n fileName: 'image.jpg' // optional\n }\n});\n\n// alternatively, use a FormData:\nconst form = new FormData();\nform.append('key', 'value');\nform.append('image', file, 'image.png');\nconst formBody = Body.form(form);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The body object ready to be used on the POST and PUT requests."}]}]},"sources":[{"fileName":"http.ts","line":134,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L134"}],"parameters":[{"id":257,"name":"data","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The body data."}]},"type":{"type":"union","types":[{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"reference","target":234,"name":"Part","package":"@tauri-apps/api"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.dom.d.ts","qualifiedName":"FormData"},"name":"FormData","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/API/FormData"}]}}],"type":{"type":"reference","target":254,"name":"Body","package":"@tauri-apps/api"}}]},{"id":258,"name":"json","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"http.ts","line":185,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L185"}],"signatures":[{"id":259,"name":"json","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a new JSON body."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Body } from \"@tauri-apps/api/http\"\nBody.json({\n registered: true,\n name: 'tauri'\n});\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The body object ready to be used on the POST and PUT requests."}]}]},"sources":[{"fileName":"http.ts","line":185,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L185"}],"parameters":[{"id":260,"name":"data","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The body JSON object."}]},"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"any"},{"type":"intrinsic","name":"any"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}}],"type":{"type":"reference","target":254,"name":"Body","package":"@tauri-apps/api"}}]},{"id":261,"name":"text","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"http.ts","line":201,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L201"}],"signatures":[{"id":262,"name":"text","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a new UTF-8 string body."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Body } from \"@tauri-apps/api/http\"\nBody.text('The body content as a string');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The body object ready to be used on the POST and PUT requests."}]}]},"sources":[{"fileName":"http.ts","line":201,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L201"}],"parameters":[{"id":263,"name":"value","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The body string."}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":254,"name":"Body","package":"@tauri-apps/api"}}]}],"groups":[{"title":"Properties","children":[272,271]},{"title":"Methods","children":[264,255,258,261]}],"sources":[{"fileName":"http.ts","line":93,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L93"}]},{"id":273,"name":"Client","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":277,"name":"id","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":303,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L303"}],"type":{"type":"intrinsic","name":"number"}},{"id":306,"name":"delete","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"http.ts","line":484,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L484"}],"signatures":[{"id":307,"name":"delete","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Makes a DELETE request."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient } from '@tauri-apps/api/http';\nconst client = await getClient();\nconst response = await client.delete('http://localhost:3003/users/1');\n```"}]}]},"sources":[{"fileName":"http.ts","line":484,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L484"}],"typeParameter":[{"id":308,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":309,"name":"url","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":310,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":244,"name":"RequestOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":311,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Response","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":278,"name":"drop","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"http.ts","line":318,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L318"}],"signatures":[{"id":279,"name":"drop","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Drops the client instance."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient } from '@tauri-apps/api/http';\nconst client = await getClient();\nawait client.drop();\n```"}]}]},"sources":[{"fileName":"http.ts","line":318,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L318"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":284,"name":"get","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"http.ts","line":389,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L389"}],"signatures":[{"id":285,"name":"get","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Makes a GET request."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient, ResponseType } from '@tauri-apps/api/http';\nconst client = await getClient();\nconst response = await client.get('http://localhost:3003/users', {\n timeout: 30,\n // the expected response type\n responseType: ResponseType.JSON\n});\n```"}]}]},"sources":[{"fileName":"http.ts","line":389,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L389"}],"typeParameter":[{"id":286,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":287,"name":"url","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":288,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":244,"name":"RequestOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":311,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Response","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":301,"name":"patch","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"http.ts","line":467,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L467"}],"signatures":[{"id":302,"name":"patch","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Makes a PATCH request."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient, Body } from '@tauri-apps/api/http';\nconst client = await getClient();\nconst response = await client.patch('http://localhost:3003/users/1', {\n body: Body.json({ email: 'contact@tauri.app' })\n});\n```"}]}]},"sources":[{"fileName":"http.ts","line":467,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L467"}],"typeParameter":[{"id":303,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":304,"name":"url","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":305,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":244,"name":"RequestOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":311,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Response","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":289,"name":"post","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"http.ts","line":413,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L413"}],"signatures":[{"id":290,"name":"post","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Makes a POST request."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient, Body, ResponseType } from '@tauri-apps/api/http';\nconst client = await getClient();\nconst response = await client.post('http://localhost:3003/users', {\n body: Body.json({\n name: 'tauri',\n password: 'awesome'\n }),\n // in this case the server returns a simple string\n responseType: ResponseType.Text,\n});\n```"}]}]},"sources":[{"fileName":"http.ts","line":413,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L413"}],"typeParameter":[{"id":291,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":292,"name":"url","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":293,"name":"body","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":254,"name":"Body","package":"@tauri-apps/api"}},{"id":294,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":244,"name":"RequestOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":311,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Response","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":295,"name":"put","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"http.ts","line":443,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L443"}],"signatures":[{"id":296,"name":"put","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Makes a PUT request."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient, Body } from '@tauri-apps/api/http';\nconst client = await getClient();\nconst response = await client.put('http://localhost:3003/users/1', {\n body: Body.form({\n file: {\n file: '/home/tauri/avatar.png',\n mime: 'image/png',\n fileName: 'avatar.png'\n }\n })\n});\n```"}]}]},"sources":[{"fileName":"http.ts","line":443,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L443"}],"typeParameter":[{"id":297,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":298,"name":"url","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":299,"name":"body","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":254,"name":"Body","package":"@tauri-apps/api"}},{"id":300,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":244,"name":"RequestOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":311,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Response","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":280,"name":"request","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"http.ts","line":340,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L340"}],"signatures":[{"id":281,"name":"request","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Makes an HTTP request."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient } from '@tauri-apps/api/http';\nconst client = await getClient();\nconst response = await client.request({\n method: 'GET',\n url: 'http://localhost:3003/users',\n});\n```"}]}]},"sources":[{"fileName":"http.ts","line":340,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L340"}],"typeParameter":[{"id":282,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":283,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":236,"name":"HttpOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":311,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Response","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Properties","children":[277]},{"title":"Methods","children":[306,278,284,301,289,295,280]}],"sources":[{"fileName":"http.ts","line":302,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L302"}]},{"id":311,"name":"Response","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"Response object."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":321,"name":"data","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The response data."}]},"sources":[{"fileName":"http.ts","line":286,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L286"}],"type":{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}},{"id":319,"name":"headers","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The response headers."}]},"sources":[{"fileName":"http.ts","line":282,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L282"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"string"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}},{"id":318,"name":"ok","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"A boolean indicating whether the response was successful (status in the range 200–299) or not."}]},"sources":[{"fileName":"http.ts","line":280,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L280"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":320,"name":"rawHeaders","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The response raw headers."}]},"sources":[{"fileName":"http.ts","line":284,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L284"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"array","elementType":{"type":"intrinsic","name":"string"}}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}},{"id":317,"name":"status","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The response status code."}]},"sources":[{"fileName":"http.ts","line":278,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L278"}],"type":{"type":"intrinsic","name":"number"}},{"id":316,"name":"url","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The request URL."}]},"sources":[{"fileName":"http.ts","line":276,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L276"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[321,319,318,320,317,316]}],"sources":[{"fileName":"http.ts","line":274,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L274"}],"typeParameters":[{"id":322,"name":"T","variant":"typeParam","kind":131072,"flags":{}}]},{"id":231,"name":"ClientOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":233,"name":"connectTimeout","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":65,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L65"}],"type":{"type":"union","types":[{"type":"intrinsic","name":"number"},{"type":"reference","target":228,"name":"Duration","package":"@tauri-apps/api"}]}},{"id":232,"name":"maxRedirections","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Defines the maximum number of redirects the client should follow.\nIf set to 0, no redirects will be followed."}]},"sources":[{"fileName":"http.ts","line":64,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L64"}],"type":{"type":"intrinsic","name":"number"}}],"groups":[{"title":"Properties","children":[233,232]}],"sources":[{"fileName":"http.ts","line":59,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L59"}]},{"id":228,"name":"Duration","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":230,"name":"nanos","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":53,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L53"}],"type":{"type":"intrinsic","name":"number"}},{"id":229,"name":"secs","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":52,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L52"}],"type":{"type":"intrinsic","name":"number"}}],"groups":[{"title":"Properties","children":[230,229]}],"sources":[{"fileName":"http.ts","line":51,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L51"}]},{"id":327,"name":"FilePart","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":328,"name":"file","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":81,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L81"}],"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}]}},{"id":330,"name":"fileName","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":83,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L83"}],"type":{"type":"intrinsic","name":"string"}},{"id":329,"name":"mime","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":82,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L82"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[328,330,329]}],"sources":[{"fileName":"http.ts","line":80,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L80"}],"typeParameters":[{"id":331,"name":"T","variant":"typeParam","kind":131072,"flags":{}}]},{"id":236,"name":"HttpOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Options object sent to the backend."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":241,"name":"body","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":250,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L250"}],"type":{"type":"reference","target":254,"name":"Body","package":"@tauri-apps/api"}},{"id":239,"name":"headers","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":248,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L248"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"any"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}},{"id":237,"name":"method","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":246,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L246"}],"type":{"type":"reference","target":235,"name":"HttpVerb","package":"@tauri-apps/api"}},{"id":240,"name":"query","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":249,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L249"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"any"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}},{"id":243,"name":"responseType","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":252,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L252"}],"type":{"type":"reference","target":323,"name":"ResponseType","package":"@tauri-apps/api"}},{"id":242,"name":"timeout","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":251,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L251"}],"type":{"type":"union","types":[{"type":"intrinsic","name":"number"},{"type":"reference","target":228,"name":"Duration","package":"@tauri-apps/api"}]}},{"id":238,"name":"url","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":247,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L247"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[241,239,237,240,243,242,238]}],"sources":[{"fileName":"http.ts","line":245,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L245"}]},{"id":245,"name":"FetchOptions","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[{"kind":"text","text":"Options for the "},{"kind":"code","text":"`fetch`"},{"kind":"text","text":" API."}]},"sources":[{"fileName":"http.ts","line":258,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L258"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Omit"},"typeArguments":[{"type":"reference","target":236,"name":"HttpOptions","package":"@tauri-apps/api"},{"type":"literal","value":"url"}],"name":"Omit","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#omittype-keys"}},{"id":235,"name":"HttpVerb","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[{"kind":"text","text":"The request HTTP verb."}]},"sources":[{"fileName":"http.ts","line":229,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L229"}],"type":{"type":"union","types":[{"type":"literal","value":"GET"},{"type":"literal","value":"POST"},{"type":"literal","value":"PUT"},{"type":"literal","value":"DELETE"},{"type":"literal","value":"PATCH"},{"type":"literal","value":"HEAD"},{"type":"literal","value":"OPTIONS"},{"type":"literal","value":"CONNECT"},{"type":"literal","value":"TRACE"}]}},{"id":234,"name":"Part","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"http.ts","line":86,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L86"}],"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Uint8Array"},"name":"Uint8Array","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array"},{"type":"reference","target":327,"typeArguments":[{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Uint8Array"},"name":"Uint8Array","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array"}],"name":"FilePart","package":"@tauri-apps/api"}]}},{"id":244,"name":"RequestOptions","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[{"kind":"text","text":"Request options."}]},"sources":[{"fileName":"http.ts","line":256,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L256"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Omit"},"typeArguments":[{"type":"reference","target":236,"name":"HttpOptions","package":"@tauri-apps/api"},{"type":"union","types":[{"type":"literal","value":"method"},{"type":"literal","value":"url"}]}],"name":"Omit","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#omittype-keys"}},{"id":249,"name":"fetch","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"http.ts","line":531,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L531"}],"signatures":[{"id":250,"name":"fetch","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Perform an HTTP request using the default client."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { fetch } from '@tauri-apps/api/http';\nconst response = await fetch('http://localhost:3003/users/2', {\n method: 'GET',\n timeout: 30,\n});\n```"}]}]},"sources":[{"fileName":"http.ts","line":531,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L531"}],"typeParameter":[{"id":251,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":252,"name":"url","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":253,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":245,"name":"FetchOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":311,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Response","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":246,"name":"getClient","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"http.ts","line":507,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L507"}],"signatures":[{"id":247,"name":"getClient","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a new client using the specified options."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient } from '@tauri-apps/api/http';\nconst client = await getClient();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to the client instance."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"http.ts","line":507,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L507"}],"parameters":[{"id":248,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Client configuration."}]},"type":{"type":"reference","target":231,"name":"ClientOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":273,"name":"Client","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Enumerations","children":[323]},{"title":"Classes","children":[254,273,311]},{"title":"Interfaces","children":[231,228,327,236]},{"title":"Type Aliases","children":[245,235,234,244]},{"title":"Functions","children":[249,246]}],"sources":[{"fileName":"http.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L1"}]},{"id":332,"name":"mocks","variant":"declaration","kind":2,"flags":{},"children":[{"id":344,"name":"clearMocks","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"mocks.ts","line":171,"character":16,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/mocks.ts#L171"}],"signatures":[{"id":345,"name":"clearMocks","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Clears mocked functions/data injected by the other functions in this module.\nWhen using a test runner that doesn't provide a fresh window object for each test, calling this function will reset tauri specific properties.\n\n# Example\n\n"},{"kind":"code","text":"```js\nimport { mockWindows, clearMocks } from \"@tauri-apps/api/mocks\"\n\nafterEach(() => {\n clearMocks()\n})\n\ntest(\"mocked windows\", () => {\n mockWindows(\"main\", \"second\", \"third\");\n\n expect(window).toHaveProperty(\"__TAURI_METADATA__\")\n})\n\ntest(\"no mocked windows\", () => {\n expect(window).not.toHaveProperty(\"__TAURI_METADATA__\")\n})\n```"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"mocks.ts","line":171,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/mocks.ts#L171"}],"type":{"type":"intrinsic","name":"void"}}]},{"id":333,"name":"mockIPC","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"mocks.ts","line":65,"character":16,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/mocks.ts#L65"}],"signatures":[{"id":334,"name":"mockIPC","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Intercepts all IPC requests with the given mock handler.\n\nThis function can be used when testing tauri frontend applications or when running the frontend in a Node.js context during static site generation.\n\n# Examples\n\nTesting setup using vitest:\n"},{"kind":"code","text":"```js\nimport { mockIPC, clearMocks } from \"@tauri-apps/api/mocks\"\nimport { invoke } from \"@tauri-apps/api/tauri\"\n\nafterEach(() => {\n clearMocks()\n})\n\ntest(\"mocked command\", () => {\n mockIPC((cmd, args) => {\n switch (cmd) {\n case \"add\":\n return (args.a as number) + (args.b as number);\n default:\n break;\n }\n });\n\n expect(invoke('add', { a: 12, b: 15 })).resolves.toBe(27);\n})\n```"},{"kind":"text","text":"\n\nThe callback function can also return a Promise:\n"},{"kind":"code","text":"```js\nimport { mockIPC, clearMocks } from \"@tauri-apps/api/mocks\"\nimport { invoke } from \"@tauri-apps/api/tauri\"\n\nafterEach(() => {\n clearMocks()\n})\n\ntest(\"mocked command\", () => {\n mockIPC((cmd, args) => {\n if(cmd === \"get_data\") {\n return fetch(\"https://example.com/data.json\")\n .then((response) => response.json())\n }\n });\n\n expect(invoke('get_data')).resolves.toBe({ foo: 'bar' });\n})\n```"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"mocks.ts","line":65,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/mocks.ts#L65"}],"parameters":[{"id":335,"name":"cb","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":336,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"mocks.ts","line":66,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/mocks.ts#L66"}],"signatures":[{"id":337,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"mocks.ts","line":66,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/mocks.ts#L66"}],"parameters":[{"id":338,"name":"cmd","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":339,"name":"args","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"unknown"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}}],"type":{"type":"intrinsic","name":"any"}}]}}}],"type":{"type":"intrinsic","name":"void"}}]},{"id":340,"name":"mockWindows","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"mocks.ts","line":135,"character":16,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/mocks.ts#L135"}],"signatures":[{"id":341,"name":"mockWindows","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Mocks one or many window labels.\nIn non-tauri context it is required to call this function *before* using the "},{"kind":"code","text":"`@tauri-apps/api/window`"},{"kind":"text","text":" module.\n\nThis function only mocks the *presence* of windows,\nwindow properties (e.g. width and height) can be mocked like regular IPC calls using the "},{"kind":"code","text":"`mockIPC`"},{"kind":"text","text":" function.\n\n# Examples\n\n"},{"kind":"code","text":"```js\nimport { mockWindows } from \"@tauri-apps/api/mocks\";\nimport { getCurrent } from \"@tauri-apps/api/window\";\n\nmockWindows(\"main\", \"second\", \"third\");\n\nconst win = getCurrent();\n\nwin.label // \"main\"\n```"},{"kind":"text","text":"\n\n"},{"kind":"code","text":"```js\nimport { mockWindows } from \"@tauri-apps/api/mocks\";\n\nmockWindows(\"main\", \"second\", \"third\");\n\nmockIPC((cmd, args) => {\n if (cmd === \"tauri\") {\n if (\n args?.__tauriModule === \"Window\" &&\n args?.message?.cmd === \"manage\" &&\n args?.message?.data?.cmd?.type === \"close\"\n ) {\n console.log('closing window!');\n }\n }\n});\n\nconst { getCurrent } = await import(\"@tauri-apps/api/window\");\n\nconst win = getCurrent();\nawait win.close(); // this will cause the mocked IPC handler to log to the console.\n```"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"mocks.ts","line":135,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/mocks.ts#L135"}],"parameters":[{"id":342,"name":"current","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Label of window this JavaScript context is running in."}]},"type":{"type":"intrinsic","name":"string"}},{"id":343,"name":"additionalWindows","variant":"param","kind":32768,"flags":{"isRest":true},"comment":{"summary":[{"kind":"text","text":"Label of additional windows the app has."}]},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}}],"type":{"type":"intrinsic","name":"void"}}]}],"groups":[{"title":"Functions","children":[344,333,340]}],"sources":[{"fileName":"mocks.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/mocks.ts#L1"}]},{"id":346,"name":"notification","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Send toast notifications (brief auto-expiring OS window element) to your user.\nCan also be used with the Notification Web API.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.notification`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.notification`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.notification) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"notification\": {\n \"all\": true // enable all notification APIs\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security."}]},"children":[{"id":347,"name":"Options","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Options to send a notification."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":349,"name":"body","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Optional notification body."}]},"sources":[{"fileName":"notification.ts","line":38,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/notification.ts#L38"}],"type":{"type":"intrinsic","name":"string"}},{"id":350,"name":"icon","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Optional notification icon."}]},"sources":[{"fileName":"notification.ts","line":40,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/notification.ts#L40"}],"type":{"type":"intrinsic","name":"string"}},{"id":351,"name":"sound","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Optional notification sound."}]},"sources":[{"fileName":"notification.ts","line":42,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/notification.ts#L42"}],"type":{"type":"intrinsic","name":"string"}},{"id":348,"name":"title","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Notification title."}]},"sources":[{"fileName":"notification.ts","line":36,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/notification.ts#L36"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[349,350,351,348]}],"sources":[{"fileName":"notification.ts","line":34,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/notification.ts#L34"}]},{"id":352,"name":"Permission","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[{"kind":"text","text":"Possible permission values."}]},"sources":[{"fileName":"notification.ts","line":46,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/notification.ts#L46"}],"type":{"type":"union","types":[{"type":"literal","value":"granted"},{"type":"literal","value":"denied"},{"type":"literal","value":"default"}]}},{"id":358,"name":"isPermissionGranted","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"notification.ts","line":58,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/notification.ts#L58"}],"signatures":[{"id":359,"name":"isPermissionGranted","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Checks if the permission to send notifications is granted."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { isPermissionGranted } from '@tauri-apps/api/notification';\nconst permissionGranted = await isPermissionGranted();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"notification.ts","line":58,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/notification.ts#L58"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":356,"name":"requestPermission","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"notification.ts","line":86,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/notification.ts#L86"}],"signatures":[{"id":357,"name":"requestPermission","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Requests the permission to send notifications."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { isPermissionGranted, requestPermission } from '@tauri-apps/api/notification';\nlet permissionGranted = await isPermissionGranted();\nif (!permissionGranted) {\n const permission = await requestPermission();\n permissionGranted = permission === 'granted';\n}\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to whether the user granted the permission or not."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"notification.ts","line":86,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/notification.ts#L86"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":352,"name":"Permission","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":353,"name":"sendNotification","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"notification.ts","line":108,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/notification.ts#L108"}],"signatures":[{"id":354,"name":"sendNotification","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sends a notification to the user."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { isPermissionGranted, requestPermission, sendNotification } from '@tauri-apps/api/notification';\nlet permissionGranted = await isPermissionGranted();\nif (!permissionGranted) {\n const permission = await requestPermission();\n permissionGranted = permission === 'granted';\n}\nif (permissionGranted) {\n sendNotification('Tauri is awesome!');\n sendNotification({ title: 'TAURI', body: 'Tauri is awesome!' });\n}\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"notification.ts","line":108,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/notification.ts#L108"}],"parameters":[{"id":355,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":347,"name":"Options","package":"@tauri-apps/api"}]}}],"type":{"type":"intrinsic","name":"void"}}]}],"groups":[{"title":"Interfaces","children":[347]},{"title":"Type Aliases","children":[352]},{"title":"Functions","children":[358,356,353]}],"sources":[{"fileName":"notification.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/notification.ts#L1"}]},{"id":360,"name":"os","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Provides operating system-related utility methods and properties.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.os`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.os`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.os) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"os\": {\n \"all\": true, // enable all Os APIs\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security."}]},"children":[{"id":376,"name":"Arch","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"os.ts","line":43,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L43"}],"type":{"type":"union","types":[{"type":"literal","value":"x86"},{"type":"literal","value":"x86_64"},{"type":"literal","value":"arm"},{"type":"literal","value":"aarch64"},{"type":"literal","value":"mips"},{"type":"literal","value":"mips64"},{"type":"literal","value":"powerpc"},{"type":"literal","value":"powerpc64"},{"type":"literal","value":"riscv64"},{"type":"literal","value":"s390x"},{"type":"literal","value":"sparc64"}]}},{"id":375,"name":"OsType","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"os.ts","line":41,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L41"}],"type":{"type":"union","types":[{"type":"literal","value":"Linux"},{"type":"literal","value":"Darwin"},{"type":"literal","value":"Windows_NT"}]}},{"id":374,"name":"Platform","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"os.ts","line":29,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L29"}],"type":{"type":"union","types":[{"type":"literal","value":"linux"},{"type":"literal","value":"darwin"},{"type":"literal","value":"ios"},{"type":"literal","value":"freebsd"},{"type":"literal","value":"dragonfly"},{"type":"literal","value":"netbsd"},{"type":"literal","value":"openbsd"},{"type":"literal","value":"solaris"},{"type":"literal","value":"android"},{"type":"literal","value":"win32"}]}},{"id":361,"name":"EOL","variant":"declaration","kind":32,"flags":{"isConst":true},"comment":{"summary":[{"kind":"text","text":"The operating system-specific end-of-line marker.\n- "},{"kind":"code","text":"`\\n`"},{"kind":"text","text":" on POSIX\n- "},{"kind":"code","text":"`\\r\\n`"},{"kind":"text","text":" on Windows"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"os.ts","line":63,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L63"}],"type":{"type":"union","types":[{"type":"literal","value":"\n"},{"type":"literal","value":"\r\n"}]},"defaultValue":"..."},{"id":368,"name":"arch","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"os.ts","line":135,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L135"}],"signatures":[{"id":369,"name":"arch","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the operating system CPU architecture for which the tauri app was compiled.\nPossible values are "},{"kind":"code","text":"`'x86'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'x86_64'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'arm'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'aarch64'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'mips'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'mips64'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'powerpc'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'powerpc64'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'riscv64'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'s390x'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'sparc64'`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { arch } from '@tauri-apps/api/os';\nconst archName = await arch();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"os.ts","line":135,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L135"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":376,"name":"Arch","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":372,"name":"locale","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"os.ts","line":176,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L176"}],"signatures":[{"id":373,"name":"locale","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns a String with a "},{"kind":"code","text":"`BCP-47`"},{"kind":"text","text":" language tag inside. If the locale couldn’t be obtained, "},{"kind":"code","text":"`null`"},{"kind":"text","text":" is returned instead."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { locale } from '@tauri-apps/api/os';\nconst locale = await locale();\nif (locale) {\n // use the locale string here\n}\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.4.0"}]}]},"sources":[{"fileName":"os.ts","line":176,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L176"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"literal","value":null}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":362,"name":"platform","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"os.ts","line":77,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L77"}],"signatures":[{"id":363,"name":"platform","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns a string identifying the operating system platform.\nThe value is set at compile time. Possible values are "},{"kind":"code","text":"`'linux'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'darwin'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'ios'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'freebsd'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'dragonfly'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'netbsd'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'openbsd'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'solaris'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'android'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'win32'`"}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { platform } from '@tauri-apps/api/os';\nconst platformName = await platform();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"os.ts","line":77,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L77"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":374,"name":"Platform","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":370,"name":"tempdir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"os.ts","line":154,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L154"}],"signatures":[{"id":371,"name":"tempdir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the operating system's default directory for temporary files as a string."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { tempdir } from '@tauri-apps/api/os';\nconst tempdirPath = await tempdir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"os.ts","line":154,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L154"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":366,"name":"type","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"os.ts","line":115,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L115"}],"signatures":[{"id":367,"name":"type","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"`'Linux'`"},{"kind":"text","text":" on Linux, "},{"kind":"code","text":"`'Darwin'`"},{"kind":"text","text":" on macOS, and "},{"kind":"code","text":"`'Windows_NT'`"},{"kind":"text","text":" on Windows."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { type } from '@tauri-apps/api/os';\nconst osType = await type();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"os.ts","line":115,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L115"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":375,"name":"OsType","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":364,"name":"version","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"os.ts","line":96,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L96"}],"signatures":[{"id":365,"name":"version","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns a string identifying the kernel version."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { version } from '@tauri-apps/api/os';\nconst osVersion = await version();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"os.ts","line":96,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L96"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Type Aliases","children":[376,375,374]},{"title":"Variables","children":[361]},{"title":"Functions","children":[368,372,362,370,366,364]}],"sources":[{"fileName":"os.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L1"}]},{"id":377,"name":"path","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"The path module provides utilities for working with file and directory paths.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.path`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.path`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.path) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"path\": {\n \"all\": true, // enable all Path APIs\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security."}]},"children":[{"id":1175,"name":"BaseDirectory","variant":"reference","kind":8388608,"flags":{},"sources":[{"fileName":"path.ts","line":839,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L839"}],"target":108},{"id":430,"name":"delimiter","variant":"declaration","kind":32,"flags":{"isConst":true},"comment":{"summary":[{"kind":"text","text":"Provides the platform-specific path segment delimiter:\n- "},{"kind":"code","text":"`;`"},{"kind":"text","text":" on Windows\n- "},{"kind":"code","text":"`:`"},{"kind":"text","text":" on POSIX"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":660,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L660"}],"type":{"type":"union","types":[{"type":"literal","value":";"},{"type":"literal","value":":"}]},"defaultValue":"..."},{"id":429,"name":"sep","variant":"declaration","kind":32,"flags":{"isConst":true},"comment":{"summary":[{"kind":"text","text":"Provides the platform-specific path segment separator:\n- "},{"kind":"code","text":"`\\` on Windows\n- `"},{"kind":"text","text":"/` on POSIX"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":651,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L651"}],"type":{"type":"union","types":[{"type":"literal","value":"\\"},{"type":"literal","value":"/"}]},"defaultValue":"..."},{"id":386,"name":"appCacheDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":117,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L117"}],"signatures":[{"id":387,"name":"appCacheDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app's cache files.\nResolves to "},{"kind":"code","text":"`${cacheDir}/${bundleIdentifier}`"},{"kind":"text","text":", where "},{"kind":"code","text":"`bundleIdentifier`"},{"kind":"text","text":" is the value ["},{"kind":"code","text":"`tauri.bundle.identifier`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appCacheDir } from '@tauri-apps/api/path';\nconst appCacheDirPath = await appCacheDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"path.ts","line":117,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L117"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":380,"name":"appConfigDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":51,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L51"}],"signatures":[{"id":381,"name":"appConfigDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app's config files.\nResolves to "},{"kind":"code","text":"`${configDir}/${bundleIdentifier}`"},{"kind":"text","text":", where "},{"kind":"code","text":"`bundleIdentifier`"},{"kind":"text","text":" is the value ["},{"kind":"code","text":"`tauri.bundle.identifier`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appConfigDir } from '@tauri-apps/api/path';\nconst appConfigDirPath = await appConfigDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"path.ts","line":51,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L51"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":382,"name":"appDataDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":73,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L73"}],"signatures":[{"id":383,"name":"appDataDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app's data files.\nResolves to "},{"kind":"code","text":"`${dataDir}/${bundleIdentifier}`"},{"kind":"text","text":", where "},{"kind":"code","text":"`bundleIdentifier`"},{"kind":"text","text":" is the value ["},{"kind":"code","text":"`tauri.bundle.identifier`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appDataDir } from '@tauri-apps/api/path';\nconst appDataDirPath = await appDataDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"path.ts","line":73,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L73"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":378,"name":"appDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":36,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L36"}],"signatures":[{"id":379,"name":"appDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app config files."}],"blockTags":[{"tag":"@deprecated","content":[{"kind":"text","text":"since 1.2.0: Will be removed in 2.0.0. Use "},{"kind":"inline-tag","tag":"@link","text":"appConfigDir","target":380,"tsLinkText":""},{"kind":"text","text":" or "},{"kind":"inline-tag","tag":"@link","text":"appDataDir","target":382,"tsLinkText":""},{"kind":"text","text":" instead."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":36,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L36"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":384,"name":"appLocalDataDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":95,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L95"}],"signatures":[{"id":385,"name":"appLocalDataDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app's local data files.\nResolves to "},{"kind":"code","text":"`${localDataDir}/${bundleIdentifier}`"},{"kind":"text","text":", where "},{"kind":"code","text":"`bundleIdentifier`"},{"kind":"text","text":" is the value ["},{"kind":"code","text":"`tauri.bundle.identifier`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appLocalDataDir } from '@tauri-apps/api/path';\nconst appLocalDataDirPath = await appLocalDataDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"path.ts","line":95,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L95"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":388,"name":"appLogDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":633,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L633"}],"signatures":[{"id":389,"name":"appLogDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app's log files.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`${configDir}/${bundleIdentifier}/logs`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`${homeDir}/Library/Logs/{bundleIdentifier}`"},{"kind":"text","text":"\n- **Windows:** Resolves to "},{"kind":"code","text":"`${configDir}/${bundleIdentifier}/logs`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appLogDir } from '@tauri-apps/api/path';\nconst appLogDirPath = await appLogDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"path.ts","line":633,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L633"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":390,"name":"audioDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":144,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L144"}],"signatures":[{"id":391,"name":"audioDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's audio directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_MUSIC_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Music`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Music}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { audioDir } from '@tauri-apps/api/path';\nconst audioDirPath = await audioDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":144,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L144"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":446,"name":"basename","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":782,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L782"}],"signatures":[{"id":447,"name":"basename","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the last portion of a "},{"kind":"code","text":"`path`"},{"kind":"text","text":". Trailing directory separators are ignored."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { basename, resolveResource } from '@tauri-apps/api/path';\nconst resourcePath = await resolveResource('app.conf');\nconst base = await basename(resourcePath);\nassert(base === 'app.conf');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":782,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L782"}],"parameters":[{"id":448,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":449,"name":"ext","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"An optional file extension to be removed from the returned path."}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":392,"name":"cacheDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":171,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L171"}],"signatures":[{"id":393,"name":"cacheDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's cache directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_CACHE_HOME`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.cache`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Library/Caches`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_LocalAppData}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { cacheDir } from '@tauri-apps/api/path';\nconst cacheDirPath = await cacheDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":171,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L171"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":394,"name":"configDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":198,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L198"}],"signatures":[{"id":395,"name":"configDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's config directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_CONFIG_HOME`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.config`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Library/Application Support`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_RoamingAppData}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { configDir } from '@tauri-apps/api/path';\nconst configDirPath = await configDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":198,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L198"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":396,"name":"dataDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":225,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L225"}],"signatures":[{"id":397,"name":"dataDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's data directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_DATA_HOME`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.local/share`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Library/Application Support`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_RoamingAppData}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { dataDir } from '@tauri-apps/api/path';\nconst dataDirPath = await dataDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":225,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L225"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":398,"name":"desktopDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":252,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L252"}],"signatures":[{"id":399,"name":"desktopDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's desktop directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_DESKTOP_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Desktop`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Desktop}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { desktopDir } from '@tauri-apps/api/path';\nconst desktopPath = await desktopDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":252,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L252"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":440,"name":"dirname","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":736,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L736"}],"signatures":[{"id":441,"name":"dirname","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the directory name of a "},{"kind":"code","text":"`path`"},{"kind":"text","text":". Trailing directory separators are ignored."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { dirname, appDataDir } from '@tauri-apps/api/path';\nconst appDataDirPath = await appDataDir();\nconst dir = await dirname(appDataDirPath);\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":736,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L736"}],"parameters":[{"id":442,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":400,"name":"documentDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":279,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L279"}],"signatures":[{"id":401,"name":"documentDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's document directory."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { documentDir } from '@tauri-apps/api/path';\nconst documentDirPath = await documentDir();\n```"},{"kind":"text","text":"\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_DOCUMENTS_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Documents`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Documents}`"},{"kind":"text","text":"."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":279,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L279"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":402,"name":"downloadDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":306,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L306"}],"signatures":[{"id":403,"name":"downloadDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's download directory.\n\n#### Platform-specific\n\n- **Linux**: Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_DOWNLOAD_DIR`"},{"kind":"text","text":".\n- **macOS**: Resolves to "},{"kind":"code","text":"`$HOME/Downloads`"},{"kind":"text","text":".\n- **Windows**: Resolves to "},{"kind":"code","text":"`{FOLDERID_Downloads}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { downloadDir } from '@tauri-apps/api/path';\nconst downloadDirPath = await downloadDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":306,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L306"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":404,"name":"executableDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":333,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L333"}],"signatures":[{"id":405,"name":"executableDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's executable directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_BIN_HOME/../bin`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$XDG_DATA_HOME/../bin`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.local/bin`"},{"kind":"text","text":".\n- **macOS:** Not supported.\n- **Windows:** Not supported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { executableDir } from '@tauri-apps/api/path';\nconst executableDirPath = await executableDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":333,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L333"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":443,"name":"extname","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":758,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L758"}],"signatures":[{"id":444,"name":"extname","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the extension of the "},{"kind":"code","text":"`path`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { extname, resolveResource } from '@tauri-apps/api/path';\nconst resourcePath = await resolveResource('app.conf');\nconst ext = await extname(resourcePath);\nassert(ext === 'conf');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":758,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L758"}],"parameters":[{"id":445,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":406,"name":"fontDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":360,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L360"}],"signatures":[{"id":407,"name":"fontDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's font directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_DATA_HOME/fonts`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.local/share/fonts`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Library/Fonts`"},{"kind":"text","text":".\n- **Windows:** Not supported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { fontDir } from '@tauri-apps/api/path';\nconst fontDirPath = await fontDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":360,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L360"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":408,"name":"homeDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":387,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L387"}],"signatures":[{"id":409,"name":"homeDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's home directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$HOME`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Profile}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { homeDir } from '@tauri-apps/api/path';\nconst homeDirPath = await homeDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":387,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L387"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":450,"name":"isAbsolute","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":803,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L803"}],"signatures":[{"id":451,"name":"isAbsolute","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns whether the path is absolute or not."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { isAbsolute } from '@tauri-apps/api/path';\nassert(await isAbsolute('/home/tauri'));\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":803,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L803"}],"parameters":[{"id":452,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":437,"name":"join","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":715,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L715"}],"signatures":[{"id":438,"name":"join","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Joins all given "},{"kind":"code","text":"`path`"},{"kind":"text","text":" segments together using the platform-specific separator as a delimiter, then normalizes the resulting path."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { join, appDataDir } from '@tauri-apps/api/path';\nconst appDataDirPath = await appDataDir();\nconst path = await join(appDataDirPath, 'users', 'tauri', 'avatar.png');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":715,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L715"}],"parameters":[{"id":439,"name":"paths","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":410,"name":"localDataDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":414,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L414"}],"signatures":[{"id":411,"name":"localDataDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's local data directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_DATA_HOME`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.local/share`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Library/Application Support`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_LocalAppData}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { localDataDir } from '@tauri-apps/api/path';\nconst localDataDirPath = await localDataDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":414,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L414"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":427,"name":"logDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":613,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L613"}],"signatures":[{"id":428,"name":"logDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested log directory."}],"blockTags":[{"tag":"@deprecated","content":[{"kind":"text","text":"since 1.2.0: Will be removed in 2.0.0. Use "},{"kind":"inline-tag","tag":"@link","text":"appLogDir","target":388,"tsLinkText":""},{"kind":"text","text":" instead."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":613,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L613"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":434,"name":"normalize","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":694,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L694"}],"signatures":[{"id":435,"name":"normalize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Normalizes the given "},{"kind":"code","text":"`path`"},{"kind":"text","text":", resolving "},{"kind":"code","text":"`'..'`"},{"kind":"text","text":" and "},{"kind":"code","text":"`'.'`"},{"kind":"text","text":" segments and resolve symbolic links."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { normalize, appDataDir } from '@tauri-apps/api/path';\nconst appDataDirPath = await appDataDir();\nconst path = await normalize(appDataDirPath, '..', 'users', 'tauri', 'avatar.png');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":694,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L694"}],"parameters":[{"id":436,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":412,"name":"pictureDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":441,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L441"}],"signatures":[{"id":413,"name":"pictureDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's picture directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_PICTURES_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Pictures`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Pictures}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { pictureDir } from '@tauri-apps/api/path';\nconst pictureDirPath = await pictureDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":441,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L441"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":414,"name":"publicDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":468,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L468"}],"signatures":[{"id":415,"name":"publicDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's public directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_PUBLICSHARE_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Public`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Public}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { publicDir } from '@tauri-apps/api/path';\nconst publicDirPath = await publicDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":468,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L468"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":431,"name":"resolve","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":673,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L673"}],"signatures":[{"id":432,"name":"resolve","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Resolves a sequence of "},{"kind":"code","text":"`paths`"},{"kind":"text","text":" or "},{"kind":"code","text":"`path`"},{"kind":"text","text":" segments into an absolute path."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { resolve, appDataDir } from '@tauri-apps/api/path';\nconst appDataDirPath = await appDataDir();\nconst path = await resolve(appDataDirPath, '..', 'users', 'tauri', 'avatar.png');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":673,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L673"}],"parameters":[{"id":433,"name":"paths","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":418,"name":"resolveResource","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":515,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L515"}],"signatures":[{"id":419,"name":"resolveResource","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Resolve the path to a resource file."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { resolveResource } from '@tauri-apps/api/path';\nconst resourcePath = await resolveResource('script.sh');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The full path to the resource."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":515,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L515"}],"parameters":[{"id":420,"name":"resourcePath","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The path to the resource.\nMust follow the same syntax as defined in "},{"kind":"code","text":"`tauri.conf.json > tauri > bundle > resources`"},{"kind":"text","text":", i.e. keeping subfolders and parent dir components ("},{"kind":"code","text":"`../`"},{"kind":"text","text":")."}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":416,"name":"resourceDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":490,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L490"}],"signatures":[{"id":417,"name":"resourceDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the application's resource directory.\nTo resolve a resource path, see the [[resolveResource | "},{"kind":"code","text":"`resolveResource API`"},{"kind":"text","text":"]]."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { resourceDir } from '@tauri-apps/api/path';\nconst resourceDirPath = await resourceDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":490,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L490"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":421,"name":"runtimeDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":542,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L542"}],"signatures":[{"id":422,"name":"runtimeDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's runtime directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_RUNTIME_DIR`"},{"kind":"text","text":".\n- **macOS:** Not supported.\n- **Windows:** Not supported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { runtimeDir } from '@tauri-apps/api/path';\nconst runtimeDirPath = await runtimeDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":542,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L542"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":423,"name":"templateDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":569,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L569"}],"signatures":[{"id":424,"name":"templateDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's template directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_TEMPLATES_DIR`"},{"kind":"text","text":".\n- **macOS:** Not supported.\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Templates}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { templateDir } from '@tauri-apps/api/path';\nconst templateDirPath = await templateDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":569,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L569"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":425,"name":"videoDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":596,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L596"}],"signatures":[{"id":426,"name":"videoDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's video directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_VIDEOS_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Movies`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Videos}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { videoDir } from '@tauri-apps/api/path';\nconst videoDirPath = await videoDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":596,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L596"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"References","children":[1175]},{"title":"Variables","children":[430,429]},{"title":"Functions","children":[386,380,382,378,384,388,390,446,392,394,396,398,440,400,402,404,443,406,408,450,437,410,427,434,412,414,431,418,416,421,423,425]}],"sources":[{"fileName":"path.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L1"}]},{"id":453,"name":"process","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Perform operations on the current process.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.process`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"children":[{"id":454,"name":"exit","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"process.ts","line":27,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/process.ts#L27"}],"signatures":[{"id":455,"name":"exit","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Exits immediately with the given "},{"kind":"code","text":"`exitCode`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { exit } from '@tauri-apps/api/process';\nawait exit(1);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"process.ts","line":27,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/process.ts#L27"}],"parameters":[{"id":456,"name":"exitCode","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The exit code to use."}]},"type":{"type":"intrinsic","name":"number"},"defaultValue":"0"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":457,"name":"relaunch","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"process.ts","line":49,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/process.ts#L49"}],"signatures":[{"id":458,"name":"relaunch","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Exits the current instance of the app then relaunches it."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { relaunch } from '@tauri-apps/api/process';\nawait relaunch();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"process.ts","line":49,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/process.ts#L49"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Functions","children":[454,457]}],"sources":[{"fileName":"process.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/process.ts#L1"}]},{"id":459,"name":"shell","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Access the system shell.\nAllows you to spawn child processes and manage files and URLs using their default application.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.shell`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.shell`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.shell) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"shell\": {\n \"all\": true, // enable all shell APIs\n \"execute\": true, // enable process spawn APIs\n \"sidecar\": true, // enable spawning sidecars\n \"open\": true // enable opening files/URLs using the default program\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security.\n\n## Security\n\nThis API has a scope configuration that forces you to restrict the programs and arguments that can be used.\n\n### Restricting access to the "},{"kind":"inline-tag","tag":"@link","text":"`open`","target":617},{"kind":"text","text":" API\n\nOn the allowlist, "},{"kind":"code","text":"`open: true`"},{"kind":"text","text":" means that the "},{"kind":"inline-tag","tag":"@link","text":"open","target":617},{"kind":"text","text":" API can be used with any URL,\nas the argument is validated with the "},{"kind":"code","text":"`^((mailto:\\w+)|(tel:\\w+)|(https?://\\w+)).+`"},{"kind":"text","text":" regex.\nYou can change that regex by changing the boolean value to a string, e.g. "},{"kind":"code","text":"`open: ^https://github.com/`"},{"kind":"text","text":".\n\n### Restricting access to the "},{"kind":"inline-tag","tag":"@link","text":"`Command`","target":460},{"kind":"text","text":" APIs\n\nThe "},{"kind":"code","text":"`shell`"},{"kind":"text","text":" allowlist object has a "},{"kind":"code","text":"`scope`"},{"kind":"text","text":" field that defines an array of CLIs that can be used.\nEach CLI is a configuration object "},{"kind":"code","text":"`{ name: string, cmd: string, sidecar?: bool, args?: boolean | Arg[] }`"},{"kind":"text","text":".\n\n- "},{"kind":"code","text":"`name`"},{"kind":"text","text":": the unique identifier of the command, passed to the "},{"kind":"inline-tag","tag":"@link","text":"Command constructor","target":466},{"kind":"text","text":".\nIf it's a sidecar, this must be the value defined on "},{"kind":"code","text":"`tauri.conf.json > tauri > bundle > externalBin`"},{"kind":"text","text":".\n- "},{"kind":"code","text":"`cmd`"},{"kind":"text","text":": the program that is executed on this configuration. If it's a sidecar, this value is ignored.\n- "},{"kind":"code","text":"`sidecar`"},{"kind":"text","text":": whether the object configures a sidecar or a system program.\n- "},{"kind":"code","text":"`args`"},{"kind":"text","text":": the arguments that can be passed to the program. By default no arguments are allowed.\n - "},{"kind":"code","text":"`true`"},{"kind":"text","text":" means that any argument list is allowed.\n - "},{"kind":"code","text":"`false`"},{"kind":"text","text":" means that no arguments are allowed.\n - otherwise an array can be configured. Each item is either a string representing the fixed argument value\n or a "},{"kind":"code","text":"`{ validator: string }`"},{"kind":"text","text":" that defines a regex validating the argument value.\n\n#### Example scope configuration\n\nCLI: "},{"kind":"code","text":"`git commit -m \"the commit message\"`"},{"kind":"text","text":"\n\nConfiguration:\n"},{"kind":"code","text":"```json\n{\n \"scope\": [\n {\n \"name\": \"run-git-commit\",\n \"cmd\": \"git\",\n \"args\": [\"commit\", \"-m\", { \"validator\": \"\\\\S+\" }]\n }\n ]\n}\n```"},{"kind":"text","text":"\nUsage:\n"},{"kind":"code","text":"```typescript\nimport { Command } from '@tauri-apps/api/shell'\nnew Command('run-git-commit', ['commit', '-m', 'the commit message'])\n```"},{"kind":"text","text":"\n\nTrying to execute any API with a program not configured on the scope results in a promise rejection due to denied access."}]},"children":[{"id":539,"name":"Child","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"children":[{"id":540,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"shell.ts","line":325,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L325"}],"signatures":[{"id":541,"name":"new Child","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"shell.ts","line":325,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L325"}],"parameters":[{"id":542,"name":"pid","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":539,"name":"Child","package":"@tauri-apps/api"}}]},{"id":543,"name":"pid","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The child process "},{"kind":"code","text":"`pid`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"shell.ts","line":323,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L323"}],"type":{"type":"intrinsic","name":"number"}},{"id":547,"name":"kill","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":361,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L361"}],"signatures":[{"id":548,"name":"kill","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Kills the child process."}],"blockTags":[{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"shell.ts","line":361,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L361"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":544,"name":"write","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":344,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L344"}],"signatures":[{"id":545,"name":"write","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Writes "},{"kind":"code","text":"`data`"},{"kind":"text","text":" to the "},{"kind":"code","text":"`stdin`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Command } from '@tauri-apps/api/shell';\nconst command = new Command('node');\nconst child = await command.spawn();\nawait child.write('message');\nawait child.write([0, 1, 2, 3, 4, 5]);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"shell.ts","line":344,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L344"}],"parameters":[{"id":546,"name":"data","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The message to write, either a string or a byte array."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Uint8Array"},"name":"Uint8Array","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Constructors","children":[540]},{"title":"Properties","children":[543]},{"title":"Methods","children":[547,544]}],"sources":[{"fileName":"shell.ts","line":321,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L321"}]},{"id":460,"name":"Command","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"The entry point for spawning child processes.\nIt emits the "},{"kind":"code","text":"`close`"},{"kind":"text","text":" and "},{"kind":"code","text":"`error`"},{"kind":"text","text":" events."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Command } from '@tauri-apps/api/shell';\nconst command = new Command('node');\ncommand.on('close', data => {\n console.log(`command finished with code ${data.code} and signal ${data.signal}`)\n});\ncommand.on('error', error => console.error(`command error: \"${error}\"`));\ncommand.stdout.on('data', line => console.log(`command stdout: \"${line}\"`));\ncommand.stderr.on('data', line => console.log(`command stderr: \"${line}\"`));\n\nconst child = await command.spawn();\nconsole.log('pid:', child.pid);\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"children":[{"id":466,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"shell.ts","line":413,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L413"}],"signatures":[{"id":467,"name":"new Command","variant":"signature","kind":16384,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a new "},{"kind":"code","text":"`Command`"},{"kind":"text","text":" instance."}]},"sources":[{"fileName":"shell.ts","line":413,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L413"}],"parameters":[{"id":468,"name":"program","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The program name to execute.\nIt must be configured on "},{"kind":"code","text":"`tauri.conf.json > tauri > allowlist > shell > scope`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":469,"name":"args","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Program arguments."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"array","elementType":{"type":"intrinsic","name":"string"}}]},"defaultValue":"[]"},{"id":470,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Spawn options."}]},"type":{"type":"reference","target":626,"name":"SpawnOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":460,"name":"Command","package":"@tauri-apps/api"},"overwrites":{"type":"reference","target":551,"name":"EventEmitter.constructor"}}],"overwrites":{"type":"reference","target":550,"name":"EventEmitter.constructor"}},{"id":475,"name":"stderr","variant":"declaration","kind":1024,"flags":{"isReadonly":true},"comment":{"summary":[{"kind":"text","text":"Event emitter for the "},{"kind":"code","text":"`stderr`"},{"kind":"text","text":". Emits the "},{"kind":"code","text":"`data`"},{"kind":"text","text":" event."}]},"sources":[{"fileName":"shell.ts","line":403,"character":11,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L403"}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"literal","value":"data"}],"name":"EventEmitter","package":"@tauri-apps/api"},"defaultValue":"..."},{"id":474,"name":"stdout","variant":"declaration","kind":1024,"flags":{"isReadonly":true},"comment":{"summary":[{"kind":"text","text":"Event emitter for the "},{"kind":"code","text":"`stdout`"},{"kind":"text","text":". Emits the "},{"kind":"code","text":"`data`"},{"kind":"text","text":" event."}]},"sources":[{"fileName":"shell.ts","line":401,"character":11,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L401"}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"literal","value":"data"}],"name":"EventEmitter","package":"@tauri-apps/api"},"defaultValue":"..."},{"id":480,"name":"addListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":164,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L164"}],"signatures":[{"id":481,"name":"addListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Alias for "},{"kind":"code","text":"`emitter.on(eventName, listener)`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":164,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L164"}],"parameters":[{"id":482,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}},{"id":483,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":484,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":164,"character":38,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L164"}],"signatures":[{"id":485,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":164,"character":38,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L164"}],"parameters":[{"id":486,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":460,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":558,"name":"EventEmitter.addListener"}}],"inheritedFrom":{"type":"reference","target":557,"name":"EventEmitter.addListener"}},{"id":478,"name":"execute","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":489,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L489"}],"signatures":[{"id":479,"name":"execute","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Executes the command as a child process, waiting for it to finish and collecting all of its output."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Command } from '@tauri-apps/api/shell';\nconst output = await new Command('echo', 'message').execute();\nassert(output.code === 0);\nassert(output.signal === null);\nassert(output.stdout === 'message');\nassert(output.stderr === '');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to the child process output."}]}]},"sources":[{"fileName":"shell.ts","line":489,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L489"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":621,"name":"ChildProcess","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":522,"name":"listenerCount","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":272,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L272"}],"signatures":[{"id":523,"name":"listenerCount","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the number of listeners listening to the event named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":272,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L272"}],"parameters":[{"id":524,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}}],"type":{"type":"intrinsic","name":"number"},"inheritedFrom":{"type":"reference","target":600,"name":"EventEmitter.listenerCount"}}],"inheritedFrom":{"type":"reference","target":599,"name":"EventEmitter.listenerCount"}},{"id":508,"name":"off","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":221,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L221"}],"signatures":[{"id":509,"name":"off","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Removes the all specified listener from the listener array for the event eventName\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":221,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L221"}],"parameters":[{"id":510,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}},{"id":511,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":512,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":221,"character":30,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L221"}],"signatures":[{"id":513,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":221,"character":30,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L221"}],"parameters":[{"id":514,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":460,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":586,"name":"EventEmitter.off"}}],"inheritedFrom":{"type":"reference","target":585,"name":"EventEmitter.off"}},{"id":494,"name":"on","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":187,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L187"}],"signatures":[{"id":495,"name":"on","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function to the end of the listeners array for the\nevent named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":". No checks are made to see if the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" has\nalready been added. Multiple calls passing the same combination of "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":"and "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" will result in the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" being added, and called, multiple\ntimes.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"shell.ts","line":187,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L187"}],"parameters":[{"id":496,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}},{"id":497,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":498,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":187,"character":29,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L187"}],"signatures":[{"id":499,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":187,"character":29,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L187"}],"parameters":[{"id":500,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":460,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":572,"name":"EventEmitter.on"}}],"inheritedFrom":{"type":"reference","target":571,"name":"EventEmitter.on"}},{"id":501,"name":"once","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":206,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L206"}],"signatures":[{"id":502,"name":"once","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds a **one-time**"},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function for the event named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":". The\nnext time "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":" is triggered, this listener is removed and then invoked.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":206,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L206"}],"parameters":[{"id":503,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}},{"id":504,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":505,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":206,"character":31,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L206"}],"signatures":[{"id":506,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":206,"character":31,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L206"}],"parameters":[{"id":507,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":460,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":579,"name":"EventEmitter.once"}}],"inheritedFrom":{"type":"reference","target":578,"name":"EventEmitter.once"}},{"id":525,"name":"prependListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":289,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L289"}],"signatures":[{"id":526,"name":"prependListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function to the _beginning_ of the listeners array for the\nevent named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":". No checks are made to see if the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" has\nalready been added. Multiple calls passing the same combination of "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":"and "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" will result in the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" being added, and called, multiple\ntimes.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":289,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L289"}],"parameters":[{"id":527,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}},{"id":528,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":529,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":289,"character":42,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L289"}],"signatures":[{"id":530,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":289,"character":42,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L289"}],"parameters":[{"id":531,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":460,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":603,"name":"EventEmitter.prependListener"}}],"inheritedFrom":{"type":"reference","target":602,"name":"EventEmitter.prependListener"}},{"id":532,"name":"prependOnceListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":308,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L308"}],"signatures":[{"id":533,"name":"prependOnceListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds a **one-time**"},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function for the event named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":" to the_beginning_ of the listeners array. The next time "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":" is triggered, this\nlistener is removed, and then invoked.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":308,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L308"}],"parameters":[{"id":534,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}},{"id":535,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":536,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":308,"character":46,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L308"}],"signatures":[{"id":537,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":308,"character":46,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L308"}],"parameters":[{"id":538,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":460,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":610,"name":"EventEmitter.prependOnceListener"}}],"inheritedFrom":{"type":"reference","target":609,"name":"EventEmitter.prependOnceListener"}},{"id":515,"name":"removeAllListeners","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":238,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L238"}],"signatures":[{"id":516,"name":"removeAllListeners","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Removes all listeners, or those of the specified eventName.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":238,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L238"}],"parameters":[{"id":517,"name":"event","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}}],"type":{"type":"reference","target":460,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":593,"name":"EventEmitter.removeAllListeners"}}],"inheritedFrom":{"type":"reference","target":592,"name":"EventEmitter.removeAllListeners"}},{"id":487,"name":"removeListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":173,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L173"}],"signatures":[{"id":488,"name":"removeListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Alias for "},{"kind":"code","text":"`emitter.off(eventName, listener)`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":173,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L173"}],"parameters":[{"id":489,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}},{"id":490,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":491,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":173,"character":41,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L173"}],"signatures":[{"id":492,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":173,"character":41,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L173"}],"parameters":[{"id":493,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":460,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":565,"name":"EventEmitter.removeListener"}}],"inheritedFrom":{"type":"reference","target":564,"name":"EventEmitter.removeListener"}},{"id":476,"name":"spawn","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":451,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L451"}],"signatures":[{"id":477,"name":"spawn","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Executes the command as a child process, returning a handle to it."}],"blockTags":[{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to the child process handle."}]}]},"sources":[{"fileName":"shell.ts","line":451,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L451"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":539,"name":"Child","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":461,"name":"sidecar","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"shell.ts","line":436,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L436"}],"signatures":[{"id":462,"name":"sidecar","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a command to execute the given sidecar program."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Command } from '@tauri-apps/api/shell';\nconst command = Command.sidecar('my-sidecar');\nconst output = await command.execute();\n```"}]}]},"sources":[{"fileName":"shell.ts","line":436,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L436"}],"parameters":[{"id":463,"name":"program","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The program to execute.\nIt must be configured on "},{"kind":"code","text":"`tauri.conf.json > tauri > allowlist > shell > scope`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":464,"name":"args","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"array","elementType":{"type":"intrinsic","name":"string"}}]},"defaultValue":"[]"},{"id":465,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":626,"name":"SpawnOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":460,"name":"Command","package":"@tauri-apps/api"}}]}],"groups":[{"title":"Constructors","children":[466]},{"title":"Properties","children":[475,474]},{"title":"Methods","children":[480,478,522,508,494,501,525,532,515,487,476,461]}],"sources":[{"fileName":"shell.ts","line":393,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L393"}],"extendedTypes":[{"type":"reference","target":549,"typeArguments":[{"type":"union","types":[{"type":"literal","value":"close"},{"type":"literal","value":"error"}]}],"name":"EventEmitter","package":"@tauri-apps/api"}]},{"id":549,"name":"EventEmitter","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":550,"name":"constructor","variant":"declaration","kind":512,"flags":{},"signatures":[{"id":551,"name":"new EventEmitter","variant":"signature","kind":16384,"flags":{},"typeParameter":[{"id":552,"name":"E","variant":"typeParam","kind":131072,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":557,"name":"addListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":164,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L164"}],"signatures":[{"id":558,"name":"addListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Alias for "},{"kind":"code","text":"`emitter.on(eventName, listener)`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":164,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L164"}],"parameters":[{"id":559,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}},{"id":560,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":561,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":164,"character":38,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L164"}],"signatures":[{"id":562,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":164,"character":38,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L164"}],"parameters":[{"id":563,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":599,"name":"listenerCount","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":272,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L272"}],"signatures":[{"id":600,"name":"listenerCount","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the number of listeners listening to the event named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":272,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L272"}],"parameters":[{"id":601,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}}],"type":{"type":"intrinsic","name":"number"}}]},{"id":585,"name":"off","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":221,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L221"}],"signatures":[{"id":586,"name":"off","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Removes the all specified listener from the listener array for the event eventName\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":221,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L221"}],"parameters":[{"id":587,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}},{"id":588,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":589,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":221,"character":30,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L221"}],"signatures":[{"id":590,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":221,"character":30,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L221"}],"parameters":[{"id":591,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":571,"name":"on","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":187,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L187"}],"signatures":[{"id":572,"name":"on","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function to the end of the listeners array for the\nevent named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":". No checks are made to see if the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" has\nalready been added. Multiple calls passing the same combination of "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":"and "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" will result in the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" being added, and called, multiple\ntimes.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"shell.ts","line":187,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L187"}],"parameters":[{"id":573,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}},{"id":574,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":575,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":187,"character":29,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L187"}],"signatures":[{"id":576,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":187,"character":29,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L187"}],"parameters":[{"id":577,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":578,"name":"once","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":206,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L206"}],"signatures":[{"id":579,"name":"once","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds a **one-time**"},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function for the event named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":". The\nnext time "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":" is triggered, this listener is removed and then invoked.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":206,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L206"}],"parameters":[{"id":580,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}},{"id":581,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":582,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":206,"character":31,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L206"}],"signatures":[{"id":583,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":206,"character":31,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L206"}],"parameters":[{"id":584,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":602,"name":"prependListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":289,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L289"}],"signatures":[{"id":603,"name":"prependListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function to the _beginning_ of the listeners array for the\nevent named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":". No checks are made to see if the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" has\nalready been added. Multiple calls passing the same combination of "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":"and "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" will result in the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" being added, and called, multiple\ntimes.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":289,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L289"}],"parameters":[{"id":604,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}},{"id":605,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":606,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":289,"character":42,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L289"}],"signatures":[{"id":607,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":289,"character":42,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L289"}],"parameters":[{"id":608,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":609,"name":"prependOnceListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":308,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L308"}],"signatures":[{"id":610,"name":"prependOnceListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds a **one-time**"},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function for the event named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":" to the_beginning_ of the listeners array. The next time "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":" is triggered, this\nlistener is removed, and then invoked.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":308,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L308"}],"parameters":[{"id":611,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}},{"id":612,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":613,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":308,"character":46,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L308"}],"signatures":[{"id":614,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":308,"character":46,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L308"}],"parameters":[{"id":615,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":592,"name":"removeAllListeners","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":238,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L238"}],"signatures":[{"id":593,"name":"removeAllListeners","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Removes all listeners, or those of the specified eventName.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":238,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L238"}],"parameters":[{"id":594,"name":"event","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":564,"name":"removeListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":173,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L173"}],"signatures":[{"id":565,"name":"removeListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Alias for "},{"kind":"code","text":"`emitter.off(eventName, listener)`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":173,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L173"}],"parameters":[{"id":566,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}},{"id":567,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":568,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":173,"character":41,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L173"}],"signatures":[{"id":569,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":173,"character":41,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L173"}],"parameters":[{"id":570,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]}],"groups":[{"title":"Constructors","children":[550]},{"title":"Methods","children":[557,599,585,571,578,602,609,592,564]}],"sources":[{"fileName":"shell.ts","line":153,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L153"}],"typeParameters":[{"id":616,"name":"E","variant":"typeParam","kind":131072,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"extendedBy":[{"type":"reference","target":460,"name":"Command"}]},{"id":621,"name":"ChildProcess","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":622,"name":"code","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Exit code of the process. "},{"kind":"code","text":"`null`"},{"kind":"text","text":" if the process was terminated by a signal on Unix."}]},"sources":[{"fileName":"shell.ts","line":109,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L109"}],"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"intrinsic","name":"number"}]}},{"id":623,"name":"signal","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"If the process was terminated by a signal, represents that signal."}]},"sources":[{"fileName":"shell.ts","line":111,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L111"}],"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"intrinsic","name":"number"}]}},{"id":625,"name":"stderr","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The data that the process wrote to "},{"kind":"code","text":"`stderr`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"shell.ts","line":115,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L115"}],"type":{"type":"intrinsic","name":"string"}},{"id":624,"name":"stdout","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The data that the process wrote to "},{"kind":"code","text":"`stdout`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"shell.ts","line":113,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L113"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[622,623,625,624]}],"sources":[{"fileName":"shell.ts","line":107,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L107"}]},{"id":626,"name":"SpawnOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":627,"name":"cwd","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Current working directory."}]},"sources":[{"fileName":"shell.ts","line":88,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L88"}],"type":{"type":"intrinsic","name":"string"}},{"id":629,"name":"encoding","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Character encoding for stdout/stderr"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":96,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L96"}],"type":{"type":"intrinsic","name":"string"}},{"id":628,"name":"env","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Environment variables. set to "},{"kind":"code","text":"`null`"},{"kind":"text","text":" to clear the process env."}]},"sources":[{"fileName":"shell.ts","line":90,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L90"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"string"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}}],"groups":[{"title":"Properties","children":[627,629,628]}],"sources":[{"fileName":"shell.ts","line":86,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L86"}]},{"id":617,"name":"open","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"shell.ts","line":564,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L564"}],"signatures":[{"id":618,"name":"open","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Opens a path or URL with the system's default app,\nor the one specified with "},{"kind":"code","text":"`openWith`"},{"kind":"text","text":".\n\nThe "},{"kind":"code","text":"`openWith`"},{"kind":"text","text":" value must be one of "},{"kind":"code","text":"`firefox`"},{"kind":"text","text":", "},{"kind":"code","text":"`google chrome`"},{"kind":"text","text":", "},{"kind":"code","text":"`chromium`"},{"kind":"text","text":" "},{"kind":"code","text":"`safari`"},{"kind":"text","text":",\n"},{"kind":"code","text":"`open`"},{"kind":"text","text":", "},{"kind":"code","text":"`start`"},{"kind":"text","text":", "},{"kind":"code","text":"`xdg-open`"},{"kind":"text","text":", "},{"kind":"code","text":"`gio`"},{"kind":"text","text":", "},{"kind":"code","text":"`gnome-open`"},{"kind":"text","text":", "},{"kind":"code","text":"`kde-open`"},{"kind":"text","text":" or "},{"kind":"code","text":"`wslview`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { open } from '@tauri-apps/api/shell';\n// opens the given URL on the default browser:\nawait open('https://github.com/tauri-apps/tauri');\n// opens the given URL using `firefox`:\nawait open('https://github.com/tauri-apps/tauri', 'firefox');\n// opens a file using the default program:\nawait open('/path/to/file');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"shell.ts","line":564,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L564"}],"parameters":[{"id":619,"name":"path","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The path or URL to open.\nThis value is matched against the string regex defined on "},{"kind":"code","text":"`tauri.conf.json > tauri > allowlist > shell > open`"},{"kind":"text","text":",\nwhich defaults to "},{"kind":"code","text":"`^((mailto:\\w+)|(tel:\\w+)|(https?://\\w+)).+`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":620,"name":"openWith","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The app to open the file or URL with.\nDefaults to the system default application for the specified path type."}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Classes","children":[539,460,549]},{"title":"Interfaces","children":[621,626]},{"title":"Functions","children":[617]}],"sources":[{"fileName":"shell.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L1"}]},{"id":630,"name":"tauri","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Invoke your custom commands.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.tauri`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"children":[{"id":631,"name":"InvokeArgs","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[{"kind":"text","text":"Command arguments."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"tauri.ts","line":63,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/tauri.ts#L63"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"unknown"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}},{"id":644,"name":"convertFileSrc","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"tauri.ts","line":129,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/tauri.ts#L129"}],"signatures":[{"id":645,"name":"convertFileSrc","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Convert a device file path to an URL that can be loaded by the webview.\nNote that "},{"kind":"code","text":"`asset:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`https://asset.localhost`"},{"kind":"text","text":" must be added to ["},{"kind":"code","text":"`tauri.security.csp`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#securityconfig.csp) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":".\nExample CSP value: "},{"kind":"code","text":"`\"csp\": \"default-src 'self'; img-src 'self' asset: https://asset.localhost\"`"},{"kind":"text","text":" to use the asset protocol on image sources.\n\nAdditionally, "},{"kind":"code","text":"`asset`"},{"kind":"text","text":" must be added to ["},{"kind":"code","text":"`tauri.allowlist.protocol`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.protocol)\nin "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" and its access scope must be defined on the "},{"kind":"code","text":"`assetScope`"},{"kind":"text","text":" array on the same "},{"kind":"code","text":"`protocol`"},{"kind":"text","text":" object."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appDataDir, join } from '@tauri-apps/api/path';\nimport { convertFileSrc } from '@tauri-apps/api/tauri';\nconst appDataDirPath = await appDataDir();\nconst filePath = await join(appDataDirPath, 'assets/video.mp4');\nconst assetUrl = convertFileSrc(filePath);\n\nconst video = document.getElementById('my-video');\nconst source = document.createElement('source');\nsource.type = 'video/mp4';\nsource.src = assetUrl;\nvideo.appendChild(source);\nvideo.load();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"the URL that can be used as source on the webview."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"tauri.ts","line":129,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/tauri.ts#L129"}],"parameters":[{"id":646,"name":"filePath","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The file path."}]},"type":{"type":"intrinsic","name":"string"}},{"id":647,"name":"protocol","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The protocol to use. Defaults to "},{"kind":"code","text":"`asset`"},{"kind":"text","text":". You only need to set this when using a custom protocol."}]},"type":{"type":"intrinsic","name":"string"},"defaultValue":"'asset'"}],"type":{"type":"intrinsic","name":"string"}}]},{"id":639,"name":"invoke","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"tauri.ts","line":79,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/tauri.ts#L79"}],"signatures":[{"id":640,"name":"invoke","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sends a message to the backend."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { invoke } from '@tauri-apps/api/tauri';\nawait invoke('login', { user: 'tauri', password: 'poiwe3h4r5ip3yrhtew9ty' });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving or rejecting to the backend response."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"tauri.ts","line":79,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/tauri.ts#L79"}],"typeParameter":[{"id":641,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":642,"name":"cmd","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The command name."}]},"type":{"type":"intrinsic","name":"string"}},{"id":643,"name":"args","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The optional arguments to pass to the command."}]},"type":{"type":"reference","target":631,"name":"InvokeArgs","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":632,"name":"transformCallback","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"tauri.ts","line":36,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/tauri.ts#L36"}],"signatures":[{"id":633,"name":"transformCallback","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Transforms a callback function to a string identifier that can be passed to the backend.\nThe backend uses the identifier to "},{"kind":"code","text":"`eval()`"},{"kind":"text","text":" the callback."}],"blockTags":[{"tag":"@returns","content":[{"kind":"text","text":"A unique identifier associated with the callback function."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"tauri.ts","line":36,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/tauri.ts#L36"}],"parameters":[{"id":634,"name":"callback","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reflection","declaration":{"id":635,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"tauri.ts","line":37,"character":13,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/tauri.ts#L37"}],"signatures":[{"id":636,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"tauri.ts","line":37,"character":13,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/tauri.ts#L37"}],"parameters":[{"id":637,"name":"response","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"void"}}]}}},{"id":638,"name":"once","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"},"defaultValue":"false"}],"type":{"type":"intrinsic","name":"number"}}]}],"groups":[{"title":"Type Aliases","children":[631]},{"title":"Functions","children":[644,639,632]}],"sources":[{"fileName":"tauri.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/tauri.ts#L1"}]},{"id":648,"name":"updater","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Customize the auto updater flow.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.updater`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"children":[{"id":653,"name":"UpdateManifest","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":656,"name":"body","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"updater.ts","line":34,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L34"}],"type":{"type":"intrinsic","name":"string"}},{"id":655,"name":"date","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"updater.ts","line":33,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L33"}],"type":{"type":"intrinsic","name":"string"}},{"id":654,"name":"version","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"updater.ts","line":32,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L32"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[656,655,654]}],"sources":[{"fileName":"updater.ts","line":31,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L31"}]},{"id":657,"name":"UpdateResult","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":658,"name":"manifest","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"updater.ts","line":41,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L41"}],"type":{"type":"reference","target":653,"name":"UpdateManifest","package":"@tauri-apps/api"}},{"id":659,"name":"shouldUpdate","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"updater.ts","line":42,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L42"}],"type":{"type":"intrinsic","name":"boolean"}}],"groups":[{"title":"Properties","children":[658,659]}],"sources":[{"fileName":"updater.ts","line":40,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L40"}]},{"id":650,"name":"UpdateStatusResult","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":651,"name":"error","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"updater.ts","line":24,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L24"}],"type":{"type":"intrinsic","name":"string"}},{"id":652,"name":"status","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"updater.ts","line":25,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L25"}],"type":{"type":"reference","target":649,"name":"UpdateStatus","package":"@tauri-apps/api"}}],"groups":[{"title":"Properties","children":[651,652]}],"sources":[{"fileName":"updater.ts","line":23,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L23"}]},{"id":649,"name":"UpdateStatus","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"updater.ts","line":18,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L18"}],"type":{"type":"union","types":[{"type":"literal","value":"PENDING"},{"type":"literal","value":"ERROR"},{"type":"literal","value":"DONE"},{"type":"literal","value":"UPTODATE"}]}},{"id":668,"name":"checkUpdate","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"updater.ts","line":146,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L146"}],"signatures":[{"id":669,"name":"checkUpdate","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Checks if an update is available."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { checkUpdate } from '@tauri-apps/api/updater';\nconst update = await checkUpdate();\n// now run installUpdate() if needed\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Promise resolving to the update status."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"updater.ts","line":146,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L146"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":657,"name":"UpdateResult","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":666,"name":"installUpdate","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"updater.ts","line":87,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L87"}],"signatures":[{"id":667,"name":"installUpdate","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Install the update if there's one available."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { checkUpdate, installUpdate } from '@tauri-apps/api/updater';\nconst update = await checkUpdate();\nif (update.shouldUpdate) {\n console.log(`Installing update ${update.manifest?.version}, ${update.manifest?.date}, ${update.manifest.body}`);\n await installUpdate();\n}\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"updater.ts","line":87,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L87"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":660,"name":"onUpdaterEvent","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"updater.ts","line":63,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L63"}],"signatures":[{"id":661,"name":"onUpdaterEvent","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to an updater event."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { onUpdaterEvent } from \"@tauri-apps/api/updater\";\nconst unlisten = await onUpdaterEvent(({ error, status }) => {\n console.log('Updater event', error, status);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"updater.ts","line":63,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L63"}],"parameters":[{"id":662,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":663,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"updater.ts","line":64,"character":11,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L64"}],"signatures":[{"id":664,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"updater.ts","line":64,"character":11,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L64"}],"parameters":[{"id":665,"name":"status","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":650,"name":"UpdateStatusResult","package":"@tauri-apps/api"}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Interfaces","children":[653,657,650]},{"title":"Type Aliases","children":[649]},{"title":"Functions","children":[668,666,660]}],"sources":[{"fileName":"updater.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L1"}]},{"id":670,"name":"window","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Provides APIs to create windows, communicate with other windows and manipulate the current window.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.window`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.window`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.window) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"window\": {\n \"all\": true, // enable all window APIs\n \"create\": true, // enable window creation\n \"center\": true,\n \"requestUserAttention\": true,\n \"setResizable\": true,\n \"setMaximizable\": true,\n \"setMinimizable\": true,\n \"setClosable\": true,\n \"setTitle\": true,\n \"maximize\": true,\n \"unmaximize\": true,\n \"minimize\": true,\n \"unminimize\": true,\n \"show\": true,\n \"hide\": true,\n \"close\": true,\n \"setDecorations\": true,\n \"setAlwaysOnTop\": true,\n \"setContentProtected\": true,\n \"setSize\": true,\n \"setMinSize\": true,\n \"setMaxSize\": true,\n \"setPosition\": true,\n \"setFullscreen\": true,\n \"setFocus\": true,\n \"setIcon\": true,\n \"setSkipTaskbar\": true,\n \"setCursorGrab\": true,\n \"setCursorVisible\": true,\n \"setCursorIcon\": true,\n \"setCursorPosition\": true,\n \"setIgnoreCursorEvents\": true,\n \"startDragging\": true,\n \"print\": true\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security.\n\n## Window events\n\nEvents can be listened to using "},{"kind":"code","text":"`appWindow.listen`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nappWindow.listen(\"my-window-event\", ({ event, payload }) => { });\n```"}]},"children":[{"id":1101,"name":"UserAttentionType","variant":"declaration","kind":8,"flags":{},"comment":{"summary":[{"kind":"text","text":"Attention type to request on a window."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":1102,"name":"Critical","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"#### Platform-specific\n- **macOS:** Bounces the dock icon until the application is in focus.\n- **Windows:** Flashes both the window and the taskbar button until the application is in focus."}]},"sources":[{"fileName":"window.ts","line":228,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L228"}],"type":{"type":"literal","value":1}},{"id":1103,"name":"Informational","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"#### Platform-specific\n- **macOS:** Bounces the dock icon once.\n- **Windows:** Flashes the taskbar button until the application is in focus."}]},"sources":[{"fileName":"window.ts","line":234,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L234"}],"type":{"type":"literal","value":2}}],"groups":[{"title":"Enumeration Members","children":[1102,1103]}],"sources":[{"fileName":"window.ts","line":222,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L222"}]},{"id":1046,"name":"CloseRequestedEvent","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"children":[{"id":1047,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"window.ts","line":2179,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2179"}],"signatures":[{"id":1048,"name":"new CloseRequestedEvent","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"window.ts","line":2179,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2179"}],"parameters":[{"id":1049,"name":"event","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1161,"typeArguments":[{"type":"literal","value":null}],"name":"Event","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":1046,"name":"CloseRequestedEvent","package":"@tauri-apps/api"}}]},{"id":1053,"name":"_preventDefault","variant":"declaration","kind":1024,"flags":{"isPrivate":true},"sources":[{"fileName":"window.ts","line":2177,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2177"}],"type":{"type":"intrinsic","name":"boolean"},"defaultValue":"false"},{"id":1050,"name":"event","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name"}]},"sources":[{"fileName":"window.ts","line":2172,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2172"}],"type":{"type":"reference","target":73,"name":"EventName","package":"@tauri-apps/api"}},{"id":1052,"name":"id","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event identifier used to unlisten"}]},"sources":[{"fileName":"window.ts","line":2176,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2176"}],"type":{"type":"intrinsic","name":"number"}},{"id":1051,"name":"windowLabel","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The label of the window that emitted this event."}]},"sources":[{"fileName":"window.ts","line":2174,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2174"}],"type":{"type":"intrinsic","name":"string"}},{"id":1056,"name":"isPreventDefault","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":2189,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2189"}],"signatures":[{"id":1057,"name":"isPreventDefault","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"window.ts","line":2189,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2189"}],"type":{"type":"intrinsic","name":"boolean"}}]},{"id":1054,"name":"preventDefault","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":2185,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2185"}],"signatures":[{"id":1055,"name":"preventDefault","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"window.ts","line":2185,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2185"}],"type":{"type":"intrinsic","name":"void"}}]}],"groups":[{"title":"Constructors","children":[1047]},{"title":"Properties","children":[1053,1050,1052,1051]},{"title":"Methods","children":[1056,1054]}],"sources":[{"fileName":"window.ts","line":2170,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2170"}]},{"id":1082,"name":"LogicalPosition","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"A position represented in logical pixels."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":1083,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"window.ts","line":166,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L166"}],"signatures":[{"id":1084,"name":"new LogicalPosition","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"window.ts","line":166,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L166"}],"parameters":[{"id":1085,"name":"x","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}},{"id":1086,"name":"y","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":1082,"name":"LogicalPosition","package":"@tauri-apps/api"}}]},{"id":1087,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":162,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L162"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'Logical'"},{"id":1088,"name":"x","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":163,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L163"}],"type":{"type":"intrinsic","name":"number"}},{"id":1089,"name":"y","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":164,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L164"}],"type":{"type":"intrinsic","name":"number"}}],"groups":[{"title":"Constructors","children":[1083]},{"title":"Properties","children":[1087,1088,1089]}],"sources":[{"fileName":"window.ts","line":161,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L161"}]},{"id":1063,"name":"LogicalSize","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"A size represented in logical pixels."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":1064,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"window.ts","line":120,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L120"}],"signatures":[{"id":1065,"name":"new LogicalSize","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"window.ts","line":120,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L120"}],"parameters":[{"id":1066,"name":"width","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}},{"id":1067,"name":"height","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":1063,"name":"LogicalSize","package":"@tauri-apps/api"}}]},{"id":1070,"name":"height","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":118,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L118"}],"type":{"type":"intrinsic","name":"number"}},{"id":1068,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":116,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L116"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'Logical'"},{"id":1069,"name":"width","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":117,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L117"}],"type":{"type":"intrinsic","name":"number"}}],"groups":[{"title":"Constructors","children":[1064]},{"title":"Properties","children":[1070,1068,1069]}],"sources":[{"fileName":"window.ts","line":115,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L115"}]},{"id":1090,"name":"PhysicalPosition","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"A position represented in physical pixels."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":1091,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"window.ts","line":182,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L182"}],"signatures":[{"id":1092,"name":"new PhysicalPosition","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"window.ts","line":182,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L182"}],"parameters":[{"id":1093,"name":"x","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}},{"id":1094,"name":"y","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":1090,"name":"PhysicalPosition","package":"@tauri-apps/api"}}]},{"id":1095,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":178,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L178"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'Physical'"},{"id":1096,"name":"x","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":179,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L179"}],"type":{"type":"intrinsic","name":"number"}},{"id":1097,"name":"y","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":180,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L180"}],"type":{"type":"intrinsic","name":"number"}},{"id":1098,"name":"toLogical","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":197,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L197"}],"signatures":[{"id":1099,"name":"toLogical","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Converts the physical position to a logical one."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst factor = await appWindow.scaleFactor();\nconst position = await appWindow.innerPosition();\nconst logical = position.toLogical(factor);\n```"}]}]},"sources":[{"fileName":"window.ts","line":197,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L197"}],"parameters":[{"id":1100,"name":"scaleFactor","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":1082,"name":"LogicalPosition","package":"@tauri-apps/api"}}]}],"groups":[{"title":"Constructors","children":[1091]},{"title":"Properties","children":[1095,1096,1097]},{"title":"Methods","children":[1098]}],"sources":[{"fileName":"window.ts","line":177,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L177"}]},{"id":1071,"name":"PhysicalSize","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"A size represented in physical pixels."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":1072,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"window.ts","line":136,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L136"}],"signatures":[{"id":1073,"name":"new PhysicalSize","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"window.ts","line":136,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L136"}],"parameters":[{"id":1074,"name":"width","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}},{"id":1075,"name":"height","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":1071,"name":"PhysicalSize","package":"@tauri-apps/api"}}]},{"id":1078,"name":"height","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":134,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L134"}],"type":{"type":"intrinsic","name":"number"}},{"id":1076,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":132,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L132"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'Physical'"},{"id":1077,"name":"width","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":133,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L133"}],"type":{"type":"intrinsic","name":"number"}},{"id":1079,"name":"toLogical","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":151,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L151"}],"signatures":[{"id":1080,"name":"toLogical","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Converts the physical size to a logical one."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst factor = await appWindow.scaleFactor();\nconst size = await appWindow.innerSize();\nconst logical = size.toLogical(factor);\n```"}]}]},"sources":[{"fileName":"window.ts","line":151,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L151"}],"parameters":[{"id":1081,"name":"scaleFactor","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":1063,"name":"LogicalSize","package":"@tauri-apps/api"}}]}],"groups":[{"title":"Constructors","children":[1072]},{"title":"Properties","children":[1078,1076,1077]},{"title":"Methods","children":[1079]}],"sources":[{"fileName":"window.ts","line":131,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L131"}]},{"id":673,"name":"WebviewWindow","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"Create new webview windows and get a handle to existing ones.\n\nWindows are identified by a *label* a unique identifier that can be used to reference it later.\nIt may only contain alphanumeric characters "},{"kind":"code","text":"`a-zA-Z`"},{"kind":"text","text":" plus the following special characters "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\n// loading embedded asset:\nconst webview = new WebviewWindow('theUniqueLabel', {\n url: 'path/to/page.html'\n});\n// alternatively, load a remote URL:\nconst webview = new WebviewWindow('theUniqueLabel', {\n url: 'https://github.com/tauri-apps/tauri'\n});\n\nwebview.once('tauri://created', function () {\n // webview window successfully created\n});\nwebview.once('tauri://error', function (e) {\n // an error happened creating the webview window\n});\n\n// emit an event to the backend\nawait webview.emit(\"some event\", \"data\");\n// listen to an event from the backend\nconst unlisten = await webview.listen(\"event name\", e => {});\nunlisten();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"children":[{"id":679,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"window.ts","line":2247,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2247"}],"signatures":[{"id":680,"name":"new WebviewWindow","variant":"signature","kind":16384,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a new WebviewWindow."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { WebviewWindow } from '@tauri-apps/api/window';\nconst webview = new WebviewWindow('my-label', {\n url: 'https://github.com/tauri-apps/tauri'\n});\nwebview.once('tauri://created', function () {\n // webview window successfully created\n});\nwebview.once('tauri://error', function (e) {\n // an error happened creating the webview window\n});\n```"},{"kind":"text","text":"\n\n*"}]},{"tag":"@returns","content":[{"kind":"text","text":"The WebviewWindow instance to communicate with the webview."}]}]},"sources":[{"fileName":"window.ts","line":2247,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2247"}],"parameters":[{"id":681,"name":"label","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The unique webview window label. Must be alphanumeric: "},{"kind":"code","text":"`a-zA-Z-/:_`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":682,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1129,"name":"WindowOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":673,"name":"WebviewWindow","package":"@tauri-apps/api"},"overwrites":{"type":"reference","target":-1,"name":"WindowManager.constructor"}}],"overwrites":{"type":"reference","target":-1,"name":"WindowManager.constructor"}},{"id":829,"name":"label","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The window label. It is a unique identifier for the window, can be used to reference it later."}]},"sources":[{"fileName":"window.ts","line":318,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L318"}],"type":{"type":"intrinsic","name":"string"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.label"}},{"id":830,"name":"listeners","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Local event listeners."}]},"sources":[{"fileName":"window.ts","line":320,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L320"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"array","elementType":{"type":"reference","target":1167,"typeArguments":[{"type":"intrinsic","name":"any"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.listeners"}},{"id":717,"name":"center","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":926,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L926"}],"signatures":[{"id":718,"name":"center","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Centers the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.center();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":926,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L926"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.center"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.center"}},{"id":751,"name":"close","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1326,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1326"}],"signatures":[{"id":752,"name":"close","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Closes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.close();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1326,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1326"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.close"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.close"}},{"id":841,"name":"emit","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":430,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L430"}],"signatures":[{"id":842,"name":"emit","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Emits an event to the backend and all Tauri windows.\nThe event will have this window's "},{"kind":"inline-tag","tag":"@link","text":"label","target":829,"tsLinkText":"label"},{"kind":"text","text":" as "},{"kind":"inline-tag","tag":"@link","text":"source window label","target":1163,"tsLinkText":"source window label"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.emit('window-loaded', { loggedIn: true, token: 'authToken' });\n```"},{"kind":"text","text":"\n\nThis function can also be used to communicate between windows:\n"},{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.listen('sync-data', (event) => { });\n\n// on another window...\nimport { WebviewWindow } from '@tauri-apps/api/window';\nconst otherWindow = WebviewWindow.getByLabel('other')\nawait otherWindow.emit('sync-data');\n```"},{"kind":"text","text":"\n\nGlobal listeners are also triggered:\n"},{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nimport { listen } from '@tauri-apps/api/event';\nawait listen('ping', (event) => { });\n\nawait appWindow.emit('ping');\n```"}]}]},"sources":[{"fileName":"window.ts","line":430,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L430"}],"parameters":[{"id":843,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":844,"name":"payload","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Event payload."}]},"type":{"type":"intrinsic","name":"unknown"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.emit"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.emit"}},{"id":749,"name":"hide","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1301,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1301"}],"signatures":[{"id":750,"name":"hide","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window visibility to false."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.hide();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1301,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1301"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.hide"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.hide"}},{"id":685,"name":"innerPosition","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":500,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L500"}],"signatures":[{"id":686,"name":"innerPosition","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"The position of the top-left hand corner of the window's client area relative to the top-left hand corner of the desktop."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst position = await appWindow.innerPosition();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window's inner position."}]}]},"sources":[{"fileName":"window.ts","line":500,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L500"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1090,"name":"PhysicalPosition","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.innerPosition"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.innerPosition"}},{"id":689,"name":"innerSize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":551,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L551"}],"signatures":[{"id":690,"name":"innerSize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"The physical size of the window's client area.\nThe client area is the content of the window, excluding the title bar and borders."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst size = await appWindow.innerSize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window's inner size."}]}]},"sources":[{"fileName":"window.ts","line":551,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L551"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1071,"name":"PhysicalSize","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.innerSize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.innerSize"}},{"id":709,"name":"isClosable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":819,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L819"}],"signatures":[{"id":710,"name":"isClosable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window’s native close button state.\n\n#### Platform-specific\n\n- **Linux / iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst closable = await appWindow.isClosable();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window's native close button is enabled or not."}]}]},"sources":[{"fileName":"window.ts","line":819,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L819"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isClosable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isClosable"}},{"id":701,"name":"isDecorated","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":704,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L704"}],"signatures":[{"id":702,"name":"isDecorated","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current decorated state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst decorated = await appWindow.isDecorated();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is decorated or not."}]}]},"sources":[{"fileName":"window.ts","line":704,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L704"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isDecorated"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isDecorated"}},{"id":699,"name":"isFocused","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":679,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L679"}],"signatures":[{"id":700,"name":"isFocused","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current focus state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst focused = await appWindow.isFocused();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is focused or not."}]},{"tag":"@since","content":[{"kind":"text","text":"1.4"}]}]},"sources":[{"fileName":"window.ts","line":679,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L679"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isFocused"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isFocused"}},{"id":693,"name":"isFullscreen","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":602,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L602"}],"signatures":[{"id":694,"name":"isFullscreen","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current fullscreen state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst fullscreen = await appWindow.isFullscreen();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is in fullscreen mode or not."}]}]},"sources":[{"fileName":"window.ts","line":602,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L602"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isFullscreen"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isFullscreen"}},{"id":705,"name":"isMaximizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":759,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L759"}],"signatures":[{"id":706,"name":"isMaximizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window’s native maximize button state.\n\n#### Platform-specific\n\n- **Linux / iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst maximizable = await appWindow.isMaximizable();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window's native maximize button is enabled or not."}]}]},"sources":[{"fileName":"window.ts","line":759,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L759"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMaximizable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMaximizable"}},{"id":697,"name":"isMaximized","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":652,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L652"}],"signatures":[{"id":698,"name":"isMaximized","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current maximized state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst maximized = await appWindow.isMaximized();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is maximized or not."}]}]},"sources":[{"fileName":"window.ts","line":652,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L652"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMaximized"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMaximized"}},{"id":707,"name":"isMinimizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":789,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L789"}],"signatures":[{"id":708,"name":"isMinimizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window’s native minimize button state.\n\n#### Platform-specific\n\n- **Linux / iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst minimizable = await appWindow.isMinimizable();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window's native minimize button is enabled or not."}]}]},"sources":[{"fileName":"window.ts","line":789,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L789"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMinimizable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMinimizable"}},{"id":695,"name":"isMinimized","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":627,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L627"}],"signatures":[{"id":696,"name":"isMinimized","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current minimized state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst minimized = await appWindow.isMinimized();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.3.0"}]}]},"sources":[{"fileName":"window.ts","line":627,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L627"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMinimized"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMinimized"}},{"id":703,"name":"isResizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":729,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L729"}],"signatures":[{"id":704,"name":"isResizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current resizable state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst resizable = await appWindow.isResizable();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is resizable or not."}]}]},"sources":[{"fileName":"window.ts","line":729,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L729"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isResizable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isResizable"}},{"id":711,"name":"isVisible","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":844,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L844"}],"signatures":[{"id":712,"name":"isVisible","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current visible state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst visible = await appWindow.isVisible();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is visible or not."}]}]},"sources":[{"fileName":"window.ts","line":844,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L844"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isVisible"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isVisible"}},{"id":831,"name":"listen","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":351,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L351"}],"signatures":[{"id":832,"name":"listen","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to an event emitted by the backend or webview.\nThe event must either be a global event or an event targetting this window.\n\nSee "},{"kind":"inline-tag","tag":"@link","text":"`emit`","target":841,"tsLinkText":"`emit`"},{"kind":"text","text":" for more information."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst unlisten = await appWindow.listen('state-changed', (event) => {\n console.log(`Got error: ${payload}`);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"},{"kind":"text","text":"\n\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event."}]}]},"sources":[{"fileName":"window.ts","line":351,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L351"}],"typeParameter":[{"id":833,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":834,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"reference","target":73,"name":"EventName","package":"@tauri-apps/api"}},{"id":835,"name":"handler","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event handler."}]},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.listen"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.listen"}},{"id":737,"name":"maximize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1151,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1151"}],"signatures":[{"id":738,"name":"maximize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Maximizes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.maximize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1151,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1151"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.maximize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.maximize"}},{"id":743,"name":"minimize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1226,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1226"}],"signatures":[{"id":744,"name":"minimize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Minimizes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.minimize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1226,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1226"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.minimize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.minimize"}},{"id":808,"name":"onCloseRequested","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1978,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1978"}],"signatures":[{"id":809,"name":"onCloseRequested","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to window close requested. Emitted when the user requests to closes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nimport { confirm } from '@tauri-apps/api/dialog';\nconst unlisten = await appWindow.onCloseRequested(async (event) => {\n const confirmed = await confirm('Are you sure?');\n if (!confirmed) {\n // user did not confirm closing the window; let's prevent it\n event.preventDefault();\n }\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":1978,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1978"}],"parameters":[{"id":810,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":811,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"window.ts","line":1979,"character":13,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1979"}],"signatures":[{"id":812,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"window.ts","line":1979,"character":13,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1979"}],"parameters":[{"id":813,"name":"event","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1046,"name":"CloseRequestedEvent","package":"@tauri-apps/api"}}],"type":{"type":"union","types":[{"type":"intrinsic","name":"void"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}]}}]}}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onCloseRequested"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onCloseRequested"}},{"id":823,"name":"onFileDropEvent","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":2112,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2112"}],"signatures":[{"id":824,"name":"onFileDropEvent","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to a file drop event.\nThe listener is triggered when the user hovers the selected files on the window,\ndrops the files or cancels the operation."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nconst unlisten = await appWindow.onFileDropEvent((event) => {\n if (event.payload.type === 'hover') {\n console.log('User hovering', event.payload.paths);\n } else if (event.payload.type === 'drop') {\n console.log('User dropped', event.payload.paths);\n } else {\n console.log('File drop cancelled');\n }\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":2112,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2112"}],"parameters":[{"id":825,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"reference","target":1120,"name":"FileDropEvent","package":"@tauri-apps/api"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onFileDropEvent"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onFileDropEvent"}},{"id":814,"name":"onFocusChanged","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":2011,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2011"}],"signatures":[{"id":815,"name":"onFocusChanged","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to window focus change."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nconst unlisten = await appWindow.onFocusChanged(({ payload: focused }) => {\n console.log('Focus changed, window is focused? ' + focused);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":2011,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2011"}],"parameters":[{"id":816,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onFocusChanged"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onFocusChanged"}},{"id":820,"name":"onMenuClicked","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":2081,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2081"}],"signatures":[{"id":821,"name":"onMenuClicked","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to the window menu item click. The payload is the item id."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nconst unlisten = await appWindow.onMenuClicked(({ payload: menuId }) => {\n console.log('Menu clicked: ' + menuId);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":2081,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2081"}],"parameters":[{"id":822,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onMenuClicked"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onMenuClicked"}},{"id":805,"name":"onMoved","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1946,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1946"}],"signatures":[{"id":806,"name":"onMoved","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to window move."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nconst unlisten = await appWindow.onMoved(({ payload: position }) => {\n console.log('Window moved', position);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":1946,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1946"}],"parameters":[{"id":807,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"reference","target":1090,"name":"PhysicalPosition","package":"@tauri-apps/api"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onMoved"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onMoved"}},{"id":802,"name":"onResized","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1920,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1920"}],"signatures":[{"id":803,"name":"onResized","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to window resize."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nconst unlisten = await appWindow.onResized(({ payload: size }) => {\n console.log('Window resized', size);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":1920,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1920"}],"parameters":[{"id":804,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"reference","target":1071,"name":"PhysicalSize","package":"@tauri-apps/api"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onResized"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onResized"}},{"id":817,"name":"onScaleChanged","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":2053,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2053"}],"signatures":[{"id":818,"name":"onScaleChanged","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to window scale change. Emitted when the window's scale factor has changed.\nThe following user actions can cause DPI changes:\n- Changing the display's resolution.\n- Changing the display's scale factor (e.g. in Control Panel on Windows).\n- Moving the window to a display with a different scale factor."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nconst unlisten = await appWindow.onScaleChanged(({ payload }) => {\n console.log('Scale changed', payload.scaleFactor, payload.size);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":2053,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2053"}],"parameters":[{"id":819,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"reference","target":1117,"name":"ScaleFactorChanged","package":"@tauri-apps/api"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onScaleChanged"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onScaleChanged"}},{"id":826,"name":"onThemeChanged","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":2162,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2162"}],"signatures":[{"id":827,"name":"onThemeChanged","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to the system theme change."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nconst unlisten = await appWindow.onThemeChanged(({ payload: theme }) => {\n console.log('New theme: ' + theme);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":2162,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2162"}],"parameters":[{"id":828,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"reference","target":1110,"name":"Theme","package":"@tauri-apps/api"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onThemeChanged"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onThemeChanged"}},{"id":836,"name":"once","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":386,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L386"}],"signatures":[{"id":837,"name":"once","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to an one-off event.\nSee "},{"kind":"inline-tag","tag":"@link","text":"`listen`","target":831,"tsLinkText":"`listen`"},{"kind":"text","text":" for more information."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst unlisten = await appWindow.once('initialized', (event) => {\n console.log(`Window initialized!`);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"},{"kind":"text","text":"\n\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event."}]}]},"sources":[{"fileName":"window.ts","line":386,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L386"}],"typeParameter":[{"id":838,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":839,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":840,"name":"handler","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event handler."}]},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.once"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.once"}},{"id":687,"name":"outerPosition","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":525,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L525"}],"signatures":[{"id":688,"name":"outerPosition","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"The position of the top-left hand corner of the window relative to the top-left hand corner of the desktop."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst position = await appWindow.outerPosition();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window's outer position."}]}]},"sources":[{"fileName":"window.ts","line":525,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L525"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1090,"name":"PhysicalPosition","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.outerPosition"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.outerPosition"}},{"id":691,"name":"outerSize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":577,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L577"}],"signatures":[{"id":692,"name":"outerSize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"The physical size of the entire window.\nThese dimensions include the title bar and borders. If you don't want that (and you usually don't), use inner_size instead."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst size = await appWindow.outerSize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window's outer size."}]}]},"sources":[{"fileName":"window.ts","line":577,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L577"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1071,"name":"PhysicalSize","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.outerSize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.outerSize"}},{"id":719,"name":"requestUserAttention","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":962,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L962"}],"signatures":[{"id":720,"name":"requestUserAttention","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Requests user attention to the window, this has no effect if the application\nis already focused. How requesting for user attention manifests is platform dependent,\nsee "},{"kind":"code","text":"`UserAttentionType`"},{"kind":"text","text":" for details.\n\nProviding "},{"kind":"code","text":"`null`"},{"kind":"text","text":" will unset the request for user attention. Unsetting the request for\nuser attention might not be done automatically by the WM when the window receives input.\n\n#### Platform-specific\n\n- **macOS:** "},{"kind":"code","text":"`null`"},{"kind":"text","text":" has no effect.\n- **Linux:** Urgency levels have the same effect."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.requestUserAttention();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":962,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L962"}],"parameters":[{"id":721,"name":"requestType","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"reference","target":1101,"name":"UserAttentionType","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.requestUserAttention"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.requestUserAttention"}},{"id":683,"name":"scaleFactor","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":475,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L475"}],"signatures":[{"id":684,"name":"scaleFactor","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"The scale factor that can be used to map physical pixels to logical pixels."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst factor = await appWindow.scaleFactor();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window's monitor scale factor."}]}]},"sources":[{"fileName":"window.ts","line":475,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L475"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"number"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.scaleFactor"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.scaleFactor"}},{"id":756,"name":"setAlwaysOnTop","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1379,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1379"}],"signatures":[{"id":757,"name":"setAlwaysOnTop","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window should always be on top of other windows."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setAlwaysOnTop(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1379,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1379"}],"parameters":[{"id":758,"name":"alwaysOnTop","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window should always be on top of other windows or not."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setAlwaysOnTop"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setAlwaysOnTop"}},{"id":731,"name":"setClosable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1098,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1098"}],"signatures":[{"id":732,"name":"setClosable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets whether the window's native close button is enabled or not.\n\n#### Platform-specific\n\n- **Linux:** GTK+ will do its best to convince the window manager not to show a close button. Depending on the system, this function may not have any effect when called on a window that is already visible\n- **iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setClosable(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1098,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1098"}],"parameters":[{"id":733,"name":"closable","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setClosable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setClosable"}},{"id":759,"name":"setContentProtected","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1407,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1407"}],"signatures":[{"id":760,"name":"setContentProtected","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Prevents the window contents from being captured by other apps."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setContentProtected(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"window.ts","line":1407,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1407"}],"parameters":[{"id":761,"name":"protected_","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setContentProtected"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setContentProtected"}},{"id":785,"name":"setCursorGrab","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1727,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1727"}],"signatures":[{"id":786,"name":"setCursorGrab","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Grabs the cursor, preventing it from leaving the window.\n\nThere's no guarantee that the cursor will be hidden. You should\nhide it by yourself if you want so.\n\n#### Platform-specific\n\n- **Linux:** Unsupported.\n- **macOS:** This locks the cursor in a fixed location, which looks visually awkward."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setCursorGrab(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1727,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1727"}],"parameters":[{"id":787,"name":"grab","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"code","text":"`true`"},{"kind":"text","text":" to grab the cursor icon, "},{"kind":"code","text":"`false`"},{"kind":"text","text":" to release it."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorGrab"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorGrab"}},{"id":791,"name":"setCursorIcon","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1787,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1787"}],"signatures":[{"id":792,"name":"setCursorIcon","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Modifies the cursor icon of the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setCursorIcon('help');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1787,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1787"}],"parameters":[{"id":793,"name":"icon","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new cursor icon."}]},"type":{"type":"reference","target":671,"name":"CursorIcon","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorIcon"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorIcon"}},{"id":794,"name":"setCursorPosition","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1814,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1814"}],"signatures":[{"id":795,"name":"setCursorPosition","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Changes the position of the cursor in window coordinates."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow, LogicalPosition } from '@tauri-apps/api/window';\nawait appWindow.setCursorPosition(new LogicalPosition(600, 300));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1814,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1814"}],"parameters":[{"id":796,"name":"position","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new cursor position."}]},"type":{"type":"union","types":[{"type":"reference","target":1090,"name":"PhysicalPosition","package":"@tauri-apps/api"},{"type":"reference","target":1082,"name":"LogicalPosition","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorPosition"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorPosition"}},{"id":788,"name":"setCursorVisible","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1760,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1760"}],"signatures":[{"id":789,"name":"setCursorVisible","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Modifies the cursor's visibility.\n\n#### Platform-specific\n\n- **Windows:** The cursor is only hidden within the confines of the window.\n- **macOS:** The cursor is hidden as long as the window has input focus, even if the cursor is\n outside of the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setCursorVisible(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1760,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1760"}],"parameters":[{"id":790,"name":"visible","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"If "},{"kind":"code","text":"`false`"},{"kind":"text","text":", this will hide the cursor. If "},{"kind":"code","text":"`true`"},{"kind":"text","text":", this will show the cursor."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorVisible"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorVisible"}},{"id":753,"name":"setDecorations","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1352,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1352"}],"signatures":[{"id":754,"name":"setDecorations","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window should have borders and bars."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setDecorations(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1352,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1352"}],"parameters":[{"id":755,"name":"decorations","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window should have borders and bars."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setDecorations"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setDecorations"}},{"id":777,"name":"setFocus","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1625,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1625"}],"signatures":[{"id":778,"name":"setFocus","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Bring the window to front and focus."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setFocus();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1625,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1625"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setFocus"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setFocus"}},{"id":774,"name":"setFullscreen","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1599,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1599"}],"signatures":[{"id":775,"name":"setFullscreen","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window fullscreen state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setFullscreen(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1599,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1599"}],"parameters":[{"id":776,"name":"fullscreen","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window should go to fullscreen or not."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setFullscreen"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setFullscreen"}},{"id":779,"name":"setIcon","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1658,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1658"}],"signatures":[{"id":780,"name":"setIcon","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window icon."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setIcon('/tauri/awesome.png');\n```"},{"kind":"text","text":"\n\nNote that you need the "},{"kind":"code","text":"`icon-ico`"},{"kind":"text","text":" or "},{"kind":"code","text":"`icon-png`"},{"kind":"text","text":" Cargo features to use this API.\nTo enable it, change your Cargo.toml file:\n"},{"kind":"code","text":"```toml\n[dependencies]\ntauri = { version = \"...\", features = [\"...\", \"icon-png\"] }\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1658,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1658"}],"parameters":[{"id":781,"name":"icon","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Icon bytes or path to the icon file."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Uint8Array"},"name":"Uint8Array","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setIcon"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setIcon"}},{"id":797,"name":"setIgnoreCursorEvents","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1858,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1858"}],"signatures":[{"id":798,"name":"setIgnoreCursorEvents","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Changes the cursor events behavior."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setIgnoreCursorEvents(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1858,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1858"}],"parameters":[{"id":799,"name":"ignore","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"code","text":"`true`"},{"kind":"text","text":" to ignore the cursor events; "},{"kind":"code","text":"`false`"},{"kind":"text","text":" to process them as usual."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setIgnoreCursorEvents"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setIgnoreCursorEvents"}},{"id":768,"name":"setMaxSize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1514,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1514"}],"signatures":[{"id":769,"name":"setMaxSize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window maximum inner size. If the "},{"kind":"code","text":"`size`"},{"kind":"text","text":" argument is undefined, the constraint is unset."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow, LogicalSize } from '@tauri-apps/api/window';\nawait appWindow.setMaxSize(new LogicalSize(600, 500));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1514,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1514"}],"parameters":[{"id":770,"name":"size","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The logical or physical inner size, or "},{"kind":"code","text":"`null`"},{"kind":"text","text":" to unset the constraint."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"undefined"},{"type":"literal","value":null},{"type":"reference","target":1071,"name":"PhysicalSize","package":"@tauri-apps/api"},{"type":"reference","target":1063,"name":"LogicalSize","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMaxSize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMaxSize"}},{"id":725,"name":"setMaximizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1033,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1033"}],"signatures":[{"id":726,"name":"setMaximizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets whether the window's native maximize button is enabled or not.\nIf resizable is set to false, this setting is ignored.\n\n#### Platform-specific\n\n- **macOS:** Disables the \"zoom\" button in the window titlebar, which is also used to enter fullscreen mode.\n- **Linux / iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setMaximizable(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1033,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1033"}],"parameters":[{"id":727,"name":"maximizable","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMaximizable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMaximizable"}},{"id":765,"name":"setMinSize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1472,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1472"}],"signatures":[{"id":766,"name":"setMinSize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window minimum inner size. If the "},{"kind":"code","text":"`size`"},{"kind":"text","text":" argument is not provided, the constraint is unset."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow, PhysicalSize } from '@tauri-apps/api/window';\nawait appWindow.setMinSize(new PhysicalSize(600, 500));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1472,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1472"}],"parameters":[{"id":767,"name":"size","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The logical or physical inner size, or "},{"kind":"code","text":"`null`"},{"kind":"text","text":" to unset the constraint."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"undefined"},{"type":"literal","value":null},{"type":"reference","target":1071,"name":"PhysicalSize","package":"@tauri-apps/api"},{"type":"reference","target":1063,"name":"LogicalSize","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMinSize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMinSize"}},{"id":728,"name":"setMinimizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1065,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1065"}],"signatures":[{"id":729,"name":"setMinimizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets whether the window's native minimize button is enabled or not.\n\n#### Platform-specific\n\n- **Linux / iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setMinimizable(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1065,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1065"}],"parameters":[{"id":730,"name":"minimizable","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMinimizable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMinimizable"}},{"id":771,"name":"setPosition","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1556,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1556"}],"signatures":[{"id":772,"name":"setPosition","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window outer position."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow, LogicalPosition } from '@tauri-apps/api/window';\nawait appWindow.setPosition(new LogicalPosition(600, 500));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1556,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1556"}],"parameters":[{"id":773,"name":"position","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new position, in logical or physical pixels."}]},"type":{"type":"union","types":[{"type":"reference","target":1090,"name":"PhysicalPosition","package":"@tauri-apps/api"},{"type":"reference","target":1082,"name":"LogicalPosition","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setPosition"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setPosition"}},{"id":722,"name":"setResizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":999,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L999"}],"signatures":[{"id":723,"name":"setResizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Updates the window resizable flag."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setResizable(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":999,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L999"}],"parameters":[{"id":724,"name":"resizable","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setResizable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setResizable"}},{"id":762,"name":"setSize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1434,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1434"}],"signatures":[{"id":763,"name":"setSize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Resizes the window with a new inner size."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow, LogicalSize } from '@tauri-apps/api/window';\nawait appWindow.setSize(new LogicalSize(600, 500));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1434,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1434"}],"parameters":[{"id":764,"name":"size","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The logical or physical inner size."}]},"type":{"type":"union","types":[{"type":"reference","target":1071,"name":"PhysicalSize","package":"@tauri-apps/api"},{"type":"reference","target":1063,"name":"LogicalSize","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setSize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setSize"}},{"id":782,"name":"setSkipTaskbar","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1692,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1692"}],"signatures":[{"id":783,"name":"setSkipTaskbar","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window icon should be hidden from the taskbar or not.\n\n#### Platform-specific\n\n- **macOS:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setSkipTaskbar(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1692,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1692"}],"parameters":[{"id":784,"name":"skip","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"true to hide window icon, false to show it."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setSkipTaskbar"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setSkipTaskbar"}},{"id":734,"name":"setTitle","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1125,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1125"}],"signatures":[{"id":735,"name":"setTitle","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window title."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setTitle('Tauri');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1125,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1125"}],"parameters":[{"id":736,"name":"title","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new title"}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setTitle"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setTitle"}},{"id":747,"name":"show","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1276,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1276"}],"signatures":[{"id":748,"name":"show","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window visibility to true."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.show();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1276,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1276"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.show"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.show"}},{"id":800,"name":"startDragging","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1884,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1884"}],"signatures":[{"id":801,"name":"startDragging","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Starts dragging the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.startDragging();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1884,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1884"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.startDragging"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.startDragging"}},{"id":715,"name":"theme","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":899,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L899"}],"signatures":[{"id":716,"name":"theme","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current theme.\n\n#### Platform-specific\n\n- **macOS:** Theme was introduced on macOS 10.14. Returns "},{"kind":"code","text":"`light`"},{"kind":"text","text":" on macOS 10.13 and below."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst theme = await appWindow.theme();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window theme."}]}]},"sources":[{"fileName":"window.ts","line":899,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L899"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"literal","value":null},{"type":"reference","target":1110,"name":"Theme","package":"@tauri-apps/api"}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.theme"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.theme"}},{"id":713,"name":"title","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":869,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L869"}],"signatures":[{"id":714,"name":"title","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current title."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst title = await appWindow.title();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.3.0"}]}]},"sources":[{"fileName":"window.ts","line":869,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L869"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.title"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.title"}},{"id":741,"name":"toggleMaximize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1201,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1201"}],"signatures":[{"id":742,"name":"toggleMaximize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Toggles the window maximized state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.toggleMaximize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1201,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1201"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.toggleMaximize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.toggleMaximize"}},{"id":739,"name":"unmaximize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1176,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1176"}],"signatures":[{"id":740,"name":"unmaximize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Unmaximizes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.unmaximize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1176,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1176"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.unmaximize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.unmaximize"}},{"id":745,"name":"unminimize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1251,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1251"}],"signatures":[{"id":746,"name":"unminimize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Unminimizes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.unminimize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1251,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1251"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.unminimize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.unminimize"}},{"id":674,"name":"getByLabel","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"window.ts","line":2279,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2279"}],"signatures":[{"id":675,"name":"getByLabel","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the WebviewWindow for the webview associated with the given label."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { WebviewWindow } from '@tauri-apps/api/window';\nconst mainWindow = WebviewWindow.getByLabel('main');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The WebviewWindow instance to communicate with the webview or null if the webview doesn't exist."}]}]},"sources":[{"fileName":"window.ts","line":2279,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2279"}],"parameters":[{"id":676,"name":"label","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The webview window label."}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"reference","target":673,"name":"WebviewWindow","package":"@tauri-apps/api"}]}}]},{"id":677,"name":"getFocusedWindow","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"window.ts","line":2299,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2299"}],"signatures":[{"id":678,"name":"getFocusedWindow","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the focused window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { WebviewWindow } from '@tauri-apps/api/window';\nconst focusedWindow = WebviewWindow.getFocusedWindow();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The WebviewWindow instance to communicate with the webview or "},{"kind":"code","text":"`undefined`"},{"kind":"text","text":" if there is not any focused window."}]},{"tag":"@since","content":[{"kind":"text","text":"1.4"}]}]},"sources":[{"fileName":"window.ts","line":2299,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2299"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"literal","value":null},{"type":"reference","target":673,"name":"WebviewWindow","package":"@tauri-apps/api"}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Constructors","children":[679]},{"title":"Properties","children":[829,830]},{"title":"Methods","children":[717,751,841,749,685,689,709,701,699,693,705,697,707,695,703,711,831,737,743,808,823,814,820,805,802,817,826,836,687,691,719,683,756,731,759,785,791,794,788,753,777,774,779,797,768,725,765,728,771,722,762,782,734,747,800,715,713,741,739,745,674,677]}],"sources":[{"fileName":"window.ts","line":2227,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2227"}],"extendedTypes":[{"type":"reference","target":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager"},"name":"WindowManager","package":"@tauri-apps/api"}]},{"id":1112,"name":"Monitor","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Allows you to retrieve information about a given monitor."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":1113,"name":"name","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Human-readable name of the monitor"}]},"sources":[{"fileName":"window.ts","line":83,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L83"}],"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"intrinsic","name":"string"}]}},{"id":1115,"name":"position","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"the Top-left corner position of the monitor relative to the larger full screen area."}]},"sources":[{"fileName":"window.ts","line":87,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L87"}],"type":{"type":"reference","target":1090,"name":"PhysicalPosition","package":"@tauri-apps/api"}},{"id":1116,"name":"scaleFactor","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The scale factor that can be used to map physical pixels to logical pixels."}]},"sources":[{"fileName":"window.ts","line":89,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L89"}],"type":{"type":"intrinsic","name":"number"}},{"id":1114,"name":"size","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The monitor's resolution."}]},"sources":[{"fileName":"window.ts","line":85,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L85"}],"type":{"type":"reference","target":1071,"name":"PhysicalSize","package":"@tauri-apps/api"}}],"groups":[{"title":"Properties","children":[1113,1115,1116,1114]}],"sources":[{"fileName":"window.ts","line":81,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L81"}]},{"id":1117,"name":"ScaleFactorChanged","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"The payload for the "},{"kind":"code","text":"`scaleChange`"},{"kind":"text","text":" event."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"children":[{"id":1118,"name":"scaleFactor","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new window scale factor."}]},"sources":[{"fileName":"window.ts","line":99,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L99"}],"type":{"type":"intrinsic","name":"number"}},{"id":1119,"name":"size","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new window size"}]},"sources":[{"fileName":"window.ts","line":101,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L101"}],"type":{"type":"reference","target":1071,"name":"PhysicalSize","package":"@tauri-apps/api"}}],"groups":[{"title":"Properties","children":[1118,1119]}],"sources":[{"fileName":"window.ts","line":97,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L97"}]},{"id":1129,"name":"WindowOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Configuration for the window to create."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":1155,"name":"acceptFirstMouse","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether clicking an inactive window also clicks through to the webview on macOS."}]},"sources":[{"fileName":"window.ts","line":2410,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2410"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1148,"name":"alwaysOnTop","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window should always be on top of other windows or not."}]},"sources":[{"fileName":"window.ts","line":2382,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2382"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1131,"name":"center","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Show window in the center of the screen.."}]},"sources":[{"fileName":"window.ts","line":2344,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2344"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1160,"name":"closable","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window's native close button is enabled or not. Defaults to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"window.ts","line":2433,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2433"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1149,"name":"contentProtected","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Prevents the window contents from being captured by other apps."}]},"sources":[{"fileName":"window.ts","line":2384,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2384"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1147,"name":"decorations","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window should have borders and bars or not."}]},"sources":[{"fileName":"window.ts","line":2380,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2380"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1151,"name":"fileDropEnabled","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the file drop is enabled or not on the webview. By default it is enabled.\n\nDisabling it is required to use drag and drop on the frontend on Windows."}]},"sources":[{"fileName":"window.ts","line":2392,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2392"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1143,"name":"focus","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window will be initially focused or not."}]},"sources":[{"fileName":"window.ts","line":2368,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2368"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1142,"name":"fullscreen","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window is in fullscreen mode or not."}]},"sources":[{"fileName":"window.ts","line":2366,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2366"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1135,"name":"height","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The initial height."}]},"sources":[{"fileName":"window.ts","line":2352,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2352"}],"type":{"type":"intrinsic","name":"number"}},{"id":1154,"name":"hiddenTitle","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"If "},{"kind":"code","text":"`true`"},{"kind":"text","text":", sets the window title to be hidden on macOS."}]},"sources":[{"fileName":"window.ts","line":2406,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2406"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1139,"name":"maxHeight","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The maximum height. Only applies if "},{"kind":"code","text":"`maxWidth`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2360,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2360"}],"type":{"type":"intrinsic","name":"number"}},{"id":1138,"name":"maxWidth","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The maximum width. Only applies if "},{"kind":"code","text":"`maxHeight`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2358,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2358"}],"type":{"type":"intrinsic","name":"number"}},{"id":1158,"name":"maximizable","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window's native maximize button is enabled or not. Defaults to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"window.ts","line":2425,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2425"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1145,"name":"maximized","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window should be maximized upon creation or not."}]},"sources":[{"fileName":"window.ts","line":2376,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2376"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1137,"name":"minHeight","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The minimum height. Only applies if "},{"kind":"code","text":"`minWidth`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2356,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2356"}],"type":{"type":"intrinsic","name":"number"}},{"id":1136,"name":"minWidth","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The minimum width. Only applies if "},{"kind":"code","text":"`minHeight`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2354,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2354"}],"type":{"type":"intrinsic","name":"number"}},{"id":1159,"name":"minimizable","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window's native minimize button is enabled or not. Defaults to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"window.ts","line":2429,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2429"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1140,"name":"resizable","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window is resizable or not."}]},"sources":[{"fileName":"window.ts","line":2362,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2362"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1150,"name":"skipTaskbar","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether or not the window icon should be added to the taskbar."}]},"sources":[{"fileName":"window.ts","line":2386,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2386"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1156,"name":"tabbingIdentifier","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Defines the window [tabbing identifier](https://developer.apple.com/documentation/appkit/nswindow/1644704-tabbingidentifier) on macOS.\n\nWindows with the same tabbing identifier will be grouped together.\nIf the tabbing identifier is not set, automatic tabbing will be disabled."}]},"sources":[{"fileName":"window.ts","line":2417,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2417"}],"type":{"type":"intrinsic","name":"string"}},{"id":1152,"name":"theme","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The initial window theme. Defaults to the system theme.\n\nOnly implemented on Windows and macOS 10.14+."}]},"sources":[{"fileName":"window.ts","line":2398,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2398"}],"type":{"type":"reference","target":1110,"name":"Theme","package":"@tauri-apps/api"}},{"id":1141,"name":"title","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Window title."}]},"sources":[{"fileName":"window.ts","line":2364,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2364"}],"type":{"type":"intrinsic","name":"string"}},{"id":1153,"name":"titleBarStyle","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The style of the macOS title bar."}]},"sources":[{"fileName":"window.ts","line":2402,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2402"}],"type":{"type":"reference","target":1111,"name":"TitleBarStyle","package":"@tauri-apps/api"}},{"id":1144,"name":"transparent","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window is transparent or not.\nNote that on "},{"kind":"code","text":"`macOS`"},{"kind":"text","text":" this requires the "},{"kind":"code","text":"`macos-private-api`"},{"kind":"text","text":" feature flag, enabled under "},{"kind":"code","text":"`tauri.conf.json > tauri > macOSPrivateApi`"},{"kind":"text","text":".\nWARNING: Using private APIs on "},{"kind":"code","text":"`macOS`"},{"kind":"text","text":" prevents your application from being accepted to the "},{"kind":"code","text":"`App Store`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"window.ts","line":2374,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2374"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1130,"name":"url","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Remote URL or local file path to open.\n\n- URL such as "},{"kind":"code","text":"`https://github.com/tauri-apps`"},{"kind":"text","text":" is opened directly on a Tauri window.\n- data: URL such as "},{"kind":"code","text":"`data:text/html,...`"},{"kind":"text","text":" is only supported with the "},{"kind":"code","text":"`window-data-url`"},{"kind":"text","text":" Cargo feature for the "},{"kind":"code","text":"`tauri`"},{"kind":"text","text":" dependency.\n- local file path or route such as "},{"kind":"code","text":"`/path/to/page.html`"},{"kind":"text","text":" or "},{"kind":"code","text":"`/users`"},{"kind":"text","text":" is appended to the application URL (the devServer URL on development, or "},{"kind":"code","text":"`tauri://localhost/`"},{"kind":"text","text":" and "},{"kind":"code","text":"`https://tauri.localhost/`"},{"kind":"text","text":" on production)."}]},"sources":[{"fileName":"window.ts","line":2342,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2342"}],"type":{"type":"intrinsic","name":"string"}},{"id":1157,"name":"userAgent","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The user agent for the webview."}]},"sources":[{"fileName":"window.ts","line":2421,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2421"}],"type":{"type":"intrinsic","name":"string"}},{"id":1146,"name":"visible","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window should be immediately visible upon creation or not."}]},"sources":[{"fileName":"window.ts","line":2378,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2378"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1134,"name":"width","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The initial width."}]},"sources":[{"fileName":"window.ts","line":2350,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2350"}],"type":{"type":"intrinsic","name":"number"}},{"id":1132,"name":"x","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The initial vertical position. Only applies if "},{"kind":"code","text":"`y`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2346,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2346"}],"type":{"type":"intrinsic","name":"number"}},{"id":1133,"name":"y","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The initial horizontal position. Only applies if "},{"kind":"code","text":"`x`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2348,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2348"}],"type":{"type":"intrinsic","name":"number"}}],"groups":[{"title":"Properties","children":[1155,1148,1131,1160,1149,1147,1151,1143,1142,1135,1154,1139,1138,1158,1145,1137,1136,1159,1140,1150,1156,1152,1141,1153,1144,1130,1157,1146,1134,1132,1133]}],"sources":[{"fileName":"window.ts","line":2334,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2334"}]},{"id":671,"name":"CursorIcon","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"window.ts","line":237,"character":12,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L237"}],"type":{"type":"union","types":[{"type":"literal","value":"default"},{"type":"literal","value":"crosshair"},{"type":"literal","value":"hand"},{"type":"literal","value":"arrow"},{"type":"literal","value":"move"},{"type":"literal","value":"text"},{"type":"literal","value":"wait"},{"type":"literal","value":"help"},{"type":"literal","value":"progress"},{"type":"literal","value":"notAllowed"},{"type":"literal","value":"contextMenu"},{"type":"literal","value":"cell"},{"type":"literal","value":"verticalText"},{"type":"literal","value":"alias"},{"type":"literal","value":"copy"},{"type":"literal","value":"noDrop"},{"type":"literal","value":"grab"},{"type":"literal","value":"grabbing"},{"type":"literal","value":"allScroll"},{"type":"literal","value":"zoomIn"},{"type":"literal","value":"zoomOut"},{"type":"literal","value":"eResize"},{"type":"literal","value":"nResize"},{"type":"literal","value":"neResize"},{"type":"literal","value":"nwResize"},{"type":"literal","value":"sResize"},{"type":"literal","value":"seResize"},{"type":"literal","value":"swResize"},{"type":"literal","value":"wResize"},{"type":"literal","value":"ewResize"},{"type":"literal","value":"nsResize"},{"type":"literal","value":"neswResize"},{"type":"literal","value":"nwseResize"},{"type":"literal","value":"colResize"},{"type":"literal","value":"rowResize"}]}},{"id":1120,"name":"FileDropEvent","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[{"kind":"text","text":"The file drop event types."}]},"sources":[{"fileName":"window.ts","line":105,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L105"}],"type":{"type":"union","types":[{"type":"reflection","declaration":{"id":1121,"name":"__type","variant":"declaration","kind":65536,"flags":{},"children":[{"id":1123,"name":"paths","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":106,"character":21,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L106"}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}},{"id":1122,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":106,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L106"}],"type":{"type":"literal","value":"hover"}}],"groups":[{"title":"Properties","children":[1123,1122]}],"sources":[{"fileName":"window.ts","line":106,"character":4,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L106"}]}},{"type":"reflection","declaration":{"id":1124,"name":"__type","variant":"declaration","kind":65536,"flags":{},"children":[{"id":1126,"name":"paths","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":107,"character":20,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L107"}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}},{"id":1125,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":107,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L107"}],"type":{"type":"literal","value":"drop"}}],"groups":[{"title":"Properties","children":[1126,1125]}],"sources":[{"fileName":"window.ts","line":107,"character":4,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L107"}]}},{"type":"reflection","declaration":{"id":1127,"name":"__type","variant":"declaration","kind":65536,"flags":{},"children":[{"id":1128,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":108,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L108"}],"type":{"type":"literal","value":"cancel"}}],"groups":[{"title":"Properties","children":[1128]}],"sources":[{"fileName":"window.ts","line":108,"character":4,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L108"}]}}]}},{"id":1110,"name":"Theme","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"window.ts","line":73,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L73"}],"type":{"type":"union","types":[{"type":"literal","value":"light"},{"type":"literal","value":"dark"}]}},{"id":1111,"name":"TitleBarStyle","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"window.ts","line":74,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L74"}],"type":{"type":"union","types":[{"type":"literal","value":"visible"},{"type":"literal","value":"transparent"},{"type":"literal","value":"overlay"}]}},{"id":1062,"name":"appWindow","variant":"declaration","kind":32,"flags":{},"comment":{"summary":[{"kind":"text","text":"The WebviewWindow for the current window."}]},"sources":[{"fileName":"window.ts","line":2310,"character":4,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2310"}],"type":{"type":"reference","target":673,"name":"WebviewWindow","package":"@tauri-apps/api"}},{"id":1108,"name":"availableMonitors","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"window.ts","line":2515,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2515"}],"signatures":[{"id":1109,"name":"availableMonitors","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the list of all the monitors available on the system."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { availableMonitors } from '@tauri-apps/api/window';\nconst monitors = availableMonitors();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"window.ts","line":2515,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2515"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"array","elementType":{"type":"reference","target":1112,"name":"Monitor","package":"@tauri-apps/api"}}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":1104,"name":"currentMonitor","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"window.ts","line":2466,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2466"}],"signatures":[{"id":1105,"name":"currentMonitor","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the monitor on which the window currently resides.\nReturns "},{"kind":"code","text":"`null`"},{"kind":"text","text":" if current monitor can't be detected."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { currentMonitor } from '@tauri-apps/api/window';\nconst monitor = currentMonitor();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"window.ts","line":2466,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2466"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"reference","target":1112,"name":"Monitor","package":"@tauri-apps/api"},{"type":"literal","value":null}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":1060,"name":"getAll","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"window.ts","line":295,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L295"}],"signatures":[{"id":1061,"name":"getAll","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets a list of instances of "},{"kind":"code","text":"`WebviewWindow`"},{"kind":"text","text":" for all available webview windows."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"window.ts","line":295,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L295"}],"type":{"type":"array","elementType":{"type":"reference","target":673,"name":"WebviewWindow","package":"@tauri-apps/api"}}}]},{"id":1058,"name":"getCurrent","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"window.ts","line":283,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L283"}],"signatures":[{"id":1059,"name":"getCurrent","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Get an instance of "},{"kind":"code","text":"`WebviewWindow`"},{"kind":"text","text":" for the current webview window."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"window.ts","line":283,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L283"}],"type":{"type":"reference","target":673,"name":"WebviewWindow","package":"@tauri-apps/api"}}]},{"id":1106,"name":"primaryMonitor","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"window.ts","line":2491,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2491"}],"signatures":[{"id":1107,"name":"primaryMonitor","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the primary monitor of the system.\nReturns "},{"kind":"code","text":"`null`"},{"kind":"text","text":" if it can't identify any monitor as a primary one."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { primaryMonitor } from '@tauri-apps/api/window';\nconst monitor = primaryMonitor();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"window.ts","line":2491,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2491"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"reference","target":1112,"name":"Monitor","package":"@tauri-apps/api"},{"type":"literal","value":null}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Enumerations","children":[1101]},{"title":"Classes","children":[1046,1082,1063,1090,1071,673]},{"title":"Interfaces","children":[1112,1117,1129]},{"title":"Type Aliases","children":[671,1120,1110,1111]},{"title":"Variables","children":[1062]},{"title":"Functions","children":[1108,1104,1060,1058,1106]}],"sources":[{"fileName":"window.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1"}]}],"groups":[{"title":"Modules","children":[1,12,24,30,72,107,206,227,332,346,360,377,453,459,630,648,670]}],"packageName":"@tauri-apps/api","symbolIdMap":{"1":{"sourceFileName":"src/app.ts","qualifiedName":""},"2":{"sourceFileName":"src/app.ts","qualifiedName":"getName"},"3":{"sourceFileName":"src/app.ts","qualifiedName":"getName"},"4":{"sourceFileName":"src/app.ts","qualifiedName":"getVersion"},"5":{"sourceFileName":"src/app.ts","qualifiedName":"getVersion"},"6":{"sourceFileName":"src/app.ts","qualifiedName":"getTauriVersion"},"7":{"sourceFileName":"src/app.ts","qualifiedName":"getTauriVersion"},"8":{"sourceFileName":"src/app.ts","qualifiedName":"show"},"9":{"sourceFileName":"src/app.ts","qualifiedName":"show"},"10":{"sourceFileName":"src/app.ts","qualifiedName":"hide"},"11":{"sourceFileName":"src/app.ts","qualifiedName":"hide"},"12":{"sourceFileName":"src/cli.ts","qualifiedName":""},"13":{"sourceFileName":"src/cli.ts","qualifiedName":"ArgMatch"},"14":{"sourceFileName":"src/cli.ts","qualifiedName":"ArgMatch.value"},"15":{"sourceFileName":"src/cli.ts","qualifiedName":"ArgMatch.occurrences"},"16":{"sourceFileName":"src/cli.ts","qualifiedName":"SubcommandMatch"},"17":{"sourceFileName":"src/cli.ts","qualifiedName":"SubcommandMatch.name"},"18":{"sourceFileName":"src/cli.ts","qualifiedName":"SubcommandMatch.matches"},"19":{"sourceFileName":"src/cli.ts","qualifiedName":"CliMatches"},"20":{"sourceFileName":"src/cli.ts","qualifiedName":"CliMatches.args"},"21":{"sourceFileName":"src/cli.ts","qualifiedName":"CliMatches.subcommand"},"22":{"sourceFileName":"src/cli.ts","qualifiedName":"getMatches"},"23":{"sourceFileName":"src/cli.ts","qualifiedName":"getMatches"},"24":{"sourceFileName":"src/clipboard.ts","qualifiedName":""},"25":{"sourceFileName":"src/clipboard.ts","qualifiedName":"writeText"},"26":{"sourceFileName":"src/clipboard.ts","qualifiedName":"writeText"},"27":{"sourceFileName":"src/clipboard.ts","qualifiedName":"text"},"28":{"sourceFileName":"src/clipboard.ts","qualifiedName":"readText"},"29":{"sourceFileName":"src/clipboard.ts","qualifiedName":"readText"},"30":{"sourceFileName":"src/dialog.ts","qualifiedName":""},"31":{"sourceFileName":"src/dialog.ts","qualifiedName":"DialogFilter"},"32":{"sourceFileName":"src/dialog.ts","qualifiedName":"DialogFilter.name"},"33":{"sourceFileName":"src/dialog.ts","qualifiedName":"DialogFilter.extensions"},"34":{"sourceFileName":"src/dialog.ts","qualifiedName":"OpenDialogOptions"},"35":{"sourceFileName":"src/dialog.ts","qualifiedName":"OpenDialogOptions.title"},"36":{"sourceFileName":"src/dialog.ts","qualifiedName":"OpenDialogOptions.filters"},"37":{"sourceFileName":"src/dialog.ts","qualifiedName":"OpenDialogOptions.defaultPath"},"38":{"sourceFileName":"src/dialog.ts","qualifiedName":"OpenDialogOptions.multiple"},"39":{"sourceFileName":"src/dialog.ts","qualifiedName":"OpenDialogOptions.directory"},"40":{"sourceFileName":"src/dialog.ts","qualifiedName":"OpenDialogOptions.recursive"},"41":{"sourceFileName":"src/dialog.ts","qualifiedName":"SaveDialogOptions"},"42":{"sourceFileName":"src/dialog.ts","qualifiedName":"SaveDialogOptions.title"},"43":{"sourceFileName":"src/dialog.ts","qualifiedName":"SaveDialogOptions.filters"},"44":{"sourceFileName":"src/dialog.ts","qualifiedName":"SaveDialogOptions.defaultPath"},"45":{"sourceFileName":"src/dialog.ts","qualifiedName":"MessageDialogOptions"},"46":{"sourceFileName":"src/dialog.ts","qualifiedName":"MessageDialogOptions.title"},"47":{"sourceFileName":"src/dialog.ts","qualifiedName":"MessageDialogOptions.type"},"48":{"sourceFileName":"src/dialog.ts","qualifiedName":"MessageDialogOptions.okLabel"},"49":{"sourceFileName":"src/dialog.ts","qualifiedName":"ConfirmDialogOptions"},"50":{"sourceFileName":"src/dialog.ts","qualifiedName":"ConfirmDialogOptions.title"},"51":{"sourceFileName":"src/dialog.ts","qualifiedName":"ConfirmDialogOptions.type"},"52":{"sourceFileName":"src/dialog.ts","qualifiedName":"ConfirmDialogOptions.okLabel"},"53":{"sourceFileName":"src/dialog.ts","qualifiedName":"ConfirmDialogOptions.cancelLabel"},"54":{"sourceFileName":"src/dialog.ts","qualifiedName":"open"},"55":{"sourceFileName":"src/dialog.ts","qualifiedName":"open"},"56":{"sourceFileName":"src/dialog.ts","qualifiedName":"options"},"57":{"sourceFileName":"src/dialog.ts","qualifiedName":"save"},"58":{"sourceFileName":"src/dialog.ts","qualifiedName":"save"},"59":{"sourceFileName":"src/dialog.ts","qualifiedName":"options"},"60":{"sourceFileName":"src/dialog.ts","qualifiedName":"message"},"61":{"sourceFileName":"src/dialog.ts","qualifiedName":"message"},"62":{"sourceFileName":"src/dialog.ts","qualifiedName":"message"},"63":{"sourceFileName":"src/dialog.ts","qualifiedName":"options"},"64":{"sourceFileName":"src/dialog.ts","qualifiedName":"ask"},"65":{"sourceFileName":"src/dialog.ts","qualifiedName":"ask"},"66":{"sourceFileName":"src/dialog.ts","qualifiedName":"message"},"67":{"sourceFileName":"src/dialog.ts","qualifiedName":"options"},"68":{"sourceFileName":"src/dialog.ts","qualifiedName":"confirm"},"69":{"sourceFileName":"src/dialog.ts","qualifiedName":"confirm"},"70":{"sourceFileName":"src/dialog.ts","qualifiedName":"message"},"71":{"sourceFileName":"src/dialog.ts","qualifiedName":"options"},"72":{"sourceFileName":"src/event.ts","qualifiedName":""},"73":{"sourceFileName":"src/event.ts","qualifiedName":"EventName"},"74":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent"},"75":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_RESIZED"},"76":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_MOVED"},"77":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_CLOSE_REQUESTED"},"78":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_CREATED"},"79":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_DESTROYED"},"80":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_FOCUS"},"81":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_BLUR"},"82":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_SCALE_FACTOR_CHANGED"},"83":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_THEME_CHANGED"},"84":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_FILE_DROP"},"85":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_FILE_DROP_HOVER"},"86":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_FILE_DROP_CANCELLED"},"87":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.MENU"},"88":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.CHECK_UPDATE"},"89":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.UPDATE_AVAILABLE"},"90":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.INSTALL_UPDATE"},"91":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.STATUS_UPDATE"},"92":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.DOWNLOAD_PROGRESS"},"93":{"sourceFileName":"src/event.ts","qualifiedName":"listen"},"94":{"sourceFileName":"src/event.ts","qualifiedName":"listen"},"95":{"sourceFileName":"src/event.ts","qualifiedName":"T"},"96":{"sourceFileName":"src/event.ts","qualifiedName":"event"},"97":{"sourceFileName":"src/event.ts","qualifiedName":"handler"},"98":{"sourceFileName":"src/event.ts","qualifiedName":"once"},"99":{"sourceFileName":"src/event.ts","qualifiedName":"once"},"100":{"sourceFileName":"src/event.ts","qualifiedName":"T"},"101":{"sourceFileName":"src/event.ts","qualifiedName":"event"},"102":{"sourceFileName":"src/event.ts","qualifiedName":"handler"},"103":{"sourceFileName":"src/event.ts","qualifiedName":"emit"},"104":{"sourceFileName":"src/event.ts","qualifiedName":"emit"},"105":{"sourceFileName":"src/event.ts","qualifiedName":"event"},"106":{"sourceFileName":"src/event.ts","qualifiedName":"payload"},"107":{"sourceFileName":"src/fs.ts","qualifiedName":""},"108":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory"},"109":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Audio"},"110":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Cache"},"111":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Config"},"112":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Data"},"113":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.LocalData"},"114":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Desktop"},"115":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Document"},"116":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Download"},"117":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Executable"},"118":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Font"},"119":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Home"},"120":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Picture"},"121":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Public"},"122":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Runtime"},"123":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Template"},"124":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Video"},"125":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Resource"},"126":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.App"},"127":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Log"},"128":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Temp"},"129":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.AppConfig"},"130":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.AppData"},"131":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.AppLocalData"},"132":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.AppCache"},"133":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.AppLog"},"134":{"sourceFileName":"src/fs.ts","qualifiedName":"FsOptions"},"135":{"sourceFileName":"src/fs.ts","qualifiedName":"FsOptions.dir"},"136":{"sourceFileName":"src/fs.ts","qualifiedName":"FsDirOptions"},"137":{"sourceFileName":"src/fs.ts","qualifiedName":"FsDirOptions.dir"},"138":{"sourceFileName":"src/fs.ts","qualifiedName":"FsDirOptions.recursive"},"139":{"sourceFileName":"src/fs.ts","qualifiedName":"FsTextFileOption"},"140":{"sourceFileName":"src/fs.ts","qualifiedName":"FsTextFileOption.path"},"141":{"sourceFileName":"src/fs.ts","qualifiedName":"FsTextFileOption.contents"},"142":{"sourceFileName":"src/fs.ts","qualifiedName":"BinaryFileContents"},"143":{"sourceFileName":"src/fs.ts","qualifiedName":"FsBinaryFileOption"},"144":{"sourceFileName":"src/fs.ts","qualifiedName":"FsBinaryFileOption.path"},"145":{"sourceFileName":"src/fs.ts","qualifiedName":"FsBinaryFileOption.contents"},"146":{"sourceFileName":"src/fs.ts","qualifiedName":"FileEntry"},"147":{"sourceFileName":"src/fs.ts","qualifiedName":"FileEntry.path"},"148":{"sourceFileName":"src/fs.ts","qualifiedName":"FileEntry.name"},"149":{"sourceFileName":"src/fs.ts","qualifiedName":"FileEntry.children"},"150":{"sourceFileName":"src/fs.ts","qualifiedName":"Dir"},"151":{"sourceFileName":"src/fs.ts","qualifiedName":"readTextFile"},"152":{"sourceFileName":"src/fs.ts","qualifiedName":"readTextFile"},"153":{"sourceFileName":"src/fs.ts","qualifiedName":"filePath"},"154":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"155":{"sourceFileName":"src/fs.ts","qualifiedName":"readBinaryFile"},"156":{"sourceFileName":"src/fs.ts","qualifiedName":"readBinaryFile"},"157":{"sourceFileName":"src/fs.ts","qualifiedName":"filePath"},"158":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"159":{"sourceFileName":"src/fs.ts","qualifiedName":"writeTextFile"},"160":{"sourceFileName":"src/fs.ts","qualifiedName":"writeTextFile"},"161":{"sourceFileName":"src/fs.ts","qualifiedName":"path"},"162":{"sourceFileName":"src/fs.ts","qualifiedName":"contents"},"163":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"164":{"sourceFileName":"src/fs.ts","qualifiedName":"writeTextFile"},"165":{"sourceFileName":"src/fs.ts","qualifiedName":"file"},"166":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"167":{"sourceFileName":"src/fs.ts","qualifiedName":"writeFile"},"168":{"sourceFileName":"src/fs.ts","qualifiedName":"writeBinaryFile"},"169":{"sourceFileName":"src/fs.ts","qualifiedName":"writeBinaryFile"},"170":{"sourceFileName":"src/fs.ts","qualifiedName":"path"},"171":{"sourceFileName":"src/fs.ts","qualifiedName":"contents"},"172":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"173":{"sourceFileName":"src/fs.ts","qualifiedName":"writeBinaryFile"},"174":{"sourceFileName":"src/fs.ts","qualifiedName":"file"},"175":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"176":{"sourceFileName":"src/fs.ts","qualifiedName":"readDir"},"177":{"sourceFileName":"src/fs.ts","qualifiedName":"readDir"},"178":{"sourceFileName":"src/fs.ts","qualifiedName":"dir"},"179":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"180":{"sourceFileName":"src/fs.ts","qualifiedName":"createDir"},"181":{"sourceFileName":"src/fs.ts","qualifiedName":"createDir"},"182":{"sourceFileName":"src/fs.ts","qualifiedName":"dir"},"183":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"184":{"sourceFileName":"src/fs.ts","qualifiedName":"removeDir"},"185":{"sourceFileName":"src/fs.ts","qualifiedName":"removeDir"},"186":{"sourceFileName":"src/fs.ts","qualifiedName":"dir"},"187":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"188":{"sourceFileName":"src/fs.ts","qualifiedName":"copyFile"},"189":{"sourceFileName":"src/fs.ts","qualifiedName":"copyFile"},"190":{"sourceFileName":"src/fs.ts","qualifiedName":"source"},"191":{"sourceFileName":"src/fs.ts","qualifiedName":"destination"},"192":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"193":{"sourceFileName":"src/fs.ts","qualifiedName":"removeFile"},"194":{"sourceFileName":"src/fs.ts","qualifiedName":"removeFile"},"195":{"sourceFileName":"src/fs.ts","qualifiedName":"file"},"196":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"197":{"sourceFileName":"src/fs.ts","qualifiedName":"renameFile"},"198":{"sourceFileName":"src/fs.ts","qualifiedName":"renameFile"},"199":{"sourceFileName":"src/fs.ts","qualifiedName":"oldPath"},"200":{"sourceFileName":"src/fs.ts","qualifiedName":"newPath"},"201":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"202":{"sourceFileName":"src/fs.ts","qualifiedName":"exists"},"203":{"sourceFileName":"src/fs.ts","qualifiedName":"exists"},"204":{"sourceFileName":"src/fs.ts","qualifiedName":"path"},"205":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"206":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":""},"207":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"ShortcutHandler"},"208":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"__type"},"209":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"__type"},"210":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"shortcut"},"211":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"register"},"212":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"register"},"213":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"shortcut"},"214":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"handler"},"215":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"registerAll"},"216":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"registerAll"},"217":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"shortcuts"},"218":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"handler"},"219":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"isRegistered"},"220":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"isRegistered"},"221":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"shortcut"},"222":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"unregister"},"223":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"unregister"},"224":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"shortcut"},"225":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"unregisterAll"},"226":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"unregisterAll"},"227":{"sourceFileName":"src/http.ts","qualifiedName":""},"228":{"sourceFileName":"src/http.ts","qualifiedName":"Duration"},"229":{"sourceFileName":"src/http.ts","qualifiedName":"Duration.secs"},"230":{"sourceFileName":"src/http.ts","qualifiedName":"Duration.nanos"},"231":{"sourceFileName":"src/http.ts","qualifiedName":"ClientOptions"},"232":{"sourceFileName":"src/http.ts","qualifiedName":"ClientOptions.maxRedirections"},"233":{"sourceFileName":"src/http.ts","qualifiedName":"ClientOptions.connectTimeout"},"234":{"sourceFileName":"src/http.ts","qualifiedName":"Part"},"235":{"sourceFileName":"src/http.ts","qualifiedName":"HttpVerb"},"236":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions"},"237":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions.method"},"238":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions.url"},"239":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions.headers"},"240":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions.query"},"241":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions.body"},"242":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions.timeout"},"243":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions.responseType"},"244":{"sourceFileName":"src/http.ts","qualifiedName":"RequestOptions"},"245":{"sourceFileName":"src/http.ts","qualifiedName":"FetchOptions"},"246":{"sourceFileName":"src/http.ts","qualifiedName":"getClient"},"247":{"sourceFileName":"src/http.ts","qualifiedName":"getClient"},"248":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"249":{"sourceFileName":"src/http.ts","qualifiedName":"fetch"},"250":{"sourceFileName":"src/http.ts","qualifiedName":"fetch"},"251":{"sourceFileName":"src/http.ts","qualifiedName":"T"},"252":{"sourceFileName":"src/http.ts","qualifiedName":"url"},"253":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"254":{"sourceFileName":"src/http.ts","qualifiedName":"Body"},"255":{"sourceFileName":"src/http.ts","qualifiedName":"Body.form"},"256":{"sourceFileName":"src/http.ts","qualifiedName":"Body.form"},"257":{"sourceFileName":"src/http.ts","qualifiedName":"data"},"258":{"sourceFileName":"src/http.ts","qualifiedName":"Body.json"},"259":{"sourceFileName":"src/http.ts","qualifiedName":"Body.json"},"260":{"sourceFileName":"src/http.ts","qualifiedName":"data"},"261":{"sourceFileName":"src/http.ts","qualifiedName":"Body.text"},"262":{"sourceFileName":"src/http.ts","qualifiedName":"Body.text"},"263":{"sourceFileName":"src/http.ts","qualifiedName":"value"},"264":{"sourceFileName":"src/http.ts","qualifiedName":"Body.bytes"},"265":{"sourceFileName":"src/http.ts","qualifiedName":"Body.bytes"},"266":{"sourceFileName":"src/http.ts","qualifiedName":"bytes"},"271":{"sourceFileName":"src/http.ts","qualifiedName":"Body.type"},"272":{"sourceFileName":"src/http.ts","qualifiedName":"Body.payload"},"273":{"sourceFileName":"src/http.ts","qualifiedName":"Client"},"277":{"sourceFileName":"src/http.ts","qualifiedName":"Client.id"},"278":{"sourceFileName":"src/http.ts","qualifiedName":"Client.drop"},"279":{"sourceFileName":"src/http.ts","qualifiedName":"Client.drop"},"280":{"sourceFileName":"src/http.ts","qualifiedName":"Client.request"},"281":{"sourceFileName":"src/http.ts","qualifiedName":"Client.request"},"282":{"sourceFileName":"src/http.ts","qualifiedName":"T"},"283":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"284":{"sourceFileName":"src/http.ts","qualifiedName":"Client.get"},"285":{"sourceFileName":"src/http.ts","qualifiedName":"Client.get"},"286":{"sourceFileName":"src/http.ts","qualifiedName":"T"},"287":{"sourceFileName":"src/http.ts","qualifiedName":"url"},"288":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"289":{"sourceFileName":"src/http.ts","qualifiedName":"Client.post"},"290":{"sourceFileName":"src/http.ts","qualifiedName":"Client.post"},"291":{"sourceFileName":"src/http.ts","qualifiedName":"T"},"292":{"sourceFileName":"src/http.ts","qualifiedName":"url"},"293":{"sourceFileName":"src/http.ts","qualifiedName":"body"},"294":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"295":{"sourceFileName":"src/http.ts","qualifiedName":"Client.put"},"296":{"sourceFileName":"src/http.ts","qualifiedName":"Client.put"},"297":{"sourceFileName":"src/http.ts","qualifiedName":"T"},"298":{"sourceFileName":"src/http.ts","qualifiedName":"url"},"299":{"sourceFileName":"src/http.ts","qualifiedName":"body"},"300":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"301":{"sourceFileName":"src/http.ts","qualifiedName":"Client.patch"},"302":{"sourceFileName":"src/http.ts","qualifiedName":"Client.patch"},"303":{"sourceFileName":"src/http.ts","qualifiedName":"T"},"304":{"sourceFileName":"src/http.ts","qualifiedName":"url"},"305":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"306":{"sourceFileName":"src/http.ts","qualifiedName":"Client.delete"},"307":{"sourceFileName":"src/http.ts","qualifiedName":"Client.delete"},"308":{"sourceFileName":"src/http.ts","qualifiedName":"T"},"309":{"sourceFileName":"src/http.ts","qualifiedName":"url"},"310":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"311":{"sourceFileName":"src/http.ts","qualifiedName":"Response"},"316":{"sourceFileName":"src/http.ts","qualifiedName":"Response.url"},"317":{"sourceFileName":"src/http.ts","qualifiedName":"Response.status"},"318":{"sourceFileName":"src/http.ts","qualifiedName":"Response.ok"},"319":{"sourceFileName":"src/http.ts","qualifiedName":"Response.headers"},"320":{"sourceFileName":"src/http.ts","qualifiedName":"Response.rawHeaders"},"321":{"sourceFileName":"src/http.ts","qualifiedName":"Response.data"},"322":{"sourceFileName":"src/http.ts","qualifiedName":"Response.T"},"323":{"sourceFileName":"src/http.ts","qualifiedName":"ResponseType"},"324":{"sourceFileName":"src/http.ts","qualifiedName":"ResponseType.JSON"},"325":{"sourceFileName":"src/http.ts","qualifiedName":"ResponseType.Text"},"326":{"sourceFileName":"src/http.ts","qualifiedName":"ResponseType.Binary"},"327":{"sourceFileName":"src/http.ts","qualifiedName":"FilePart"},"328":{"sourceFileName":"src/http.ts","qualifiedName":"FilePart.file"},"329":{"sourceFileName":"src/http.ts","qualifiedName":"FilePart.mime"},"330":{"sourceFileName":"src/http.ts","qualifiedName":"FilePart.fileName"},"331":{"sourceFileName":"src/http.ts","qualifiedName":"FilePart.T"},"332":{"sourceFileName":"src/mocks.ts","qualifiedName":""},"333":{"sourceFileName":"src/mocks.ts","qualifiedName":"mockIPC"},"334":{"sourceFileName":"src/mocks.ts","qualifiedName":"mockIPC"},"335":{"sourceFileName":"src/mocks.ts","qualifiedName":"cb"},"336":{"sourceFileName":"src/mocks.ts","qualifiedName":"__type"},"337":{"sourceFileName":"src/mocks.ts","qualifiedName":"__type"},"338":{"sourceFileName":"src/mocks.ts","qualifiedName":"cmd"},"339":{"sourceFileName":"src/mocks.ts","qualifiedName":"args"},"340":{"sourceFileName":"src/mocks.ts","qualifiedName":"mockWindows"},"341":{"sourceFileName":"src/mocks.ts","qualifiedName":"mockWindows"},"342":{"sourceFileName":"src/mocks.ts","qualifiedName":"current"},"343":{"sourceFileName":"src/mocks.ts","qualifiedName":"additionalWindows"},"344":{"sourceFileName":"src/mocks.ts","qualifiedName":"clearMocks"},"345":{"sourceFileName":"src/mocks.ts","qualifiedName":"clearMocks"},"346":{"sourceFileName":"src/notification.ts","qualifiedName":""},"347":{"sourceFileName":"src/notification.ts","qualifiedName":"Options"},"348":{"sourceFileName":"src/notification.ts","qualifiedName":"Options.title"},"349":{"sourceFileName":"src/notification.ts","qualifiedName":"Options.body"},"350":{"sourceFileName":"src/notification.ts","qualifiedName":"Options.icon"},"351":{"sourceFileName":"src/notification.ts","qualifiedName":"Options.sound"},"352":{"sourceFileName":"src/notification.ts","qualifiedName":"Permission"},"353":{"sourceFileName":"src/notification.ts","qualifiedName":"sendNotification"},"354":{"sourceFileName":"src/notification.ts","qualifiedName":"sendNotification"},"355":{"sourceFileName":"src/notification.ts","qualifiedName":"options"},"356":{"sourceFileName":"src/notification.ts","qualifiedName":"requestPermission"},"357":{"sourceFileName":"src/notification.ts","qualifiedName":"requestPermission"},"358":{"sourceFileName":"src/notification.ts","qualifiedName":"isPermissionGranted"},"359":{"sourceFileName":"src/notification.ts","qualifiedName":"isPermissionGranted"},"360":{"sourceFileName":"src/os.ts","qualifiedName":""},"361":{"sourceFileName":"src/os.ts","qualifiedName":"EOL"},"362":{"sourceFileName":"src/os.ts","qualifiedName":"platform"},"363":{"sourceFileName":"src/os.ts","qualifiedName":"platform"},"364":{"sourceFileName":"src/os.ts","qualifiedName":"version"},"365":{"sourceFileName":"src/os.ts","qualifiedName":"version"},"366":{"sourceFileName":"src/os.ts","qualifiedName":"type"},"367":{"sourceFileName":"src/os.ts","qualifiedName":"type"},"368":{"sourceFileName":"src/os.ts","qualifiedName":"arch"},"369":{"sourceFileName":"src/os.ts","qualifiedName":"arch"},"370":{"sourceFileName":"src/os.ts","qualifiedName":"tempdir"},"371":{"sourceFileName":"src/os.ts","qualifiedName":"tempdir"},"372":{"sourceFileName":"src/os.ts","qualifiedName":"locale"},"373":{"sourceFileName":"src/os.ts","qualifiedName":"locale"},"374":{"sourceFileName":"src/os.ts","qualifiedName":"Platform"},"375":{"sourceFileName":"src/os.ts","qualifiedName":"OsType"},"376":{"sourceFileName":"src/os.ts","qualifiedName":"Arch"},"377":{"sourceFileName":"src/path.ts","qualifiedName":""},"378":{"sourceFileName":"src/path.ts","qualifiedName":"appDir"},"379":{"sourceFileName":"src/path.ts","qualifiedName":"appDir"},"380":{"sourceFileName":"src/path.ts","qualifiedName":"appConfigDir"},"381":{"sourceFileName":"src/path.ts","qualifiedName":"appConfigDir"},"382":{"sourceFileName":"src/path.ts","qualifiedName":"appDataDir"},"383":{"sourceFileName":"src/path.ts","qualifiedName":"appDataDir"},"384":{"sourceFileName":"src/path.ts","qualifiedName":"appLocalDataDir"},"385":{"sourceFileName":"src/path.ts","qualifiedName":"appLocalDataDir"},"386":{"sourceFileName":"src/path.ts","qualifiedName":"appCacheDir"},"387":{"sourceFileName":"src/path.ts","qualifiedName":"appCacheDir"},"388":{"sourceFileName":"src/path.ts","qualifiedName":"appLogDir"},"389":{"sourceFileName":"src/path.ts","qualifiedName":"appLogDir"},"390":{"sourceFileName":"src/path.ts","qualifiedName":"audioDir"},"391":{"sourceFileName":"src/path.ts","qualifiedName":"audioDir"},"392":{"sourceFileName":"src/path.ts","qualifiedName":"cacheDir"},"393":{"sourceFileName":"src/path.ts","qualifiedName":"cacheDir"},"394":{"sourceFileName":"src/path.ts","qualifiedName":"configDir"},"395":{"sourceFileName":"src/path.ts","qualifiedName":"configDir"},"396":{"sourceFileName":"src/path.ts","qualifiedName":"dataDir"},"397":{"sourceFileName":"src/path.ts","qualifiedName":"dataDir"},"398":{"sourceFileName":"src/path.ts","qualifiedName":"desktopDir"},"399":{"sourceFileName":"src/path.ts","qualifiedName":"desktopDir"},"400":{"sourceFileName":"src/path.ts","qualifiedName":"documentDir"},"401":{"sourceFileName":"src/path.ts","qualifiedName":"documentDir"},"402":{"sourceFileName":"src/path.ts","qualifiedName":"downloadDir"},"403":{"sourceFileName":"src/path.ts","qualifiedName":"downloadDir"},"404":{"sourceFileName":"src/path.ts","qualifiedName":"executableDir"},"405":{"sourceFileName":"src/path.ts","qualifiedName":"executableDir"},"406":{"sourceFileName":"src/path.ts","qualifiedName":"fontDir"},"407":{"sourceFileName":"src/path.ts","qualifiedName":"fontDir"},"408":{"sourceFileName":"src/path.ts","qualifiedName":"homeDir"},"409":{"sourceFileName":"src/path.ts","qualifiedName":"homeDir"},"410":{"sourceFileName":"src/path.ts","qualifiedName":"localDataDir"},"411":{"sourceFileName":"src/path.ts","qualifiedName":"localDataDir"},"412":{"sourceFileName":"src/path.ts","qualifiedName":"pictureDir"},"413":{"sourceFileName":"src/path.ts","qualifiedName":"pictureDir"},"414":{"sourceFileName":"src/path.ts","qualifiedName":"publicDir"},"415":{"sourceFileName":"src/path.ts","qualifiedName":"publicDir"},"416":{"sourceFileName":"src/path.ts","qualifiedName":"resourceDir"},"417":{"sourceFileName":"src/path.ts","qualifiedName":"resourceDir"},"418":{"sourceFileName":"src/path.ts","qualifiedName":"resolveResource"},"419":{"sourceFileName":"src/path.ts","qualifiedName":"resolveResource"},"420":{"sourceFileName":"src/path.ts","qualifiedName":"resourcePath"},"421":{"sourceFileName":"src/path.ts","qualifiedName":"runtimeDir"},"422":{"sourceFileName":"src/path.ts","qualifiedName":"runtimeDir"},"423":{"sourceFileName":"src/path.ts","qualifiedName":"templateDir"},"424":{"sourceFileName":"src/path.ts","qualifiedName":"templateDir"},"425":{"sourceFileName":"src/path.ts","qualifiedName":"videoDir"},"426":{"sourceFileName":"src/path.ts","qualifiedName":"videoDir"},"427":{"sourceFileName":"src/path.ts","qualifiedName":"logDir"},"428":{"sourceFileName":"src/path.ts","qualifiedName":"logDir"},"429":{"sourceFileName":"src/path.ts","qualifiedName":"sep"},"430":{"sourceFileName":"src/path.ts","qualifiedName":"delimiter"},"431":{"sourceFileName":"src/path.ts","qualifiedName":"resolve"},"432":{"sourceFileName":"src/path.ts","qualifiedName":"resolve"},"433":{"sourceFileName":"src/path.ts","qualifiedName":"paths"},"434":{"sourceFileName":"src/path.ts","qualifiedName":"normalize"},"435":{"sourceFileName":"src/path.ts","qualifiedName":"normalize"},"436":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"437":{"sourceFileName":"src/path.ts","qualifiedName":"join"},"438":{"sourceFileName":"src/path.ts","qualifiedName":"join"},"439":{"sourceFileName":"src/path.ts","qualifiedName":"paths"},"440":{"sourceFileName":"src/path.ts","qualifiedName":"dirname"},"441":{"sourceFileName":"src/path.ts","qualifiedName":"dirname"},"442":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"443":{"sourceFileName":"src/path.ts","qualifiedName":"extname"},"444":{"sourceFileName":"src/path.ts","qualifiedName":"extname"},"445":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"446":{"sourceFileName":"src/path.ts","qualifiedName":"basename"},"447":{"sourceFileName":"src/path.ts","qualifiedName":"basename"},"448":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"449":{"sourceFileName":"src/path.ts","qualifiedName":"ext"},"450":{"sourceFileName":"src/path.ts","qualifiedName":"isAbsolute"},"451":{"sourceFileName":"src/path.ts","qualifiedName":"isAbsolute"},"452":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"453":{"sourceFileName":"src/process.ts","qualifiedName":""},"454":{"sourceFileName":"src/process.ts","qualifiedName":"exit"},"455":{"sourceFileName":"src/process.ts","qualifiedName":"exit"},"456":{"sourceFileName":"src/process.ts","qualifiedName":"exitCode"},"457":{"sourceFileName":"src/process.ts","qualifiedName":"relaunch"},"458":{"sourceFileName":"src/process.ts","qualifiedName":"relaunch"},"459":{"sourceFileName":"src/shell.ts","qualifiedName":""},"460":{"sourceFileName":"src/shell.ts","qualifiedName":"Command"},"461":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.sidecar"},"462":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.sidecar"},"463":{"sourceFileName":"src/shell.ts","qualifiedName":"program"},"464":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"465":{"sourceFileName":"src/shell.ts","qualifiedName":"options"},"466":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.__constructor"},"467":{"sourceFileName":"src/shell.ts","qualifiedName":"Command"},"468":{"sourceFileName":"src/shell.ts","qualifiedName":"program"},"469":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"470":{"sourceFileName":"src/shell.ts","qualifiedName":"options"},"474":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.stdout"},"475":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.stderr"},"476":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.spawn"},"477":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.spawn"},"478":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.execute"},"479":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.execute"},"480":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.addListener"},"481":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.addListener"},"482":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"483":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"484":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"485":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"486":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"487":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeListener"},"488":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeListener"},"489":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"490":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"491":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"492":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"493":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"494":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.on"},"495":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.on"},"496":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"497":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"498":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"499":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"500":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"501":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.once"},"502":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.once"},"503":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"504":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"505":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"506":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"507":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"508":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.off"},"509":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.off"},"510":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"511":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"512":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"513":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"514":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"515":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeAllListeners"},"516":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeAllListeners"},"517":{"sourceFileName":"src/shell.ts","qualifiedName":"event"},"522":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.listenerCount"},"523":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.listenerCount"},"524":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"525":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependListener"},"526":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependListener"},"527":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"528":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"529":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"530":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"531":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"532":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependOnceListener"},"533":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependOnceListener"},"534":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"535":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"536":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"537":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"538":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"539":{"sourceFileName":"src/shell.ts","qualifiedName":"Child"},"540":{"sourceFileName":"src/shell.ts","qualifiedName":"Child.__constructor"},"541":{"sourceFileName":"src/shell.ts","qualifiedName":"Child"},"542":{"sourceFileName":"src/shell.ts","qualifiedName":"pid"},"543":{"sourceFileName":"src/shell.ts","qualifiedName":"Child.pid"},"544":{"sourceFileName":"src/shell.ts","qualifiedName":"Child.write"},"545":{"sourceFileName":"src/shell.ts","qualifiedName":"Child.write"},"546":{"sourceFileName":"src/shell.ts","qualifiedName":"data"},"547":{"sourceFileName":"src/shell.ts","qualifiedName":"Child.kill"},"548":{"sourceFileName":"src/shell.ts","qualifiedName":"Child.kill"},"549":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter"},"552":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.E"},"557":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.addListener"},"558":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.addListener"},"559":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"560":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"561":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"562":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"563":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"564":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeListener"},"565":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeListener"},"566":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"567":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"568":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"569":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"570":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"571":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.on"},"572":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.on"},"573":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"574":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"575":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"576":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"577":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"578":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.once"},"579":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.once"},"580":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"581":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"582":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"583":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"584":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"585":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.off"},"586":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.off"},"587":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"588":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"589":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"590":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"591":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"592":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeAllListeners"},"593":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeAllListeners"},"594":{"sourceFileName":"src/shell.ts","qualifiedName":"event"},"599":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.listenerCount"},"600":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.listenerCount"},"601":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"602":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependListener"},"603":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependListener"},"604":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"605":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"606":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"607":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"608":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"609":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependOnceListener"},"610":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependOnceListener"},"611":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"612":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"613":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"614":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"615":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"616":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.E"},"617":{"sourceFileName":"src/shell.ts","qualifiedName":"open"},"618":{"sourceFileName":"src/shell.ts","qualifiedName":"open"},"619":{"sourceFileName":"src/shell.ts","qualifiedName":"path"},"620":{"sourceFileName":"src/shell.ts","qualifiedName":"openWith"},"621":{"sourceFileName":"src/shell.ts","qualifiedName":"ChildProcess"},"622":{"sourceFileName":"src/shell.ts","qualifiedName":"ChildProcess.code"},"623":{"sourceFileName":"src/shell.ts","qualifiedName":"ChildProcess.signal"},"624":{"sourceFileName":"src/shell.ts","qualifiedName":"ChildProcess.stdout"},"625":{"sourceFileName":"src/shell.ts","qualifiedName":"ChildProcess.stderr"},"626":{"sourceFileName":"src/shell.ts","qualifiedName":"SpawnOptions"},"627":{"sourceFileName":"src/shell.ts","qualifiedName":"SpawnOptions.cwd"},"628":{"sourceFileName":"src/shell.ts","qualifiedName":"SpawnOptions.env"},"629":{"sourceFileName":"src/shell.ts","qualifiedName":"SpawnOptions.encoding"},"630":{"sourceFileName":"src/tauri.ts","qualifiedName":""},"631":{"sourceFileName":"src/tauri.ts","qualifiedName":"InvokeArgs"},"632":{"sourceFileName":"src/tauri.ts","qualifiedName":"transformCallback"},"633":{"sourceFileName":"src/tauri.ts","qualifiedName":"transformCallback"},"634":{"sourceFileName":"src/tauri.ts","qualifiedName":"callback"},"635":{"sourceFileName":"src/tauri.ts","qualifiedName":"__type"},"636":{"sourceFileName":"src/tauri.ts","qualifiedName":"__type"},"637":{"sourceFileName":"src/tauri.ts","qualifiedName":"response"},"638":{"sourceFileName":"src/tauri.ts","qualifiedName":"once"},"639":{"sourceFileName":"src/tauri.ts","qualifiedName":"invoke"},"640":{"sourceFileName":"src/tauri.ts","qualifiedName":"invoke"},"641":{"sourceFileName":"src/tauri.ts","qualifiedName":"T"},"642":{"sourceFileName":"src/tauri.ts","qualifiedName":"cmd"},"643":{"sourceFileName":"src/tauri.ts","qualifiedName":"args"},"644":{"sourceFileName":"src/tauri.ts","qualifiedName":"convertFileSrc"},"645":{"sourceFileName":"src/tauri.ts","qualifiedName":"convertFileSrc"},"646":{"sourceFileName":"src/tauri.ts","qualifiedName":"filePath"},"647":{"sourceFileName":"src/tauri.ts","qualifiedName":"protocol"},"648":{"sourceFileName":"src/updater.ts","qualifiedName":""},"649":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateStatus"},"650":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateStatusResult"},"651":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateStatusResult.error"},"652":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateStatusResult.status"},"653":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateManifest"},"654":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateManifest.version"},"655":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateManifest.date"},"656":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateManifest.body"},"657":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateResult"},"658":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateResult.manifest"},"659":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateResult.shouldUpdate"},"660":{"sourceFileName":"src/updater.ts","qualifiedName":"onUpdaterEvent"},"661":{"sourceFileName":"src/updater.ts","qualifiedName":"onUpdaterEvent"},"662":{"sourceFileName":"src/updater.ts","qualifiedName":"handler"},"663":{"sourceFileName":"src/updater.ts","qualifiedName":"__type"},"664":{"sourceFileName":"src/updater.ts","qualifiedName":"__type"},"665":{"sourceFileName":"src/updater.ts","qualifiedName":"status"},"666":{"sourceFileName":"src/updater.ts","qualifiedName":"installUpdate"},"667":{"sourceFileName":"src/updater.ts","qualifiedName":"installUpdate"},"668":{"sourceFileName":"src/updater.ts","qualifiedName":"checkUpdate"},"669":{"sourceFileName":"src/updater.ts","qualifiedName":"checkUpdate"},"670":{"sourceFileName":"src/window.ts","qualifiedName":""},"671":{"sourceFileName":"src/window.ts","qualifiedName":"CursorIcon"},"673":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindow"},"674":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindow.getByLabel"},"675":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindow.getByLabel"},"676":{"sourceFileName":"src/window.ts","qualifiedName":"label"},"677":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindow.getFocusedWindow"},"678":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindow.getFocusedWindow"},"679":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindow.__constructor"},"680":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindow"},"681":{"sourceFileName":"src/window.ts","qualifiedName":"label"},"682":{"sourceFileName":"src/window.ts","qualifiedName":"options"},"683":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.scaleFactor"},"684":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.scaleFactor"},"685":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.innerPosition"},"686":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.innerPosition"},"687":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.outerPosition"},"688":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.outerPosition"},"689":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.innerSize"},"690":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.innerSize"},"691":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.outerSize"},"692":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.outerSize"},"693":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isFullscreen"},"694":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isFullscreen"},"695":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMinimized"},"696":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMinimized"},"697":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMaximized"},"698":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMaximized"},"699":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isFocused"},"700":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isFocused"},"701":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isDecorated"},"702":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isDecorated"},"703":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isResizable"},"704":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isResizable"},"705":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMaximizable"},"706":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMaximizable"},"707":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMinimizable"},"708":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMinimizable"},"709":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isClosable"},"710":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isClosable"},"711":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isVisible"},"712":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isVisible"},"713":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.title"},"714":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.title"},"715":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.theme"},"716":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.theme"},"717":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.center"},"718":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.center"},"719":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.requestUserAttention"},"720":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.requestUserAttention"},"721":{"sourceFileName":"src/window.ts","qualifiedName":"requestType"},"722":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setResizable"},"723":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setResizable"},"724":{"sourceFileName":"src/window.ts","qualifiedName":"resizable"},"725":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMaximizable"},"726":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMaximizable"},"727":{"sourceFileName":"src/window.ts","qualifiedName":"maximizable"},"728":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMinimizable"},"729":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMinimizable"},"730":{"sourceFileName":"src/window.ts","qualifiedName":"minimizable"},"731":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setClosable"},"732":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setClosable"},"733":{"sourceFileName":"src/window.ts","qualifiedName":"closable"},"734":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setTitle"},"735":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setTitle"},"736":{"sourceFileName":"src/window.ts","qualifiedName":"title"},"737":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.maximize"},"738":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.maximize"},"739":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.unmaximize"},"740":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.unmaximize"},"741":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.toggleMaximize"},"742":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.toggleMaximize"},"743":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.minimize"},"744":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.minimize"},"745":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.unminimize"},"746":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.unminimize"},"747":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.show"},"748":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.show"},"749":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.hide"},"750":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.hide"},"751":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.close"},"752":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.close"},"753":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setDecorations"},"754":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setDecorations"},"755":{"sourceFileName":"src/window.ts","qualifiedName":"decorations"},"756":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setAlwaysOnTop"},"757":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setAlwaysOnTop"},"758":{"sourceFileName":"src/window.ts","qualifiedName":"alwaysOnTop"},"759":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setContentProtected"},"760":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setContentProtected"},"761":{"sourceFileName":"src/window.ts","qualifiedName":"protected_"},"762":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setSize"},"763":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setSize"},"764":{"sourceFileName":"src/window.ts","qualifiedName":"size"},"765":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMinSize"},"766":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMinSize"},"767":{"sourceFileName":"src/window.ts","qualifiedName":"size"},"768":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMaxSize"},"769":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMaxSize"},"770":{"sourceFileName":"src/window.ts","qualifiedName":"size"},"771":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setPosition"},"772":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setPosition"},"773":{"sourceFileName":"src/window.ts","qualifiedName":"position"},"774":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setFullscreen"},"775":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setFullscreen"},"776":{"sourceFileName":"src/window.ts","qualifiedName":"fullscreen"},"777":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setFocus"},"778":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setFocus"},"779":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setIcon"},"780":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setIcon"},"781":{"sourceFileName":"src/window.ts","qualifiedName":"icon"},"782":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setSkipTaskbar"},"783":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setSkipTaskbar"},"784":{"sourceFileName":"src/window.ts","qualifiedName":"skip"},"785":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorGrab"},"786":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorGrab"},"787":{"sourceFileName":"src/window.ts","qualifiedName":"grab"},"788":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorVisible"},"789":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorVisible"},"790":{"sourceFileName":"src/window.ts","qualifiedName":"visible"},"791":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorIcon"},"792":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorIcon"},"793":{"sourceFileName":"src/window.ts","qualifiedName":"icon"},"794":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorPosition"},"795":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorPosition"},"796":{"sourceFileName":"src/window.ts","qualifiedName":"position"},"797":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setIgnoreCursorEvents"},"798":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setIgnoreCursorEvents"},"799":{"sourceFileName":"src/window.ts","qualifiedName":"ignore"},"800":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.startDragging"},"801":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.startDragging"},"802":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onResized"},"803":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onResized"},"804":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"805":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onMoved"},"806":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onMoved"},"807":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"808":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onCloseRequested"},"809":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onCloseRequested"},"810":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"811":{"sourceFileName":"src/window.ts","qualifiedName":"__type"},"812":{"sourceFileName":"src/window.ts","qualifiedName":"__type"},"813":{"sourceFileName":"src/window.ts","qualifiedName":"event"},"814":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onFocusChanged"},"815":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onFocusChanged"},"816":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"817":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onScaleChanged"},"818":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onScaleChanged"},"819":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"820":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onMenuClicked"},"821":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onMenuClicked"},"822":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"823":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onFileDropEvent"},"824":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onFileDropEvent"},"825":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"826":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onThemeChanged"},"827":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onThemeChanged"},"828":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"829":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.label"},"830":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.listeners"},"831":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.listen"},"832":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.listen"},"833":{"sourceFileName":"src/window.ts","qualifiedName":"T"},"834":{"sourceFileName":"src/window.ts","qualifiedName":"event"},"835":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"836":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.once"},"837":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.once"},"838":{"sourceFileName":"src/window.ts","qualifiedName":"T"},"839":{"sourceFileName":"src/window.ts","qualifiedName":"event"},"840":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"841":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.emit"},"842":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.emit"},"843":{"sourceFileName":"src/window.ts","qualifiedName":"event"},"844":{"sourceFileName":"src/window.ts","qualifiedName":"payload"},"1046":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent"},"1047":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.__constructor"},"1048":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent"},"1049":{"sourceFileName":"src/window.ts","qualifiedName":"event"},"1050":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.event"},"1051":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.windowLabel"},"1052":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.id"},"1053":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent._preventDefault"},"1054":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.preventDefault"},"1055":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.preventDefault"},"1056":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.isPreventDefault"},"1057":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.isPreventDefault"},"1058":{"sourceFileName":"src/window.ts","qualifiedName":"getCurrent"},"1059":{"sourceFileName":"src/window.ts","qualifiedName":"getCurrent"},"1060":{"sourceFileName":"src/window.ts","qualifiedName":"getAll"},"1061":{"sourceFileName":"src/window.ts","qualifiedName":"getAll"},"1062":{"sourceFileName":"src/window.ts","qualifiedName":"appWindow"},"1063":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalSize"},"1064":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalSize.__constructor"},"1065":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalSize"},"1066":{"sourceFileName":"src/window.ts","qualifiedName":"width"},"1067":{"sourceFileName":"src/window.ts","qualifiedName":"height"},"1068":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalSize.type"},"1069":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalSize.width"},"1070":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalSize.height"},"1071":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize"},"1072":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize.__constructor"},"1073":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize"},"1074":{"sourceFileName":"src/window.ts","qualifiedName":"width"},"1075":{"sourceFileName":"src/window.ts","qualifiedName":"height"},"1076":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize.type"},"1077":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize.width"},"1078":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize.height"},"1079":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize.toLogical"},"1080":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize.toLogical"},"1081":{"sourceFileName":"src/window.ts","qualifiedName":"scaleFactor"},"1082":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalPosition"},"1083":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalPosition.__constructor"},"1084":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalPosition"},"1085":{"sourceFileName":"src/window.ts","qualifiedName":"x"},"1086":{"sourceFileName":"src/window.ts","qualifiedName":"y"},"1087":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalPosition.type"},"1088":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalPosition.x"},"1089":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalPosition.y"},"1090":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition"},"1091":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition.__constructor"},"1092":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition"},"1093":{"sourceFileName":"src/window.ts","qualifiedName":"x"},"1094":{"sourceFileName":"src/window.ts","qualifiedName":"y"},"1095":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition.type"},"1096":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition.x"},"1097":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition.y"},"1098":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition.toLogical"},"1099":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition.toLogical"},"1100":{"sourceFileName":"src/window.ts","qualifiedName":"scaleFactor"},"1101":{"sourceFileName":"src/window.ts","qualifiedName":"UserAttentionType"},"1102":{"sourceFileName":"src/window.ts","qualifiedName":"UserAttentionType.Critical"},"1103":{"sourceFileName":"src/window.ts","qualifiedName":"UserAttentionType.Informational"},"1104":{"sourceFileName":"src/window.ts","qualifiedName":"currentMonitor"},"1105":{"sourceFileName":"src/window.ts","qualifiedName":"currentMonitor"},"1106":{"sourceFileName":"src/window.ts","qualifiedName":"primaryMonitor"},"1107":{"sourceFileName":"src/window.ts","qualifiedName":"primaryMonitor"},"1108":{"sourceFileName":"src/window.ts","qualifiedName":"availableMonitors"},"1109":{"sourceFileName":"src/window.ts","qualifiedName":"availableMonitors"},"1110":{"sourceFileName":"src/window.ts","qualifiedName":"Theme"},"1111":{"sourceFileName":"src/window.ts","qualifiedName":"TitleBarStyle"},"1112":{"sourceFileName":"src/window.ts","qualifiedName":"Monitor"},"1113":{"sourceFileName":"src/window.ts","qualifiedName":"Monitor.name"},"1114":{"sourceFileName":"src/window.ts","qualifiedName":"Monitor.size"},"1115":{"sourceFileName":"src/window.ts","qualifiedName":"Monitor.position"},"1116":{"sourceFileName":"src/window.ts","qualifiedName":"Monitor.scaleFactor"},"1117":{"sourceFileName":"src/window.ts","qualifiedName":"ScaleFactorChanged"},"1118":{"sourceFileName":"src/window.ts","qualifiedName":"ScaleFactorChanged.scaleFactor"},"1119":{"sourceFileName":"src/window.ts","qualifiedName":"ScaleFactorChanged.size"},"1120":{"sourceFileName":"src/window.ts","qualifiedName":"FileDropEvent"},"1121":{"sourceFileName":"src/window.ts","qualifiedName":"__type"},"1122":{"sourceFileName":"src/window.ts","qualifiedName":"__type.type"},"1123":{"sourceFileName":"src/window.ts","qualifiedName":"__type.paths"},"1124":{"sourceFileName":"src/window.ts","qualifiedName":"__type"},"1125":{"sourceFileName":"src/window.ts","qualifiedName":"__type.type"},"1126":{"sourceFileName":"src/window.ts","qualifiedName":"__type.paths"},"1127":{"sourceFileName":"src/window.ts","qualifiedName":"__type"},"1128":{"sourceFileName":"src/window.ts","qualifiedName":"__type.type"},"1129":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions"},"1130":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.url"},"1131":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.center"},"1132":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.x"},"1133":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.y"},"1134":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.width"},"1135":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.height"},"1136":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.minWidth"},"1137":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.minHeight"},"1138":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.maxWidth"},"1139":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.maxHeight"},"1140":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.resizable"},"1141":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.title"},"1142":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.fullscreen"},"1143":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.focus"},"1144":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.transparent"},"1145":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.maximized"},"1146":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.visible"},"1147":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.decorations"},"1148":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.alwaysOnTop"},"1149":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.contentProtected"},"1150":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.skipTaskbar"},"1151":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.fileDropEnabled"},"1152":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.theme"},"1153":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.titleBarStyle"},"1154":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.hiddenTitle"},"1155":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.acceptFirstMouse"},"1156":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.tabbingIdentifier"},"1157":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.userAgent"},"1158":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.maximizable"},"1159":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.minimizable"},"1160":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.closable"},"1161":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"Event"},"1162":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"Event.event"},"1163":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"Event.windowLabel"},"1164":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"Event.id"},"1165":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"Event.payload"},"1166":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"Event.T"},"1167":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"EventCallback"},"1168":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"__type"},"1169":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"__type"},"1170":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"event"},"1171":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"T"},"1172":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"UnlistenFn"},"1173":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"__type"},"1174":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"__type"},"1175":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory"}}} \ No newline at end of file diff --git a/tooling/api/src/notification.ts b/tooling/api/src/notification.ts index fdc33a0cf3b1..c3125d194fd5 100644 --- a/tooling/api/src/notification.ts +++ b/tooling/api/src/notification.ts @@ -38,6 +38,31 @@ interface Options { body?: string /** Optional notification icon. */ icon?: string + /** + * Optional notification sound. + * + * #### Platform-specific + * + * Each OS has a different sound name so you will need to conditionally specify an appropriate sound + * based on the OS in use, for a list of sounds see: + * - **Linux**: can be one of the sounds listed in {@link https://0pointer.de/public/sound-naming-spec.html} + * - **Windows**: can be one of the sounds listed in {@link https://learn.microsoft.com/en-us/uwp/schemas/tiles/toastschema/element-audio} + * but without the prefix, for example, if `ms-winsoundevent:Notification.Default` you would use `Default` and + * if `ms-winsoundevent:Notification.Looping.Alarm2`, you would use `Alarm2`. + * Windows 7 is not supproted, if a sound is provided, it will play the default sound, otherwise it will be silent. + * - **macOS**: you can specify the name of the sound you'd like to play when the notification is shown. + * Any of the default sounds (under System Preferences > Sound) can be used, in addition to custom sound files. + * Be sure that the sound file is copied under the app bundle (e.g., `YourApp.app/Contents/Resources`), or one of the following locations: + * - `~/Library/Sounds` + * - `/Library/Sounds` + * - `/Network/Library/Sounds` + * - `/System/Library/Sounds` + * + * See the {@link https://developer.apple.com/documentation/appkit/nssound | NSSound} docs for more information. + * + * @since 1.5.0 + */ + sound?: string } /** Possible permission values. */ From 5d065def05abcd85135eaf5ab67db9b14331fc97 Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Tue, 20 Jun 2023 17:00:28 +0300 Subject: [PATCH 02/13] change tag --- .changes/notification-sound.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.changes/notification-sound.md b/.changes/notification-sound.md index d757236b871f..69c12ef5533c 100644 --- a/.changes/notification-sound.md +++ b/.changes/notification-sound.md @@ -1,6 +1,6 @@ --- -'tauri': 'minor' -'@tauri-apps/api': 'minor' +'tauri': 'minor:feat' +'@tauri-apps/api': 'minor:feat' --- Add option to specify notification sound. From b63d9d07da86b2cca7a35efb086da40718504a94 Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Tue, 20 Jun 2023 17:36:42 +0300 Subject: [PATCH 03/13] Update documentation and use it in api example --- core/tauri/src/api/notification.rs | 3 +- examples/api/dist/assets/index.js | 60 +- examples/api/src-tauri/Cargo.lock | 1348 +++++++++---------- examples/api/src/views/Notifications.svelte | 17 +- tooling/api/docs/js-api.json | 2 +- tooling/api/src/notification.ts | 3 +- 6 files changed, 676 insertions(+), 757 deletions(-) diff --git a/core/tauri/src/api/notification.rs b/core/tauri/src/api/notification.rs index 0fa470cc9c54..20f2f028fae9 100644 --- a/core/tauri/src/api/notification.rs +++ b/core/tauri/src/api/notification.rs @@ -85,7 +85,8 @@ impl Notification { /// but without the prefix, for example, if `ms-winsoundevent:Notification.Default` you would use `Default` and /// if `ms-winsoundevent:Notification.Looping.Alarm2`, you would use `Alarm2`. /// Windows 7 is not supproted, if a sound is provided, it will play the default sound, otherwise it will be silent. - /// - **macOS**: you can specify the name of the sound you'd like to play when the notification is shown. + /// - **macOS**: you can specify the name of the sound you'd like to play when the notification is shown + /// or use `NSUserNotificationDefaultSoundName` to play the default sound. /// Any of the default sounds (under System Preferences > Sound) can be used, in addition to custom sound files. /// Be sure that the sound file is copied under the app bundle (e.g., `YourApp.app/Contents/Resources`), or one of the following locations: /// - `~/Library/Sounds` diff --git a/examples/api/dist/assets/index.js b/examples/api/dist/assets/index.js index d1121b86296b..2753be9951c1 100644 --- a/examples/api/dist/assets/index.js +++ b/examples/api/dist/assets/index.js @@ -1,50 +1,50 @@ -const vo=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerpolicy&&(o.referrerPolicy=l.referrerpolicy),l.crossorigin==="use-credentials"?o.credentials="include":l.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}};vo();function V(){}function Ps(e){return e()}function ns(){return Object.create(null)}function oe(e){e.forEach(Ps)}function wo(e){return typeof e=="function"}function pe(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let ti;function ko(e,t){return ti||(ti=document.createElement("a")),ti.href=t,e===ti.href}function Mo(e){return Object.keys(e).length===0}function Co(e,...t){if(e==null)return V;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Os(e,t,n){e.$$.on_destroy.push(Co(t,n))}function s(e,t){e.appendChild(t)}function h(e,t,n){e.insertBefore(t,n||null)}function p(e){e.parentNode.removeChild(e)}function yt(e,t){for(let n=0;ne.removeEventListener(t,n,i)}function ai(e){return function(t){return t.preventDefault(),e.call(this,t)}}function r(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function se(e){return e===""?null:+e}function Ao(e){return Array.from(e.childNodes)}function Z(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function q(e,t){e.value=t==null?"":t}function Ht(e,t){for(let n=0;n{si.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function ui(e){e&&e.c()}function xt(e,t,n,i){const{fragment:l,on_mount:o,on_destroy:u,after_update:d}=e.$$;l&&l.m(t,n),i||Ft(()=>{const c=o.map(Ps).filter(wo);u?u.push(...c):oe(c),e.$$.on_mount=[]}),d.forEach(Ft)}function $t(e,t){const n=e.$$;n.fragment!==null&&(oe(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Wo(e,t){e.$$.dirty[0]===-1&&(Yt.push(e),zo(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const y=v.length?v[0]:_;return f.ctx&&l(f.ctx[k],f.ctx[k]=y)&&(!f.skip_bound&&f.bound[k]&&f.bound[k](y),g&&Wo(e,k)),_}):[],f.update(),g=!0,oe(f.before_update),f.fragment=i?i(f.ctx):!1,t.target){if(t.hydrate){const k=Ao(t.target);f.fragment&&f.fragment.l(k),k.forEach(p)}else f.fragment&&f.fragment.c();t.intro&&Te(e.$$.fragment),xt(e,t.target,t.anchor,t.customElement),Is()}Qt(c)}class ye{$destroy(){$t(this,1),this.$destroy=V}$on(t,n){const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const l=i.indexOf(n);l!==-1&&i.splice(l,1)}}$set(t){this.$$set&&!Mo(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const It=[];function Hs(e,t=V){let n;const i=new Set;function l(d){if(pe(e,d)&&(e=d,n)){const c=!It.length;for(const f of i)f[1](),It.push(f,e);if(c){for(let f=0;f{i.delete(f),i.size===0&&(n(),n=null)}}return{set:l,update:o,subscribe:u}}var Do=Object.defineProperty,Me=(e,t)=>{for(var n in t)Do(e,n,{get:t[n],enumerable:!0})},Po={};Me(Po,{convertFileSrc:()=>Fs,invoke:()=>ci,transformCallback:()=>vt});function Oo(){return window.crypto.getRandomValues(new Uint32Array(1))[0]}function vt(e,t=!1){let n=Oo(),i=`_${n}`;return Object.defineProperty(window,i,{value:l=>(t&&Reflect.deleteProperty(window,i),e==null?void 0:e(l)),writable:!1,configurable:!0}),n}async function ci(e,t={}){return new Promise((n,i)=>{let l=vt(u=>{n(u),Reflect.deleteProperty(window,`_${o}`)},!0),o=vt(u=>{i(u),Reflect.deleteProperty(window,`_${l}`)},!0);window.__TAURI_IPC__({cmd:e,callback:l,error:o,...t})})}function Fs(e,t="asset"){let n=encodeURIComponent(e);return navigator.userAgent.includes("Windows")?`https://${t}.localhost/${n}`:`${t}://localhost/${n}`}async function L(e){return ci("tauri",e)}var Ro={};Me(Ro,{Child:()=>Ns,Command:()=>Yi,EventEmitter:()=>oi,open:()=>Ki});async function Io(e,t,n=[],i){return typeof n=="object"&&Object.freeze(n),L({__tauriModule:"Shell",message:{cmd:"execute",program:t,args:n,options:i,onEventFn:vt(e)}})}var oi=class{constructor(){this.eventListeners=Object.create(null)}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}on(e,t){return e in this.eventListeners?this.eventListeners[e].push(t):this.eventListeners[e]=[t],this}once(e,t){let n=(...i)=>{this.removeListener(e,n),t(...i)};return this.addListener(e,n)}off(e,t){return e in this.eventListeners&&(this.eventListeners[e]=this.eventListeners[e].filter(n=>n!==t)),this}removeAllListeners(e){return e?delete this.eventListeners[e]:this.eventListeners=Object.create(null),this}emit(e,...t){if(e in this.eventListeners){let n=this.eventListeners[e];for(let i of n)i(...t);return!0}return!1}listenerCount(e){return e in this.eventListeners?this.eventListeners[e].length:0}prependListener(e,t){return e in this.eventListeners?this.eventListeners[e].unshift(t):this.eventListeners[e]=[t],this}prependOnceListener(e,t){let n=(...i)=>{this.removeListener(e,n),t(...i)};return this.prependListener(e,n)}},Ns=class{constructor(e){this.pid=e}async write(e){return L({__tauriModule:"Shell",message:{cmd:"stdinWrite",pid:this.pid,buffer:typeof e=="string"?e:Array.from(e)}})}async kill(){return L({__tauriModule:"Shell",message:{cmd:"killChild",pid:this.pid}})}},Yi=class extends oi{constructor(e,t=[],n){super(),this.stdout=new oi,this.stderr=new oi,this.program=e,this.args=typeof t=="string"?[t]:t,this.options=n!=null?n:{}}static sidecar(e,t=[],n){let i=new Yi(e,t,n);return i.options.sidecar=!0,i}async spawn(){return Io(e=>{switch(e.event){case"Error":this.emit("error",e.payload);break;case"Terminated":this.emit("close",e.payload);break;case"Stdout":this.stdout.emit("data",e.payload);break;case"Stderr":this.stderr.emit("data",e.payload);break}},this.program,this.args,this.options).then(e=>new Ns(e))}async execute(){return new Promise((e,t)=>{this.on("error",t);let n=[],i=[];this.stdout.on("data",l=>{n.push(l)}),this.stderr.on("data",l=>{i.push(l)}),this.on("close",l=>{e({code:l.code,signal:l.signal,stdout:n.join(` +const wo=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerpolicy&&(o.referrerPolicy=l.referrerpolicy),l.crossorigin==="use-credentials"?o.credentials="include":l.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}};wo();function V(){}function Os(e){return e()}function is(){return Object.create(null)}function oe(e){e.forEach(Os)}function ko(e){return typeof e=="function"}function pe(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let ti;function Mo(e,t){return ti||(ti=document.createElement("a")),ti.href=t,e===ti.href}function Co(e){return Object.keys(e).length===0}function To(e,...t){if(e==null)return V;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Rs(e,t,n){e.$$.on_destroy.push(To(t,n))}function s(e,t){e.appendChild(t)}function h(e,t,n){e.insertBefore(t,n||null)}function p(e){e.parentNode.removeChild(e)}function yt(e,t){for(let n=0;ne.removeEventListener(t,n,i)}function ai(e){return function(t){return t.preventDefault(),e.call(this,t)}}function r(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function se(e){return e===""?null:+e}function So(e){return Array.from(e.childNodes)}function Z(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function q(e,t){e.value=t==null?"":t}function Nt(e,t){for(let n=0;n{si.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function ui(e){e&&e.c()}function $t(e,t,n,i){const{fragment:l,on_mount:o,on_destroy:u,after_update:d}=e.$$;l&&l.m(t,n),i||Ht(()=>{const c=o.map(Os).filter(ko);u?u.push(...c):oe(c),e.$$.on_mount=[]}),d.forEach(Ht)}function xt(e,t){const n=e.$$;n.fragment!==null&&(oe(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Do(e,t){e.$$.dirty[0]===-1&&(Yt.push(e),Eo(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const y=v.length?v[0]:_;return f.ctx&&l(f.ctx[k],f.ctx[k]=y)&&(!f.skip_bound&&f.bound[k]&&f.bound[k](y),g&&Do(e,k)),_}):[],f.update(),g=!0,oe(f.before_update),f.fragment=i?i(f.ctx):!1,t.target){if(t.hydrate){const k=So(t.target);f.fragment&&f.fragment.l(k),k.forEach(p)}else f.fragment&&f.fragment.c();t.intro&&Te(e.$$.fragment),$t(e,t.target,t.anchor,t.customElement),Ns()}Qt(c)}class ye{$destroy(){xt(this,1),this.$destroy=V}$on(t,n){const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const l=i.indexOf(n);l!==-1&&i.splice(l,1)}}$set(t){this.$$set&&!Co(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const It=[];function Hs(e,t=V){let n;const i=new Set;function l(d){if(pe(e,d)&&(e=d,n)){const c=!It.length;for(const f of i)f[1](),It.push(f,e);if(c){for(let f=0;f{i.delete(f),i.size===0&&(n(),n=null)}}return{set:l,update:o,subscribe:u}}var Po=Object.defineProperty,Me=(e,t)=>{for(var n in t)Po(e,n,{get:t[n],enumerable:!0})},Oo={};Me(Oo,{convertFileSrc:()=>Fs,invoke:()=>ci,transformCallback:()=>vt});function Ro(){return window.crypto.getRandomValues(new Uint32Array(1))[0]}function vt(e,t=!1){let n=Ro(),i=`_${n}`;return Object.defineProperty(window,i,{value:l=>(t&&Reflect.deleteProperty(window,i),e==null?void 0:e(l)),writable:!1,configurable:!0}),n}async function ci(e,t={}){return new Promise((n,i)=>{let l=vt(u=>{n(u),Reflect.deleteProperty(window,`_${o}`)},!0),o=vt(u=>{i(u),Reflect.deleteProperty(window,`_${l}`)},!0);window.__TAURI_IPC__({cmd:e,callback:l,error:o,...t})})}function Fs(e,t="asset"){let n=encodeURIComponent(e);return navigator.userAgent.includes("Windows")?`https://${t}.localhost/${n}`:`${t}://localhost/${n}`}async function A(e){return ci("tauri",e)}var Io={};Me(Io,{Child:()=>js,Command:()=>Ki,EventEmitter:()=>oi,open:()=>Qi});async function No(e,t,n=[],i){return typeof n=="object"&&Object.freeze(n),A({__tauriModule:"Shell",message:{cmd:"execute",program:t,args:n,options:i,onEventFn:vt(e)}})}var oi=class{constructor(){this.eventListeners=Object.create(null)}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}on(e,t){return e in this.eventListeners?this.eventListeners[e].push(t):this.eventListeners[e]=[t],this}once(e,t){let n=(...i)=>{this.removeListener(e,n),t(...i)};return this.addListener(e,n)}off(e,t){return e in this.eventListeners&&(this.eventListeners[e]=this.eventListeners[e].filter(n=>n!==t)),this}removeAllListeners(e){return e?delete this.eventListeners[e]:this.eventListeners=Object.create(null),this}emit(e,...t){if(e in this.eventListeners){let n=this.eventListeners[e];for(let i of n)i(...t);return!0}return!1}listenerCount(e){return e in this.eventListeners?this.eventListeners[e].length:0}prependListener(e,t){return e in this.eventListeners?this.eventListeners[e].unshift(t):this.eventListeners[e]=[t],this}prependOnceListener(e,t){let n=(...i)=>{this.removeListener(e,n),t(...i)};return this.prependListener(e,n)}},js=class{constructor(e){this.pid=e}async write(e){return A({__tauriModule:"Shell",message:{cmd:"stdinWrite",pid:this.pid,buffer:typeof e=="string"?e:Array.from(e)}})}async kill(){return A({__tauriModule:"Shell",message:{cmd:"killChild",pid:this.pid}})}},Ki=class extends oi{constructor(e,t=[],n){super(),this.stdout=new oi,this.stderr=new oi,this.program=e,this.args=typeof t=="string"?[t]:t,this.options=n!=null?n:{}}static sidecar(e,t=[],n){let i=new Ki(e,t,n);return i.options.sidecar=!0,i}async spawn(){return No(e=>{switch(e.event){case"Error":this.emit("error",e.payload);break;case"Terminated":this.emit("close",e.payload);break;case"Stdout":this.stdout.emit("data",e.payload);break;case"Stderr":this.stderr.emit("data",e.payload);break}},this.program,this.args,this.options).then(e=>new js(e))}async execute(){return new Promise((e,t)=>{this.on("error",t);let n=[],i=[];this.stdout.on("data",l=>{n.push(l)}),this.stderr.on("data",l=>{i.push(l)}),this.on("close",l=>{e({code:l.code,signal:l.signal,stdout:n.join(` `),stderr:i.join(` -`)})}),this.spawn().catch(t)})}};async function Ki(e,t){return L({__tauriModule:"Shell",message:{cmd:"open",path:e,with:t}})}var Ho={};Me(Ho,{TauriEvent:()=>Bs,emit:()=>_i,listen:()=>tn,once:()=>Vs});async function js(e,t){return L({__tauriModule:"Event",message:{cmd:"unlisten",event:e,eventId:t}})}async function Us(e,t,n){await L({__tauriModule:"Event",message:{cmd:"emit",event:e,windowLabel:t,payload:n}})}async function Qi(e,t,n){return L({__tauriModule:"Event",message:{cmd:"listen",event:e,windowLabel:t,handler:vt(n)}}).then(i=>async()=>js(e,i))}async function qs(e,t,n){return Qi(e,t,i=>{n(i),js(e,i.id).catch(()=>{})})}var Bs=(e=>(e.WINDOW_RESIZED="tauri://resize",e.WINDOW_MOVED="tauri://move",e.WINDOW_CLOSE_REQUESTED="tauri://close-requested",e.WINDOW_CREATED="tauri://window-created",e.WINDOW_DESTROYED="tauri://destroyed",e.WINDOW_FOCUS="tauri://focus",e.WINDOW_BLUR="tauri://blur",e.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",e.WINDOW_THEME_CHANGED="tauri://theme-changed",e.WINDOW_FILE_DROP="tauri://file-drop",e.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",e.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",e.MENU="tauri://menu",e.CHECK_UPDATE="tauri://update",e.UPDATE_AVAILABLE="tauri://update-available",e.INSTALL_UPDATE="tauri://update-install",e.STATUS_UPDATE="tauri://update-status",e.DOWNLOAD_PROGRESS="tauri://update-download-progress",e))(Bs||{});async function tn(e,t){return Qi(e,null,t)}async function Vs(e,t){return qs(e,null,t)}async function _i(e,t){return Us(e,void 0,t)}var Fo={};Me(Fo,{CloseRequestedEvent:()=>Ks,LogicalPosition:()=>Gs,LogicalSize:()=>di,PhysicalPosition:()=>ot,PhysicalSize:()=>gt,UserAttentionType:()=>Zi,WebviewWindow:()=>wt,WebviewWindowHandle:()=>Xs,WindowManager:()=>Ys,appWindow:()=>Ge,availableMonitors:()=>Uo,currentMonitor:()=>No,getAll:()=>Js,getCurrent:()=>Kt,primaryMonitor:()=>jo});var di=class{constructor(e,t){this.type="Logical",this.width=e,this.height=t}},gt=class{constructor(e,t){this.type="Physical",this.width=e,this.height=t}toLogical(e){return new di(this.width/e,this.height/e)}},Gs=class{constructor(e,t){this.type="Logical",this.x=e,this.y=t}},ot=class{constructor(e,t){this.type="Physical",this.x=e,this.y=t}toLogical(e){return new Gs(this.x/e,this.y/e)}},Zi=(e=>(e[e.Critical=1]="Critical",e[e.Informational=2]="Informational",e))(Zi||{});function Kt(){return new wt(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0})}function Js(){return window.__TAURI_METADATA__.__windows.map(e=>new wt(e.label,{skip:!0}))}var ls=["tauri://created","tauri://error"],Xs=class{constructor(e){this.label=e,this.listeners=Object.create(null)}async listen(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let n=this.listeners[e];n.splice(n.indexOf(t),1)}):Qi(e,this.label,t)}async once(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let n=this.listeners[e];n.splice(n.indexOf(t),1)}):qs(e,this.label,t)}async emit(e,t){if(ls.includes(e)){for(let n of this.listeners[e]||[])n({event:e,id:-1,windowLabel:this.label,payload:t});return Promise.resolve()}return Us(e,this.label,t)}_handleTauriEvent(e,t){return ls.includes(e)?(e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t],!0):!1}},Ys=class extends Xs{async scaleFactor(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"scaleFactor"}}}})}async innerPosition(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerPosition"}}}}).then(({x:e,y:t})=>new ot(e,t))}async outerPosition(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerPosition"}}}}).then(({x:e,y:t})=>new ot(e,t))}async innerSize(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerSize"}}}}).then(({width:e,height:t})=>new gt(e,t))}async outerSize(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerSize"}}}}).then(({width:e,height:t})=>new gt(e,t))}async isFullscreen(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFullscreen"}}}})}async isMinimized(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimized"}}}})}async isMaximized(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximized"}}}})}async isDecorated(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isDecorated"}}}})}async isResizable(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isResizable"}}}})}async isMaximizable(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximizable"}}}})}async isMinimizable(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimizable"}}}})}async isClosable(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isClosable"}}}})}async isVisible(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isVisible"}}}})}async title(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"title"}}}})}async theme(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"theme"}}}})}async center(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"center"}}}})}async requestUserAttention(e){let t=null;return e&&(e===1?t={type:"Critical"}:t={type:"Informational"}),L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"requestUserAttention",payload:t}}}})}async setResizable(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setResizable",payload:e}}}})}async setMaximizable(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaximizable",payload:e}}}})}async setMinimizable(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinimizable",payload:e}}}})}async setClosable(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setClosable",payload:e}}}})}async setTitle(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setTitle",payload:e}}}})}async maximize(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"maximize"}}}})}async unmaximize(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unmaximize"}}}})}async toggleMaximize(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"toggleMaximize"}}}})}async minimize(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"minimize"}}}})}async unminimize(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unminimize"}}}})}async show(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"show"}}}})}async hide(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"hide"}}}})}async close(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"close"}}}})}async setDecorations(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setDecorations",payload:e}}}})}async setAlwaysOnTop(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setAlwaysOnTop",payload:e}}}})}async setContentProtected(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setContentProtected",payload:e}}}})}async setSize(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSize",payload:{type:e.type,data:{width:e.width,height:e.height}}}}}})}async setMinSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setMaxSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaxSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setFullscreen(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFullscreen",payload:e}}}})}async setFocus(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFocus"}}}})}async setIcon(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIcon",payload:{icon:typeof e=="string"?e:Array.from(e)}}}}})}async setSkipTaskbar(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSkipTaskbar",payload:e}}}})}async setCursorGrab(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorGrab",payload:e}}}})}async setCursorVisible(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorVisible",payload:e}}}})}async setCursorIcon(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorIcon",payload:e}}}})}async setCursorPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setIgnoreCursorEvents(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIgnoreCursorEvents",payload:e}}}})}async startDragging(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"startDragging"}}}})}async onResized(e){return this.listen("tauri://resize",t=>{t.payload=Zs(t.payload),e(t)})}async onMoved(e){return this.listen("tauri://move",t=>{t.payload=Qs(t.payload),e(t)})}async onCloseRequested(e){return this.listen("tauri://close-requested",t=>{let n=new Ks(t);Promise.resolve(e(n)).then(()=>{if(!n.isPreventDefault())return this.close()})})}async onFocusChanged(e){let t=await this.listen("tauri://focus",i=>{e({...i,payload:!0})}),n=await this.listen("tauri://blur",i=>{e({...i,payload:!1})});return()=>{t(),n()}}async onScaleChanged(e){return this.listen("tauri://scale-change",e)}async onMenuClicked(e){return this.listen("tauri://menu",e)}async onFileDropEvent(e){let t=await this.listen("tauri://file-drop",l=>{e({...l,payload:{type:"drop",paths:l.payload}})}),n=await this.listen("tauri://file-drop-hover",l=>{e({...l,payload:{type:"hover",paths:l.payload}})}),i=await this.listen("tauri://file-drop-cancelled",l=>{e({...l,payload:{type:"cancel"}})});return()=>{t(),n(),i()}}async onThemeChanged(e){return this.listen("tauri://theme-changed",e)}},Ks=class{constructor(e){this._preventDefault=!1,this.event=e.event,this.windowLabel=e.windowLabel,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}},wt=class extends Ys{constructor(e,t={}){super(e),t!=null&&t.skip||L({__tauriModule:"Window",message:{cmd:"createWebview",data:{options:{label:e,...t}}}}).then(async()=>this.emit("tauri://created")).catch(async n=>this.emit("tauri://error",n))}static getByLabel(e){return Js().some(t=>t.label===e)?new wt(e,{skip:!0}):null}},Ge;"__TAURI_METADATA__"in window?Ge=new wt(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0}):(console.warn(`Could not find "window.__TAURI_METADATA__". The "appWindow" value will reference the "main" window label. -Note that this is not an issue if running this frontend on a browser instead of a Tauri window.`),Ge=new wt("main",{skip:!0}));function xi(e){return e===null?null:{name:e.name,scaleFactor:e.scaleFactor,position:Qs(e.position),size:Zs(e.size)}}function Qs(e){return new ot(e.x,e.y)}function Zs(e){return new gt(e.width,e.height)}async function No(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"currentMonitor"}}}}).then(xi)}async function jo(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"primaryMonitor"}}}}).then(xi)}async function Uo(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"availableMonitors"}}}}).then(e=>e.map(xi))}function qo(){return navigator.appVersion.includes("Win")}var Bo={};Me(Bo,{EOL:()=>Vo,arch:()=>Xo,locale:()=>Ko,platform:()=>xs,tempdir:()=>Yo,type:()=>Jo,version:()=>Go});var Vo=qo()?`\r +`)})}),this.spawn().catch(t)})}};async function Qi(e,t){return A({__tauriModule:"Shell",message:{cmd:"open",path:e,with:t}})}var Ho={};Me(Ho,{TauriEvent:()=>Vs,emit:()=>_i,listen:()=>tn,once:()=>Gs});async function Us(e,t){return A({__tauriModule:"Event",message:{cmd:"unlisten",event:e,eventId:t}})}async function qs(e,t,n){await A({__tauriModule:"Event",message:{cmd:"emit",event:e,windowLabel:t,payload:n}})}async function Zi(e,t,n){return A({__tauriModule:"Event",message:{cmd:"listen",event:e,windowLabel:t,handler:vt(n)}}).then(i=>async()=>Us(e,i))}async function Bs(e,t,n){return Zi(e,t,i=>{n(i),Us(e,i.id).catch(()=>{})})}var Vs=(e=>(e.WINDOW_RESIZED="tauri://resize",e.WINDOW_MOVED="tauri://move",e.WINDOW_CLOSE_REQUESTED="tauri://close-requested",e.WINDOW_CREATED="tauri://window-created",e.WINDOW_DESTROYED="tauri://destroyed",e.WINDOW_FOCUS="tauri://focus",e.WINDOW_BLUR="tauri://blur",e.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",e.WINDOW_THEME_CHANGED="tauri://theme-changed",e.WINDOW_FILE_DROP="tauri://file-drop",e.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",e.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",e.MENU="tauri://menu",e.CHECK_UPDATE="tauri://update",e.UPDATE_AVAILABLE="tauri://update-available",e.INSTALL_UPDATE="tauri://update-install",e.STATUS_UPDATE="tauri://update-status",e.DOWNLOAD_PROGRESS="tauri://update-download-progress",e))(Vs||{});async function tn(e,t){return Zi(e,null,t)}async function Gs(e,t){return Bs(e,null,t)}async function _i(e,t){return qs(e,void 0,t)}var Fo={};Me(Fo,{CloseRequestedEvent:()=>Ks,LogicalPosition:()=>Js,LogicalSize:()=>di,PhysicalPosition:()=>ot,PhysicalSize:()=>gt,UserAttentionType:()=>$i,WebviewWindow:()=>wt,WebviewWindowHandle:()=>Xs,WindowManager:()=>Ys,appWindow:()=>Ge,availableMonitors:()=>qo,currentMonitor:()=>jo,getAll:()=>Ji,getCurrent:()=>Kt,primaryMonitor:()=>Uo});var di=class{constructor(e,t){this.type="Logical",this.width=e,this.height=t}},gt=class{constructor(e,t){this.type="Physical",this.width=e,this.height=t}toLogical(e){return new di(this.width/e,this.height/e)}},Js=class{constructor(e,t){this.type="Logical",this.x=e,this.y=t}},ot=class{constructor(e,t){this.type="Physical",this.x=e,this.y=t}toLogical(e){return new Js(this.x/e,this.y/e)}},$i=(e=>(e[e.Critical=1]="Critical",e[e.Informational=2]="Informational",e))($i||{});function Kt(){return new wt(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0})}function Ji(){return window.__TAURI_METADATA__.__windows.map(e=>new wt(e.label,{skip:!0}))}var ss=["tauri://created","tauri://error"],Xs=class{constructor(e){this.label=e,this.listeners=Object.create(null)}async listen(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let n=this.listeners[e];n.splice(n.indexOf(t),1)}):Zi(e,this.label,t)}async once(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let n=this.listeners[e];n.splice(n.indexOf(t),1)}):Bs(e,this.label,t)}async emit(e,t){if(ss.includes(e)){for(let n of this.listeners[e]||[])n({event:e,id:-1,windowLabel:this.label,payload:t});return Promise.resolve()}return qs(e,this.label,t)}_handleTauriEvent(e,t){return ss.includes(e)?(e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t],!0):!1}},Ys=class extends Xs{async scaleFactor(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"scaleFactor"}}}})}async innerPosition(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerPosition"}}}}).then(({x:e,y:t})=>new ot(e,t))}async outerPosition(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerPosition"}}}}).then(({x:e,y:t})=>new ot(e,t))}async innerSize(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerSize"}}}}).then(({width:e,height:t})=>new gt(e,t))}async outerSize(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerSize"}}}}).then(({width:e,height:t})=>new gt(e,t))}async isFullscreen(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFullscreen"}}}})}async isMinimized(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimized"}}}})}async isMaximized(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximized"}}}})}async isFocused(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFocused"}}}})}async isDecorated(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isDecorated"}}}})}async isResizable(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isResizable"}}}})}async isMaximizable(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximizable"}}}})}async isMinimizable(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimizable"}}}})}async isClosable(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isClosable"}}}})}async isVisible(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isVisible"}}}})}async title(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"title"}}}})}async theme(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"theme"}}}})}async center(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"center"}}}})}async requestUserAttention(e){let t=null;return e&&(e===1?t={type:"Critical"}:t={type:"Informational"}),A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"requestUserAttention",payload:t}}}})}async setResizable(e){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setResizable",payload:e}}}})}async setMaximizable(e){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaximizable",payload:e}}}})}async setMinimizable(e){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinimizable",payload:e}}}})}async setClosable(e){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setClosable",payload:e}}}})}async setTitle(e){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setTitle",payload:e}}}})}async maximize(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"maximize"}}}})}async unmaximize(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unmaximize"}}}})}async toggleMaximize(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"toggleMaximize"}}}})}async minimize(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"minimize"}}}})}async unminimize(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unminimize"}}}})}async show(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"show"}}}})}async hide(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"hide"}}}})}async close(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"close"}}}})}async setDecorations(e){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setDecorations",payload:e}}}})}async setAlwaysOnTop(e){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setAlwaysOnTop",payload:e}}}})}async setContentProtected(e){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setContentProtected",payload:e}}}})}async setSize(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSize",payload:{type:e.type,data:{width:e.width,height:e.height}}}}}})}async setMinSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setMaxSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaxSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setFullscreen(e){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFullscreen",payload:e}}}})}async setFocus(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFocus"}}}})}async setIcon(e){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIcon",payload:{icon:typeof e=="string"?e:Array.from(e)}}}}})}async setSkipTaskbar(e){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSkipTaskbar",payload:e}}}})}async setCursorGrab(e){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorGrab",payload:e}}}})}async setCursorVisible(e){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorVisible",payload:e}}}})}async setCursorIcon(e){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorIcon",payload:e}}}})}async setCursorPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setIgnoreCursorEvents(e){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIgnoreCursorEvents",payload:e}}}})}async startDragging(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"startDragging"}}}})}async onResized(e){return this.listen("tauri://resize",t=>{t.payload=Zs(t.payload),e(t)})}async onMoved(e){return this.listen("tauri://move",t=>{t.payload=Qs(t.payload),e(t)})}async onCloseRequested(e){return this.listen("tauri://close-requested",t=>{let n=new Ks(t);Promise.resolve(e(n)).then(()=>{if(!n.isPreventDefault())return this.close()})})}async onFocusChanged(e){let t=await this.listen("tauri://focus",i=>{e({...i,payload:!0})}),n=await this.listen("tauri://blur",i=>{e({...i,payload:!1})});return()=>{t(),n()}}async onScaleChanged(e){return this.listen("tauri://scale-change",e)}async onMenuClicked(e){return this.listen("tauri://menu",e)}async onFileDropEvent(e){let t=await this.listen("tauri://file-drop",l=>{e({...l,payload:{type:"drop",paths:l.payload}})}),n=await this.listen("tauri://file-drop-hover",l=>{e({...l,payload:{type:"hover",paths:l.payload}})}),i=await this.listen("tauri://file-drop-cancelled",l=>{e({...l,payload:{type:"cancel"}})});return()=>{t(),n(),i()}}async onThemeChanged(e){return this.listen("tauri://theme-changed",e)}},Ks=class{constructor(e){this._preventDefault=!1,this.event=e.event,this.windowLabel=e.windowLabel,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}},wt=class extends Ys{constructor(e,t={}){super(e),t!=null&&t.skip||A({__tauriModule:"Window",message:{cmd:"createWebview",data:{options:{label:e,...t}}}}).then(async()=>this.emit("tauri://created")).catch(async n=>this.emit("tauri://error",n))}static getByLabel(e){return Ji().some(t=>t.label===e)?new wt(e,{skip:!0}):null}static async getFocusedWindow(){for(let e of Ji())if(await e.isFocused())return e;return null}},Ge;"__TAURI_METADATA__"in window?Ge=new wt(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0}):(console.warn(`Could not find "window.__TAURI_METADATA__". The "appWindow" value will reference the "main" window label. +Note that this is not an issue if running this frontend on a browser instead of a Tauri window.`),Ge=new wt("main",{skip:!0}));function xi(e){return e===null?null:{name:e.name,scaleFactor:e.scaleFactor,position:Qs(e.position),size:Zs(e.size)}}function Qs(e){return new ot(e.x,e.y)}function Zs(e){return new gt(e.width,e.height)}async function jo(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"currentMonitor"}}}}).then(xi)}async function Uo(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"primaryMonitor"}}}}).then(xi)}async function qo(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"availableMonitors"}}}}).then(e=>e.map(xi))}function Bo(){return navigator.appVersion.includes("Win")}var Vo={};Me(Vo,{EOL:()=>Go,arch:()=>Xo,locale:()=>Ko,platform:()=>$s,tempdir:()=>Yo,type:()=>xs,version:()=>Jo});var Go=Bo()?`\r `:` -`;async function xs(){return L({__tauriModule:"Os",message:{cmd:"platform"}})}async function Go(){return L({__tauriModule:"Os",message:{cmd:"version"}})}async function Jo(){return L({__tauriModule:"Os",message:{cmd:"osType"}})}async function Xo(){return L({__tauriModule:"Os",message:{cmd:"arch"}})}async function Yo(){return L({__tauriModule:"Os",message:{cmd:"tempdir"}})}async function Ko(){return L({__tauriModule:"Os",message:{cmd:"locale"}})}var Qo={};Me(Qo,{getName:()=>eo,getTauriVersion:()=>to,getVersion:()=>$s,hide:()=>io,show:()=>no});async function $s(){return L({__tauriModule:"App",message:{cmd:"getAppVersion"}})}async function eo(){return L({__tauriModule:"App",message:{cmd:"getAppName"}})}async function to(){return L({__tauriModule:"App",message:{cmd:"getTauriVersion"}})}async function no(){return L({__tauriModule:"App",message:{cmd:"show"}})}async function io(){return L({__tauriModule:"App",message:{cmd:"hide"}})}var Zo={};Me(Zo,{exit:()=>lo,relaunch:()=>$i});async function lo(e=0){return L({__tauriModule:"Process",message:{cmd:"exit",exitCode:e}})}async function $i(){return L({__tauriModule:"Process",message:{cmd:"relaunch"}})}function xo(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,A,P,I,O,j,W,C,T,E,M,N;return{c(){t=a("p"),t.innerHTML=`This is a demo of Tauri's API capabilities using the @tauri-apps/api package. It's used as the main validation app, serving as the test bed of our +`;async function $s(){return A({__tauriModule:"Os",message:{cmd:"platform"}})}async function Jo(){return A({__tauriModule:"Os",message:{cmd:"version"}})}async function xs(){return A({__tauriModule:"Os",message:{cmd:"osType"}})}async function Xo(){return A({__tauriModule:"Os",message:{cmd:"arch"}})}async function Yo(){return A({__tauriModule:"Os",message:{cmd:"tempdir"}})}async function Ko(){return A({__tauriModule:"Os",message:{cmd:"locale"}})}var Qo={};Me(Qo,{getName:()=>to,getTauriVersion:()=>no,getVersion:()=>eo,hide:()=>lo,show:()=>io});async function eo(){return A({__tauriModule:"App",message:{cmd:"getAppVersion"}})}async function to(){return A({__tauriModule:"App",message:{cmd:"getAppName"}})}async function no(){return A({__tauriModule:"App",message:{cmd:"getTauriVersion"}})}async function io(){return A({__tauriModule:"App",message:{cmd:"show"}})}async function lo(){return A({__tauriModule:"App",message:{cmd:"hide"}})}var Zo={};Me(Zo,{exit:()=>so,relaunch:()=>el});async function so(e=0){return A({__tauriModule:"Process",message:{cmd:"exit",exitCode:e}})}async function el(){return A({__tauriModule:"Process",message:{cmd:"relaunch"}})}function $o(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,S,P,I,O,j,W,C,T,E,M,F;return{c(){t=a("p"),t.innerHTML=`This is a demo of Tauri's API capabilities using the @tauri-apps/api package. It's used as the main validation app, serving as the test bed of our development process. In the future, this app will be used on Tauri's integration tests.`,n=m(),i=a("br"),l=m(),o=a("br"),u=m(),d=a("pre"),c=z("App name: "),f=a("code"),g=z(e[2]),k=z(` App version: `),_=a("code"),v=z(e[0]),y=z(` -Tauri version: `),b=a("code"),A=z(e[1]),P=z(` -`),I=m(),O=a("br"),j=m(),W=a("div"),C=a("button"),C.textContent="Close application",T=m(),E=a("button"),E.textContent="Relaunch application",r(C,"class","btn"),r(E,"class","btn"),r(W,"class","flex flex-wrap gap-1 shadow-")},m(U,J){h(U,t,J),h(U,n,J),h(U,i,J),h(U,l,J),h(U,o,J),h(U,u,J),h(U,d,J),s(d,c),s(d,f),s(f,g),s(d,k),s(d,_),s(_,v),s(d,y),s(d,b),s(b,A),s(d,P),h(U,I,J),h(U,O,J),h(U,j,J),h(U,W,J),s(W,C),s(W,T),s(W,E),M||(N=[S(C,"click",e[3]),S(E,"click",e[4])],M=!0)},p(U,[J]){J&4&&Z(g,U[2]),J&1&&Z(v,U[0]),J&2&&Z(A,U[1])},i:V,o:V,d(U){U&&p(t),U&&p(n),U&&p(i),U&&p(l),U&&p(o),U&&p(u),U&&p(d),U&&p(I),U&&p(O),U&&p(j),U&&p(W),M=!1,oe(N)}}}function $o(e,t,n){let i="0.0.0",l="0.0.0",o="Unknown";eo().then(c=>{n(2,o=c)}),$s().then(c=>{n(0,i=c)}),to().then(c=>{n(1,l=c)});async function u(){await lo()}async function d(){await $i()}return[i,l,o,u,d]}class ea extends ye{constructor(t){super(),ge(this,t,$o,xo,pe,{})}}var ta={};Me(ta,{getMatches:()=>so});async function so(){return L({__tauriModule:"Cli",message:{cmd:"cliMatches"}})}function na(e){let t,n,i,l,o,u,d,c,f,g,k,_,v;return{c(){t=a("p"),t.innerHTML=`This binary can be run from the terminal and takes the following arguments: +Tauri version: `),b=a("code"),S=z(e[1]),P=z(` +`),I=m(),O=a("br"),j=m(),W=a("div"),C=a("button"),C.textContent="Close application",T=m(),E=a("button"),E.textContent="Relaunch application",r(C,"class","btn"),r(E,"class","btn"),r(W,"class","flex flex-wrap gap-1 shadow-")},m(U,J){h(U,t,J),h(U,n,J),h(U,i,J),h(U,l,J),h(U,o,J),h(U,u,J),h(U,d,J),s(d,c),s(d,f),s(f,g),s(d,k),s(d,_),s(_,v),s(d,y),s(d,b),s(b,S),s(d,P),h(U,I,J),h(U,O,J),h(U,j,J),h(U,W,J),s(W,C),s(W,T),s(W,E),M||(F=[L(C,"click",e[3]),L(E,"click",e[4])],M=!0)},p(U,[J]){J&4&&Z(g,U[2]),J&1&&Z(v,U[0]),J&2&&Z(S,U[1])},i:V,o:V,d(U){U&&p(t),U&&p(n),U&&p(i),U&&p(l),U&&p(o),U&&p(u),U&&p(d),U&&p(I),U&&p(O),U&&p(j),U&&p(W),M=!1,oe(F)}}}function xo(e,t,n){let i="0.0.0",l="0.0.0",o="Unknown";to().then(c=>{n(2,o=c)}),eo().then(c=>{n(0,i=c)}),no().then(c=>{n(1,l=c)});async function u(){await so()}async function d(){await el()}return[i,l,o,u,d]}class ea extends ye{constructor(t){super(),ge(this,t,xo,$o,pe,{})}}var ta={};Me(ta,{getMatches:()=>oo});async function oo(){return A({__tauriModule:"Cli",message:{cmd:"cliMatches"}})}function na(e){let t,n,i,l,o,u,d,c,f,g,k,_,v;return{c(){t=a("p"),t.innerHTML=`This binary can be run from the terminal and takes the following arguments:
  --config <PATH>
   --theme <light|dark|system>
   --verbose
- Additionally, it has a update --background subcommand.`,n=m(),i=a("br"),l=m(),o=a("div"),o.textContent="Note that the arguments are only parsed, not implemented.",u=m(),d=a("br"),c=m(),f=a("br"),g=m(),k=a("button"),k.textContent="Get matches",r(o,"class","note"),r(k,"class","btn"),r(k,"id","cli-matches")},m(y,b){h(y,t,b),h(y,n,b),h(y,i,b),h(y,l,b),h(y,o,b),h(y,u,b),h(y,d,b),h(y,c,b),h(y,f,b),h(y,g,b),h(y,k,b),_||(v=S(k,"click",e[0]),_=!0)},p:V,i:V,o:V,d(y){y&&p(t),y&&p(n),y&&p(i),y&&p(l),y&&p(o),y&&p(u),y&&p(d),y&&p(c),y&&p(f),y&&p(g),y&&p(k),_=!1,v()}}}function ia(e,t,n){let{onMessage:i}=t;function l(){so().then(i).catch(i)}return e.$$set=o=>{"onMessage"in o&&n(1,i=o.onMessage)},[l,i]}class la extends ye{constructor(t){super(),ge(this,t,ia,na,pe,{onMessage:1})}}function sa(e){let t,n,i,l,o,u,d,c;return{c(){t=a("div"),n=a("button"),n.textContent="Call Log API",i=m(),l=a("button"),l.textContent="Call Request (async) API",o=m(),u=a("button"),u.textContent="Send event to Rust",r(n,"class","btn"),r(n,"id","log"),r(l,"class","btn"),r(l,"id","request"),r(u,"class","btn"),r(u,"id","event")},m(f,g){h(f,t,g),s(t,n),s(t,i),s(t,l),s(t,o),s(t,u),d||(c=[S(n,"click",e[0]),S(l,"click",e[1]),S(u,"click",e[2])],d=!0)},p:V,i:V,o:V,d(f){f&&p(t),d=!1,oe(c)}}}function oa(e,t,n){let{onMessage:i}=t,l;_t(async()=>{l=await tn("rust-event",i)}),Xi(()=>{l&&l()});function o(){ci("log_operation",{event:"tauri-click",payload:"this payload is optional because we used Option in Rust"})}function u(){ci("perform_request",{endpoint:"dummy endpoint arg",body:{id:5,name:"test"}}).then(i).catch(i)}function d(){_i("js-event","this is the payload string")}return e.$$set=c=>{"onMessage"in c&&n(3,i=c.onMessage)},[o,u,d,i]}class aa extends ye{constructor(t){super(),ge(this,t,oa,sa,pe,{onMessage:3})}}var ra={};Me(ra,{ask:()=>ao,confirm:()=>ca,message:()=>ua,open:()=>el,save:()=>oo});async function el(e={}){return typeof e=="object"&&Object.freeze(e),L({__tauriModule:"Dialog",message:{cmd:"openDialog",options:e}})}async function oo(e={}){return typeof e=="object"&&Object.freeze(e),L({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:e}})}async function ua(e,t){var i,l;let n=typeof t=="string"?{title:t}:t;return L({__tauriModule:"Dialog",message:{cmd:"messageDialog",message:e.toString(),title:(i=n==null?void 0:n.title)==null?void 0:i.toString(),type:n==null?void 0:n.type,buttonLabel:(l=n==null?void 0:n.okLabel)==null?void 0:l.toString()}})}async function ao(e,t){var i,l,o,u,d;let n=typeof t=="string"?{title:t}:t;return L({__tauriModule:"Dialog",message:{cmd:"askDialog",message:e.toString(),title:(i=n==null?void 0:n.title)==null?void 0:i.toString(),type:n==null?void 0:n.type,buttonLabels:[(o=(l=n==null?void 0:n.okLabel)==null?void 0:l.toString())!=null?o:"Yes",(d=(u=n==null?void 0:n.cancelLabel)==null?void 0:u.toString())!=null?d:"No"]}})}async function ca(e,t){var i,l,o,u,d;let n=typeof t=="string"?{title:t}:t;return L({__tauriModule:"Dialog",message:{cmd:"confirmDialog",message:e.toString(),title:(i=n==null?void 0:n.title)==null?void 0:i.toString(),type:n==null?void 0:n.type,buttonLabels:[(o=(l=n==null?void 0:n.okLabel)==null?void 0:l.toString())!=null?o:"Ok",(d=(u=n==null?void 0:n.cancelLabel)==null?void 0:u.toString())!=null?d:"Cancel"]}})}var da={};Me(da,{BaseDirectory:()=>en,Dir:()=>en,copyFile:()=>_a,createDir:()=>ma,exists:()=>ya,readBinaryFile:()=>tl,readDir:()=>ro,readTextFile:()=>fa,removeDir:()=>ha,removeFile:()=>ba,renameFile:()=>ga,writeBinaryFile:()=>pa,writeFile:()=>Ji,writeTextFile:()=>Ji});var en=(e=>(e[e.Audio=1]="Audio",e[e.Cache=2]="Cache",e[e.Config=3]="Config",e[e.Data=4]="Data",e[e.LocalData=5]="LocalData",e[e.Desktop=6]="Desktop",e[e.Document=7]="Document",e[e.Download=8]="Download",e[e.Executable=9]="Executable",e[e.Font=10]="Font",e[e.Home=11]="Home",e[e.Picture=12]="Picture",e[e.Public=13]="Public",e[e.Runtime=14]="Runtime",e[e.Template=15]="Template",e[e.Video=16]="Video",e[e.Resource=17]="Resource",e[e.App=18]="App",e[e.Log=19]="Log",e[e.Temp=20]="Temp",e[e.AppConfig=21]="AppConfig",e[e.AppData=22]="AppData",e[e.AppLocalData=23]="AppLocalData",e[e.AppCache=24]="AppCache",e[e.AppLog=25]="AppLog",e))(en||{});async function fa(e,t={}){return L({__tauriModule:"Fs",message:{cmd:"readTextFile",path:e,options:t}})}async function tl(e,t={}){let n=await L({__tauriModule:"Fs",message:{cmd:"readFile",path:e,options:t}});return Uint8Array.from(n)}async function Ji(e,t,n){typeof n=="object"&&Object.freeze(n),typeof e=="object"&&Object.freeze(e);let i={path:"",contents:""},l=n;return typeof e=="string"?i.path=e:(i.path=e.path,i.contents=e.contents),typeof t=="string"?i.contents=t!=null?t:"":l=t,L({__tauriModule:"Fs",message:{cmd:"writeFile",path:i.path,contents:Array.from(new TextEncoder().encode(i.contents)),options:l}})}async function pa(e,t,n){typeof n=="object"&&Object.freeze(n),typeof e=="object"&&Object.freeze(e);let i={path:"",contents:[]},l=n;return typeof e=="string"?i.path=e:(i.path=e.path,i.contents=e.contents),t&&"dir"in t?l=t:typeof e=="string"&&(i.contents=t!=null?t:[]),L({__tauriModule:"Fs",message:{cmd:"writeFile",path:i.path,contents:Array.from(i.contents instanceof ArrayBuffer?new Uint8Array(i.contents):i.contents),options:l}})}async function ro(e,t={}){return L({__tauriModule:"Fs",message:{cmd:"readDir",path:e,options:t}})}async function ma(e,t={}){return L({__tauriModule:"Fs",message:{cmd:"createDir",path:e,options:t}})}async function ha(e,t={}){return L({__tauriModule:"Fs",message:{cmd:"removeDir",path:e,options:t}})}async function _a(e,t,n={}){return L({__tauriModule:"Fs",message:{cmd:"copyFile",source:e,destination:t,options:n}})}async function ba(e,t={}){return L({__tauriModule:"Fs",message:{cmd:"removeFile",path:e,options:t}})}async function ga(e,t,n={}){return L({__tauriModule:"Fs",message:{cmd:"renameFile",oldPath:e,newPath:t,options:n}})}async function ya(e,t={}){return L({__tauriModule:"Fs",message:{cmd:"exists",path:e,options:t}})}function va(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,A,P,I,O,j,W,C,T,E;return{c(){t=a("div"),n=a("input"),i=m(),l=a("input"),o=m(),u=a("br"),d=m(),c=a("div"),f=a("input"),g=m(),k=a("label"),k.textContent="Multiple",_=m(),v=a("div"),y=a("input"),b=m(),A=a("label"),A.textContent="Directory",P=m(),I=a("br"),O=m(),j=a("button"),j.textContent="Open dialog",W=m(),C=a("button"),C.textContent="Open save dialog",r(n,"class","input"),r(n,"id","dialog-default-path"),r(n,"placeholder","Default path"),r(l,"class","input"),r(l,"id","dialog-filter"),r(l,"placeholder","Extensions filter, comma-separated"),r(t,"class","flex gap-2 children:grow"),r(f,"type","checkbox"),r(f,"id","dialog-multiple"),r(k,"for","dialog-multiple"),r(y,"type","checkbox"),r(y,"id","dialog-directory"),r(A,"for","dialog-directory"),r(j,"class","btn"),r(j,"id","open-dialog"),r(C,"class","btn"),r(C,"id","save-dialog")},m(M,N){h(M,t,N),s(t,n),q(n,e[0]),s(t,i),s(t,l),q(l,e[1]),h(M,o,N),h(M,u,N),h(M,d,N),h(M,c,N),s(c,f),f.checked=e[2],s(c,g),s(c,k),h(M,_,N),h(M,v,N),s(v,y),y.checked=e[3],s(v,b),s(v,A),h(M,P,N),h(M,I,N),h(M,O,N),h(M,j,N),h(M,W,N),h(M,C,N),T||(E=[S(n,"input",e[8]),S(l,"input",e[9]),S(f,"change",e[10]),S(y,"change",e[11]),S(j,"click",e[4]),S(C,"click",e[5])],T=!0)},p(M,[N]){N&1&&n.value!==M[0]&&q(n,M[0]),N&2&&l.value!==M[1]&&q(l,M[1]),N&4&&(f.checked=M[2]),N&8&&(y.checked=M[3])},i:V,o:V,d(M){M&&p(t),M&&p(o),M&&p(u),M&&p(d),M&&p(c),M&&p(_),M&&p(v),M&&p(P),M&&p(I),M&&p(O),M&&p(j),M&&p(W),M&&p(C),T=!1,oe(E)}}}function wa(e,t){var n=new Blob([e],{type:"application/octet-binary"}),i=new FileReader;i.onload=function(l){var o=l.target.result;t(o.substr(o.indexOf(",")+1))},i.readAsDataURL(n)}function ka(e,t,n){let{onMessage:i}=t,{insecureRenderHtml:l}=t,o=null,u=null,d=!1,c=!1;function f(){el({title:"My wonderful open dialog",defaultPath:o,filters:u?[{name:"Tauri Example",extensions:u.split(",").map(b=>b.trim())}]:[],multiple:d,directory:c}).then(function(b){if(Array.isArray(b))i(b);else{var A=b,P=A.match(/\S+\.\S+$/g);tl(A).then(function(I){P&&(A.includes(".png")||A.includes(".jpg"))?wa(new Uint8Array(I),function(O){var j="data:image/png;base64,"+O;l('')}):i(b)}).catch(i(b))}}).catch(i)}function g(){oo({title:"My wonderful save dialog",defaultPath:o,filters:u?[{name:"Tauri Example",extensions:u.split(",").map(b=>b.trim())}]:[]}).then(i).catch(i)}function k(){o=this.value,n(0,o)}function _(){u=this.value,n(1,u)}function v(){d=this.checked,n(2,d)}function y(){c=this.checked,n(3,c)}return e.$$set=b=>{"onMessage"in b&&n(6,i=b.onMessage),"insecureRenderHtml"in b&&n(7,l=b.insecureRenderHtml)},[o,u,d,c,f,g,i,l,k,_,v,y]}class Ma extends ye{constructor(t){super(),ge(this,t,ka,va,pe,{onMessage:6,insecureRenderHtml:7})}}function ss(e,t,n){const i=e.slice();return i[9]=t[n],i}function os(e){let t,n=e[9][0]+"",i,l;return{c(){t=a("option"),i=z(n),t.__value=l=e[9][1],t.value=t.__value},m(o,u){h(o,t,u),s(t,i)},p:V,d(o){o&&p(t)}}}function Ca(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,A,P,I,O,j=e[2],W=[];for(let C=0;CisNaN(parseInt(_))).map(_=>[_,en[_]]);function c(){const _=o.match(/\S+\.\S+$/g),v={dir:as()};(_?tl(o,v):ro(o,v)).then(function(b){if(_)if(o.includes(".png")||o.includes(".jpg"))Ta(new Uint8Array(b),function(A){const P="data:image/png;base64,"+A;l('')});else{const A=String.fromCharCode.apply(null,b);l(''),setTimeout(()=>{const P=document.getElementById("file-response");P.value=A,document.getElementById("file-save").addEventListener("click",function(){Ji(o,P.value,{dir:as()}).catch(i)})})}else i(b)}).catch(i)}function f(){n(1,u.src=Fs(o),u)}function g(){o=this.value,n(0,o)}function k(_){ri[_?"unshift":"push"](()=>{u=_,n(1,u)})}return e.$$set=_=>{"onMessage"in _&&n(5,i=_.onMessage),"insecureRenderHtml"in _&&n(6,l=_.insecureRenderHtml)},[o,u,d,c,f,i,l,g,k]}class La extends ye{constructor(t){super(),ge(this,t,Aa,Ca,pe,{onMessage:5,insecureRenderHtml:6})}}var Sa={};Me(Sa,{Body:()=>at,Client:()=>co,Response:()=>uo,ResponseType:()=>nl,fetch:()=>za,getClient:()=>fi});var nl=(e=>(e[e.JSON=1]="JSON",e[e.Text=2]="Text",e[e.Binary=3]="Binary",e))(nl||{}),at=class{constructor(e,t){this.type=e,this.payload=t}static form(e){let t={},n=(i,l)=>{if(l!==null){let o;typeof l=="string"?o=l:l instanceof Uint8Array||Array.isArray(l)?o=Array.from(l):l instanceof File?o={file:l.name,mime:l.type,fileName:l.name}:typeof l.file=="string"?o={file:l.file,mime:l.mime,fileName:l.fileName}:o={file:Array.from(l.file),mime:l.mime,fileName:l.fileName},t[String(i)]=o}};if(e instanceof FormData)for(let[i,l]of e)n(i,l);else for(let[i,l]of Object.entries(e))n(i,l);return new at("Form",t)}static json(e){return new at("Json",e)}static text(e){return new at("Text",e)}static bytes(e){return new at("Bytes",Array.from(e instanceof ArrayBuffer?new Uint8Array(e):e))}},uo=class{constructor(e){this.url=e.url,this.status=e.status,this.ok=this.status>=200&&this.status<300,this.headers=e.headers,this.rawHeaders=e.rawHeaders,this.data=e.data}},co=class{constructor(e){this.id=e}async drop(){return L({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})}async request(e){let t=!e.responseType||e.responseType===1;return t&&(e.responseType=2),L({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:e}}).then(n=>{let i=new uo(n);if(t){try{i.data=JSON.parse(i.data)}catch(l){if(i.ok&&i.data==="")i.data={};else if(i.ok)throw Error(`Failed to parse response \`${i.data}\` as JSON: ${l}; - try setting the \`responseType\` option to \`ResponseType.Text\` or \`ResponseType.Binary\` if the API does not return a JSON response.`)}return i}return i})}async get(e,t){return this.request({method:"GET",url:e,...t})}async post(e,t,n){return this.request({method:"POST",url:e,body:t,...n})}async put(e,t,n){return this.request({method:"PUT",url:e,body:t,...n})}async patch(e,t){return this.request({method:"PATCH",url:e,...t})}async delete(e,t){return this.request({method:"DELETE",url:e,...t})}};async function fi(e){return L({__tauriModule:"Http",message:{cmd:"createClient",options:e}}).then(t=>new co(t))}var Bi=null;async function za(e,t){var n;return Bi===null&&(Bi=await fi()),Bi.request({url:e,method:(n=t==null?void 0:t.method)!=null?n:"GET",...t})}function rs(e,t,n){const i=e.slice();return i[12]=t[n],i[14]=n,i}function us(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,A,P,I=e[5],O=[];for(let T=0;TNe(O[T],1,1,()=>{O[T]=null});let W=!e[3]&&ps(),C=!e[3]&&e[8]&&ms();return{c(){t=a("span"),n=a("span"),i=z(e[6]),l=m(),o=a("ul");for(let T=0;T{g[y]=null}),hi(),o=g[l],o?o.p(_,v):(o=g[l]=f[l](_),o.c()),Te(o,1),o.m(t,u))},i(_){d||(Te(o),d=!0)},o(_){Ne(o),d=!1},d(_){_&&p(t),c&&c.d(),g[l].d()}}}function ps(e){let t;return{c(){t=a("span"),t.textContent=",",r(t,"class","comma svelte-gbh3pt")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function ms(e){let t;return{c(){t=a("span"),t.textContent=",",r(t,"class","comma svelte-gbh3pt")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function Da(e){let t,n,i=e[5].length&&us(e);return{c(){i&&i.c(),t=pi()},m(l,o){i&&i.m(l,o),h(l,t,o),n=!0},p(l,[o]){l[5].length?i?(i.p(l,o),o&32&&Te(i,1)):(i=us(l),i.c(),Te(i,1),i.m(t.parentNode,t)):i&&(mi(),Ne(i,1,1,()=>{i=null}),hi())},i(l){n||(Te(i),n=!0)},o(l){Ne(i),n=!1},d(l){i&&i.d(l),l&&p(t)}}}const Pa="...";function Oa(e,t,n){let{json:i}=t,{depth:l=1/0}=t,{_lvl:o=0}=t,{_last:u=!0}=t;const d=b=>b===null?"null":typeof b;let c,f,g,k,_;const v=b=>{switch(d(b)){case"string":return`"${b}"`;case"function":return"f () {...}";case"symbol":return b.toString();default:return b}},y=()=>{n(8,_=!_)};return e.$$set=b=>{"json"in b&&n(0,i=b.json),"depth"in b&&n(1,l=b.depth),"_lvl"in b&&n(2,o=b._lvl),"_last"in b&&n(3,u=b._last)},e.$$.update=()=>{e.$$.dirty&17&&(n(5,c=d(i)==="object"?Object.keys(i):[]),n(4,f=Array.isArray(i)),n(6,g=f?"[":"{"),n(7,k=f?"]":"}")),e.$$.dirty&6&&n(8,_=le[9].call(n)),r(k,"class","input h-auto w-100%"),r(k,"id","request-body"),r(k,"placeholder","Request body"),r(k,"rows","5"),r(b,"class","btn"),r(b,"id","make-request"),r(C,"class","input"),r(E,"class","input"),r(W,"class","flex gap-2 children:grow"),r($,"type","checkbox"),r(X,"class","btn"),r(X,"type","button")},m(D,G){h(D,t,G),s(t,n),s(n,i),s(n,l),s(n,o),s(n,u),s(n,d),Ht(n,e[0]),s(t,c),s(t,f),s(t,g),s(t,k),q(k,e[1]),s(t,_),s(t,v),s(t,y),s(t,b),h(D,A,G),h(D,P,G),h(D,I,G),h(D,O,G),h(D,j,G),h(D,W,G),s(W,C),q(C,e[2]),s(W,T),s(W,E),q(E,e[3]),h(D,M,G),h(D,N,G),h(D,U,G),h(D,J,G),s(J,$),$.checked=e[5],s(J,me),h(D,te,G),h(D,Y,G),h(D,de,G),h(D,x,G),h(D,H,G),h(D,X,G),h(D,K,G),h(D,ae,G),h(D,ne,G),h(D,he,G),h(D,_e,G),xt(fe,D,G),re=!0,Ae||(Le=[S(n,"change",e[9]),S(k,"input",e[10]),S(t,"submit",ai(e[6])),S(C,"input",e[11]),S(E,"input",e[12]),S($,"change",e[13]),S(X,"click",e[7])],Ae=!0)},p(D,[G]){G&1&&Ht(n,D[0]),G&2&&q(k,D[1]),G&4&&C.value!==D[2]&&q(C,D[2]),G&8&&E.value!==D[3]&&q(E,D[3]),G&32&&($.checked=D[5]);const Se={};G&16&&(Se.json=D[4]),fe.$set(Se)},i(D){re||(Te(fe.$$.fragment,D),re=!0)},o(D){Ne(fe.$$.fragment,D),re=!1},d(D){D&&p(t),D&&p(A),D&&p(P),D&&p(I),D&&p(O),D&&p(j),D&&p(W),D&&p(M),D&&p(N),D&&p(U),D&&p(J),D&&p(te),D&&p(Y),D&&p(de),D&&p(x),D&&p(H),D&&p(X),D&&p(K),D&&p(ae),D&&p(ne),D&&p(he),D&&p(_e),$t(fe,D),Ae=!1,oe(Le)}}}function Ia(e,t,n){let i="GET",l="",{onMessage:o}=t;async function u(){const P=await fi().catch(j=>{throw o(j),j}),O={url:"http://localhost:3003",method:i||"GET"||"GET"};l.startsWith("{")&&l.endsWith("}")||l.startsWith("[")&&l.endsWith("]")?O.body=at.json(JSON.parse(l)):l!==""&&(O.body=at.text(l)),P.request(O).then(o).catch(o)}let d="baz",c="qux",f=null,g=!0;async function k(){const P=await fi().catch(I=>{throw o(I),I});n(4,f=await P.request({url:"http://localhost:3003",method:"POST",body:at.form({foo:d,bar:c}),headers:g?{"Content-Type":"multipart/form-data"}:void 0,responseType:nl.Text}))}function _(){i=Vi(this),n(0,i)}function v(){l=this.value,n(1,l)}function y(){d=this.value,n(2,d)}function b(){c=this.value,n(3,c)}function A(){g=this.checked,n(5,g)}return e.$$set=P=>{"onMessage"in P&&n(8,o=P.onMessage)},[i,l,d,c,f,g,u,k,o,_,v,y,b,A]}class Ha extends ye{constructor(t){super(),ge(this,t,Ia,Ra,pe,{onMessage:8})}}function Fa(e){let t,n,i;return{c(){t=a("button"),t.textContent="Send test notification",r(t,"class","btn"),r(t,"id","notification")},m(l,o){h(l,t,o),n||(i=S(t,"click",Na),n=!0)},p:V,i:V,o:V,d(l){l&&p(t),n=!1,i()}}}function Na(){new Notification("Notification title",{body:"This is the notification body"})}function ja(e,t,n){let{onMessage:i}=t;return e.$$set=l=>{"onMessage"in l&&n(0,i=l.onMessage)},[i]}class Ua extends ye{constructor(t){super(),ge(this,t,ja,Fa,pe,{onMessage:0})}}function hs(e,t,n){const i=e.slice();return i[75]=t[n],i}function _s(e,t,n){const i=e.slice();return i[78]=t[n],i}function bs(e){let t,n,i,l,o,u,d=Object.keys(e[1]),c=[];for(let f=0;fe[43].call(i))},m(f,g){h(f,t,g),h(f,n,g),h(f,i,g),s(i,l);for(let k=0;kupdate --background subcommand.`,n=m(),i=a("br"),l=m(),o=a("div"),o.textContent="Note that the arguments are only parsed, not implemented.",u=m(),d=a("br"),c=m(),f=a("br"),g=m(),k=a("button"),k.textContent="Get matches",r(o,"class","note"),r(k,"class","btn"),r(k,"id","cli-matches")},m(y,b){h(y,t,b),h(y,n,b),h(y,i,b),h(y,l,b),h(y,o,b),h(y,u,b),h(y,d,b),h(y,c,b),h(y,f,b),h(y,g,b),h(y,k,b),_||(v=L(k,"click",e[0]),_=!0)},p:V,i:V,o:V,d(y){y&&p(t),y&&p(n),y&&p(i),y&&p(l),y&&p(o),y&&p(u),y&&p(d),y&&p(c),y&&p(f),y&&p(g),y&&p(k),_=!1,v()}}}function ia(e,t,n){let{onMessage:i}=t;function l(){oo().then(i).catch(i)}return e.$$set=o=>{"onMessage"in o&&n(1,i=o.onMessage)},[l,i]}class la extends ye{constructor(t){super(),ge(this,t,ia,na,pe,{onMessage:1})}}function sa(e){let t,n,i,l,o,u,d,c;return{c(){t=a("div"),n=a("button"),n.textContent="Call Log API",i=m(),l=a("button"),l.textContent="Call Request (async) API",o=m(),u=a("button"),u.textContent="Send event to Rust",r(n,"class","btn"),r(n,"id","log"),r(l,"class","btn"),r(l,"id","request"),r(u,"class","btn"),r(u,"id","event")},m(f,g){h(f,t,g),s(t,n),s(t,i),s(t,l),s(t,o),s(t,u),d||(c=[L(n,"click",e[0]),L(l,"click",e[1]),L(u,"click",e[2])],d=!0)},p:V,i:V,o:V,d(f){f&&p(t),d=!1,oe(c)}}}function oa(e,t,n){let{onMessage:i}=t,l;_t(async()=>{l=await tn("rust-event",i)}),Yi(()=>{l&&l()});function o(){ci("log_operation",{event:"tauri-click",payload:"this payload is optional because we used Option in Rust"})}function u(){ci("perform_request",{endpoint:"dummy endpoint arg",body:{id:5,name:"test"}}).then(i).catch(i)}function d(){_i("js-event","this is the payload string")}return e.$$set=c=>{"onMessage"in c&&n(3,i=c.onMessage)},[o,u,d,i]}class aa extends ye{constructor(t){super(),ge(this,t,oa,sa,pe,{onMessage:3})}}var ra={};Me(ra,{ask:()=>ro,confirm:()=>ca,message:()=>ua,open:()=>tl,save:()=>ao});async function tl(e={}){return typeof e=="object"&&Object.freeze(e),A({__tauriModule:"Dialog",message:{cmd:"openDialog",options:e}})}async function ao(e={}){return typeof e=="object"&&Object.freeze(e),A({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:e}})}async function ua(e,t){var i,l;let n=typeof t=="string"?{title:t}:t;return A({__tauriModule:"Dialog",message:{cmd:"messageDialog",message:e.toString(),title:(i=n==null?void 0:n.title)==null?void 0:i.toString(),type:n==null?void 0:n.type,buttonLabel:(l=n==null?void 0:n.okLabel)==null?void 0:l.toString()}})}async function ro(e,t){var i,l,o,u,d;let n=typeof t=="string"?{title:t}:t;return A({__tauriModule:"Dialog",message:{cmd:"askDialog",message:e.toString(),title:(i=n==null?void 0:n.title)==null?void 0:i.toString(),type:n==null?void 0:n.type,buttonLabels:[(o=(l=n==null?void 0:n.okLabel)==null?void 0:l.toString())!=null?o:"Yes",(d=(u=n==null?void 0:n.cancelLabel)==null?void 0:u.toString())!=null?d:"No"]}})}async function ca(e,t){var i,l,o,u,d;let n=typeof t=="string"?{title:t}:t;return A({__tauriModule:"Dialog",message:{cmd:"confirmDialog",message:e.toString(),title:(i=n==null?void 0:n.title)==null?void 0:i.toString(),type:n==null?void 0:n.type,buttonLabels:[(o=(l=n==null?void 0:n.okLabel)==null?void 0:l.toString())!=null?o:"Ok",(d=(u=n==null?void 0:n.cancelLabel)==null?void 0:u.toString())!=null?d:"Cancel"]}})}var da={};Me(da,{BaseDirectory:()=>en,Dir:()=>en,copyFile:()=>_a,createDir:()=>ma,exists:()=>ya,readBinaryFile:()=>nl,readDir:()=>uo,readTextFile:()=>fa,removeDir:()=>ha,removeFile:()=>ba,renameFile:()=>ga,writeBinaryFile:()=>pa,writeFile:()=>Xi,writeTextFile:()=>Xi});var en=(e=>(e[e.Audio=1]="Audio",e[e.Cache=2]="Cache",e[e.Config=3]="Config",e[e.Data=4]="Data",e[e.LocalData=5]="LocalData",e[e.Desktop=6]="Desktop",e[e.Document=7]="Document",e[e.Download=8]="Download",e[e.Executable=9]="Executable",e[e.Font=10]="Font",e[e.Home=11]="Home",e[e.Picture=12]="Picture",e[e.Public=13]="Public",e[e.Runtime=14]="Runtime",e[e.Template=15]="Template",e[e.Video=16]="Video",e[e.Resource=17]="Resource",e[e.App=18]="App",e[e.Log=19]="Log",e[e.Temp=20]="Temp",e[e.AppConfig=21]="AppConfig",e[e.AppData=22]="AppData",e[e.AppLocalData=23]="AppLocalData",e[e.AppCache=24]="AppCache",e[e.AppLog=25]="AppLog",e))(en||{});async function fa(e,t={}){return A({__tauriModule:"Fs",message:{cmd:"readTextFile",path:e,options:t}})}async function nl(e,t={}){let n=await A({__tauriModule:"Fs",message:{cmd:"readFile",path:e,options:t}});return Uint8Array.from(n)}async function Xi(e,t,n){typeof n=="object"&&Object.freeze(n),typeof e=="object"&&Object.freeze(e);let i={path:"",contents:""},l=n;return typeof e=="string"?i.path=e:(i.path=e.path,i.contents=e.contents),typeof t=="string"?i.contents=t!=null?t:"":l=t,A({__tauriModule:"Fs",message:{cmd:"writeFile",path:i.path,contents:Array.from(new TextEncoder().encode(i.contents)),options:l}})}async function pa(e,t,n){typeof n=="object"&&Object.freeze(n),typeof e=="object"&&Object.freeze(e);let i={path:"",contents:[]},l=n;return typeof e=="string"?i.path=e:(i.path=e.path,i.contents=e.contents),t&&"dir"in t?l=t:typeof e=="string"&&(i.contents=t!=null?t:[]),A({__tauriModule:"Fs",message:{cmd:"writeFile",path:i.path,contents:Array.from(i.contents instanceof ArrayBuffer?new Uint8Array(i.contents):i.contents),options:l}})}async function uo(e,t={}){return A({__tauriModule:"Fs",message:{cmd:"readDir",path:e,options:t}})}async function ma(e,t={}){return A({__tauriModule:"Fs",message:{cmd:"createDir",path:e,options:t}})}async function ha(e,t={}){return A({__tauriModule:"Fs",message:{cmd:"removeDir",path:e,options:t}})}async function _a(e,t,n={}){return A({__tauriModule:"Fs",message:{cmd:"copyFile",source:e,destination:t,options:n}})}async function ba(e,t={}){return A({__tauriModule:"Fs",message:{cmd:"removeFile",path:e,options:t}})}async function ga(e,t,n={}){return A({__tauriModule:"Fs",message:{cmd:"renameFile",oldPath:e,newPath:t,options:n}})}async function ya(e,t={}){return A({__tauriModule:"Fs",message:{cmd:"exists",path:e,options:t}})}function va(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,S,P,I,O,j,W,C,T,E;return{c(){t=a("div"),n=a("input"),i=m(),l=a("input"),o=m(),u=a("br"),d=m(),c=a("div"),f=a("input"),g=m(),k=a("label"),k.textContent="Multiple",_=m(),v=a("div"),y=a("input"),b=m(),S=a("label"),S.textContent="Directory",P=m(),I=a("br"),O=m(),j=a("button"),j.textContent="Open dialog",W=m(),C=a("button"),C.textContent="Open save dialog",r(n,"class","input"),r(n,"id","dialog-default-path"),r(n,"placeholder","Default path"),r(l,"class","input"),r(l,"id","dialog-filter"),r(l,"placeholder","Extensions filter, comma-separated"),r(t,"class","flex gap-2 children:grow"),r(f,"type","checkbox"),r(f,"id","dialog-multiple"),r(k,"for","dialog-multiple"),r(y,"type","checkbox"),r(y,"id","dialog-directory"),r(S,"for","dialog-directory"),r(j,"class","btn"),r(j,"id","open-dialog"),r(C,"class","btn"),r(C,"id","save-dialog")},m(M,F){h(M,t,F),s(t,n),q(n,e[0]),s(t,i),s(t,l),q(l,e[1]),h(M,o,F),h(M,u,F),h(M,d,F),h(M,c,F),s(c,f),f.checked=e[2],s(c,g),s(c,k),h(M,_,F),h(M,v,F),s(v,y),y.checked=e[3],s(v,b),s(v,S),h(M,P,F),h(M,I,F),h(M,O,F),h(M,j,F),h(M,W,F),h(M,C,F),T||(E=[L(n,"input",e[8]),L(l,"input",e[9]),L(f,"change",e[10]),L(y,"change",e[11]),L(j,"click",e[4]),L(C,"click",e[5])],T=!0)},p(M,[F]){F&1&&n.value!==M[0]&&q(n,M[0]),F&2&&l.value!==M[1]&&q(l,M[1]),F&4&&(f.checked=M[2]),F&8&&(y.checked=M[3])},i:V,o:V,d(M){M&&p(t),M&&p(o),M&&p(u),M&&p(d),M&&p(c),M&&p(_),M&&p(v),M&&p(P),M&&p(I),M&&p(O),M&&p(j),M&&p(W),M&&p(C),T=!1,oe(E)}}}function wa(e,t){var n=new Blob([e],{type:"application/octet-binary"}),i=new FileReader;i.onload=function(l){var o=l.target.result;t(o.substr(o.indexOf(",")+1))},i.readAsDataURL(n)}function ka(e,t,n){let{onMessage:i}=t,{insecureRenderHtml:l}=t,o=null,u=null,d=!1,c=!1;function f(){tl({title:"My wonderful open dialog",defaultPath:o,filters:u?[{name:"Tauri Example",extensions:u.split(",").map(b=>b.trim())}]:[],multiple:d,directory:c}).then(function(b){if(Array.isArray(b))i(b);else{var S=b,P=S.match(/\S+\.\S+$/g);nl(S).then(function(I){P&&(S.includes(".png")||S.includes(".jpg"))?wa(new Uint8Array(I),function(O){var j="data:image/png;base64,"+O;l('')}):i(b)}).catch(i(b))}}).catch(i)}function g(){ao({title:"My wonderful save dialog",defaultPath:o,filters:u?[{name:"Tauri Example",extensions:u.split(",").map(b=>b.trim())}]:[]}).then(i).catch(i)}function k(){o=this.value,n(0,o)}function _(){u=this.value,n(1,u)}function v(){d=this.checked,n(2,d)}function y(){c=this.checked,n(3,c)}return e.$$set=b=>{"onMessage"in b&&n(6,i=b.onMessage),"insecureRenderHtml"in b&&n(7,l=b.insecureRenderHtml)},[o,u,d,c,f,g,i,l,k,_,v,y]}class Ma extends ye{constructor(t){super(),ge(this,t,ka,va,pe,{onMessage:6,insecureRenderHtml:7})}}function os(e,t,n){const i=e.slice();return i[9]=t[n],i}function as(e){let t,n=e[9][0]+"",i;return{c(){t=a("option"),i=z(n),t.__value=e[9][1],t.value=t.__value},m(l,o){h(l,t,o),s(t,i)},p:V,d(l){l&&p(t)}}}function Ca(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,S,P,I,O,j=e[2],W=[];for(let C=0;CisNaN(parseInt(_))).map(_=>[_,en[_]]);function c(){const _=o.match(/\S+\.\S+$/g),v={dir:rs()};(_?nl(o,v):uo(o,v)).then(function(b){if(_)if(o.includes(".png")||o.includes(".jpg"))Ta(new Uint8Array(b),function(S){const P="data:image/png;base64,"+S;l('')});else{const S=String.fromCharCode.apply(null,b);l(''),setTimeout(()=>{const P=document.getElementById("file-response");P.value=S,document.getElementById("file-save").addEventListener("click",function(){Xi(o,P.value,{dir:rs()}).catch(i)})})}else i(b)}).catch(i)}function f(){n(1,u.src=Fs(o),u)}function g(){o=this.value,n(0,o)}function k(_){ri[_?"unshift":"push"](()=>{u=_,n(1,u)})}return e.$$set=_=>{"onMessage"in _&&n(5,i=_.onMessage),"insecureRenderHtml"in _&&n(6,l=_.insecureRenderHtml)},[o,u,d,c,f,i,l,g,k]}class Sa extends ye{constructor(t){super(),ge(this,t,Aa,Ca,pe,{onMessage:5,insecureRenderHtml:6})}}var La={};Me(La,{Body:()=>at,Client:()=>fo,Response:()=>co,ResponseType:()=>il,fetch:()=>za,getClient:()=>fi});var il=(e=>(e[e.JSON=1]="JSON",e[e.Text=2]="Text",e[e.Binary=3]="Binary",e))(il||{}),at=class{constructor(e,t){this.type=e,this.payload=t}static form(e){let t={},n=(i,l)=>{if(l!==null){let o;typeof l=="string"?o=l:l instanceof Uint8Array||Array.isArray(l)?o=Array.from(l):l instanceof File?o={file:l.name,mime:l.type,fileName:l.name}:typeof l.file=="string"?o={file:l.file,mime:l.mime,fileName:l.fileName}:o={file:Array.from(l.file),mime:l.mime,fileName:l.fileName},t[String(i)]=o}};if(e instanceof FormData)for(let[i,l]of e)n(i,l);else for(let[i,l]of Object.entries(e))n(i,l);return new at("Form",t)}static json(e){return new at("Json",e)}static text(e){return new at("Text",e)}static bytes(e){return new at("Bytes",Array.from(e instanceof ArrayBuffer?new Uint8Array(e):e))}},co=class{constructor(e){this.url=e.url,this.status=e.status,this.ok=this.status>=200&&this.status<300,this.headers=e.headers,this.rawHeaders=e.rawHeaders,this.data=e.data}},fo=class{constructor(e){this.id=e}async drop(){return A({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})}async request(e){let t=!e.responseType||e.responseType===1;return t&&(e.responseType=2),A({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:e}}).then(n=>{let i=new co(n);if(t){try{i.data=JSON.parse(i.data)}catch(l){if(i.ok&&i.data==="")i.data={};else if(i.ok)throw Error(`Failed to parse response \`${i.data}\` as JSON: ${l}; + try setting the \`responseType\` option to \`ResponseType.Text\` or \`ResponseType.Binary\` if the API does not return a JSON response.`)}return i}return i})}async get(e,t){return this.request({method:"GET",url:e,...t})}async post(e,t,n){return this.request({method:"POST",url:e,body:t,...n})}async put(e,t,n){return this.request({method:"PUT",url:e,body:t,...n})}async patch(e,t){return this.request({method:"PATCH",url:e,...t})}async delete(e,t){return this.request({method:"DELETE",url:e,...t})}};async function fi(e){return A({__tauriModule:"Http",message:{cmd:"createClient",options:e}}).then(t=>new fo(t))}var Bi=null;async function za(e,t){var n;return Bi===null&&(Bi=await fi()),Bi.request({url:e,method:(n=t==null?void 0:t.method)!=null?n:"GET",...t})}function us(e,t,n){const i=e.slice();return i[12]=t[n],i[14]=n,i}function cs(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,S,P,I=e[5],O=[];for(let T=0;TFe(O[T],1,1,()=>{O[T]=null});let W=!e[3]&&ms(),C=!e[3]&&e[8]&&hs();return{c(){t=a("span"),n=a("span"),i=z(e[6]),l=m(),o=a("ul");for(let T=0;T{g[y]=null}),hi(),o=g[l],o?o.p(_,v):(o=g[l]=f[l](_),o.c()),Te(o,1),o.m(t,u))},i(_){d||(Te(o),d=!0)},o(_){Fe(o),d=!1},d(_){_&&p(t),c&&c.d(),g[l].d()}}}function ms(e){let t;return{c(){t=a("span"),t.textContent=",",r(t,"class","comma svelte-gbh3pt")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function hs(e){let t;return{c(){t=a("span"),t.textContent=",",r(t,"class","comma svelte-gbh3pt")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function Da(e){let t,n,i=e[5].length&&cs(e);return{c(){i&&i.c(),t=pi()},m(l,o){i&&i.m(l,o),h(l,t,o),n=!0},p(l,[o]){l[5].length?i?(i.p(l,o),o&32&&Te(i,1)):(i=cs(l),i.c(),Te(i,1),i.m(t.parentNode,t)):i&&(mi(),Fe(i,1,1,()=>{i=null}),hi())},i(l){n||(Te(i),n=!0)},o(l){Fe(i),n=!1},d(l){i&&i.d(l),l&&p(t)}}}const Pa="...";function Oa(e,t,n){let{json:i}=t,{depth:l=1/0}=t,{_lvl:o=0}=t,{_last:u=!0}=t;const d=b=>b===null?"null":typeof b;let c,f,g,k,_;const v=b=>{switch(d(b)){case"string":return`"${b}"`;case"function":return"f () {...}";case"symbol":return b.toString();default:return b}},y=()=>{n(8,_=!_)};return e.$$set=b=>{"json"in b&&n(0,i=b.json),"depth"in b&&n(1,l=b.depth),"_lvl"in b&&n(2,o=b._lvl),"_last"in b&&n(3,u=b._last)},e.$$.update=()=>{e.$$.dirty&17&&(n(5,c=d(i)==="object"?Object.keys(i):[]),n(4,f=Array.isArray(i)),n(6,g=f?"[":"{"),n(7,k=f?"]":"}")),e.$$.dirty&6&&n(8,_=le[9].call(n)),r(k,"class","input h-auto w-100%"),r(k,"id","request-body"),r(k,"placeholder","Request body"),r(k,"rows","5"),r(b,"class","btn"),r(b,"id","make-request"),r(C,"class","input"),r(E,"class","input"),r(W,"class","flex gap-2 children:grow"),r(x,"type","checkbox"),r(X,"class","btn"),r(X,"type","button")},m(D,G){h(D,t,G),s(t,n),s(n,i),s(n,l),s(n,o),s(n,u),s(n,d),Nt(n,e[0]),s(t,c),s(t,f),s(t,g),s(t,k),q(k,e[1]),s(t,_),s(t,v),s(t,y),s(t,b),h(D,S,G),h(D,P,G),h(D,I,G),h(D,O,G),h(D,j,G),h(D,W,G),s(W,C),q(C,e[2]),s(W,T),s(W,E),q(E,e[3]),h(D,M,G),h(D,F,G),h(D,U,G),h(D,J,G),s(J,x),x.checked=e[5],s(J,me),h(D,te,G),h(D,Y,G),h(D,de,G),h(D,$,G),h(D,N,G),h(D,X,G),h(D,K,G),h(D,ae,G),h(D,ne,G),h(D,he,G),h(D,_e,G),$t(fe,D,G),re=!0,Ae||(Se=[L(n,"change",e[9]),L(k,"input",e[10]),L(t,"submit",ai(e[6])),L(C,"input",e[11]),L(E,"input",e[12]),L(x,"change",e[13]),L(X,"click",e[7])],Ae=!0)},p(D,[G]){G&1&&Nt(n,D[0]),G&2&&q(k,D[1]),G&4&&C.value!==D[2]&&q(C,D[2]),G&8&&E.value!==D[3]&&q(E,D[3]),G&32&&(x.checked=D[5]);const Le={};G&16&&(Le.json=D[4]),fe.$set(Le)},i(D){re||(Te(fe.$$.fragment,D),re=!0)},o(D){Fe(fe.$$.fragment,D),re=!1},d(D){D&&p(t),D&&p(S),D&&p(P),D&&p(I),D&&p(O),D&&p(j),D&&p(W),D&&p(M),D&&p(F),D&&p(U),D&&p(J),D&&p(te),D&&p(Y),D&&p(de),D&&p($),D&&p(N),D&&p(X),D&&p(K),D&&p(ae),D&&p(ne),D&&p(he),D&&p(_e),xt(fe,D),Ae=!1,oe(Se)}}}function Ia(e,t,n){let i="GET",l="",{onMessage:o}=t;async function u(){const P=await fi().catch(j=>{throw o(j),j}),O={url:"http://localhost:3003",method:i||"GET"||"GET"};l.startsWith("{")&&l.endsWith("}")||l.startsWith("[")&&l.endsWith("]")?O.body=at.json(JSON.parse(l)):l!==""&&(O.body=at.text(l)),P.request(O).then(o).catch(o)}let d="baz",c="qux",f=null,g=!0;async function k(){const P=await fi().catch(I=>{throw o(I),I});n(4,f=await P.request({url:"http://localhost:3003",method:"POST",body:at.form({foo:d,bar:c}),headers:g?{"Content-Type":"multipart/form-data"}:void 0,responseType:il.Text}))}function _(){i=Vi(this),n(0,i)}function v(){l=this.value,n(1,l)}function y(){d=this.value,n(2,d)}function b(){c=this.value,n(3,c)}function S(){g=this.checked,n(5,g)}return e.$$set=P=>{"onMessage"in P&&n(8,o=P.onMessage)},[i,l,d,c,f,g,u,k,o,_,v,y,b,S]}class Na extends ye{constructor(t){super(),ge(this,t,Ia,Ra,pe,{onMessage:8})}}function Ha(e){let t,n,i;return{c(){t=a("button"),t.textContent="Send test notification",r(t,"class","btn"),r(t,"id","notification")},m(l,o){h(l,t,o),n||(i=L(t,"click",e[0]),n=!0)},p:V,i:V,o:V,d(l){l&&p(t),n=!1,i()}}}function Fa(e,t,n){let{onMessage:i}=t;async function l(){const u=await xs();console.log(u),new Notification("Notification title",{body:"This is the notification body",sound:u==="Windows_NT"?"Default":u==="Linux"?"dialog-information":u==="Darwin"?"NSUserNotificationDefaultSoundName":void 0})}function o(){Notification.permission==="default"?Notification.requestPermission().then(function(u){u==="granted"?l():i("Permission is "+u)}).catch(i):Notification.permission==="granted"?l():i("Permission is denied")}return e.$$set=u=>{"onMessage"in u&&n(1,i=u.onMessage)},[o,i]}class ja extends ye{constructor(t){super(),ge(this,t,Fa,Ha,pe,{onMessage:1})}}function _s(e,t,n){const i=e.slice();return i[75]=t[n],i}function bs(e,t,n){const i=e.slice();return i[78]=t[n],i}function gs(e){let t,n,i,l,o,u,d=Object.keys(e[1]),c=[];for(let f=0;fe[43].call(i))},m(f,g){h(f,t,g),h(f,n,g),h(f,i,g),s(i,l);for(let k=0;ke[65].call(Ve)),r(nt,"class","input"),r(nt,"type","number"),r(it,"class","input"),r(it,"type","number"),r(Be,"class","flex gap-2"),r(lt,"class","input grow"),r(lt,"id","title"),r(Jt,"class","btn"),r(Jt,"type","submit"),r(mt,"class","flex gap-1"),r(st,"class","input grow"),r(st,"id","url"),r(Xt,"class","btn"),r(Xt,"id","open-url"),r(ht,"class","flex gap-1"),r(pt,"class","flex flex-col gap-1")},m(w,R){h(w,t,R),h(w,n,R),h(w,i,R),s(i,l),s(i,o),s(i,u),s(i,d),s(i,c),s(i,f),s(i,g),s(i,k),s(i,_),h(w,v,R),h(w,y,R),h(w,b,R),h(w,A,R),s(A,P),s(P,I),s(P,O),O.checked=e[6],s(A,j),s(A,W),s(W,C),s(W,T),T.checked=e[2],s(A,E),s(A,M),s(M,N),s(M,U),U.checked=e[3],s(A,J),s(A,$),s($,me),s($,te),te.checked=e[4],s(A,Y),s(A,de),s(de,x),s(de,H),H.checked=e[5],s(A,X),s(A,K),s(K,ae),s(K,ne),ne.checked=e[7],s(A,he),s(A,_e),s(_e,fe),s(_e,re),re.checked=e[8],s(A,Ae),s(A,Le),s(Le,D),s(Le,G),G.checked=e[9],s(A,Se),s(A,ve),s(ve,ue),s(ve,we),we.checked=e[10],h(w,ie,R),h(w,ze,R),h(w,Je,R),h(w,le,R),s(le,ee),s(ee,F),s(F,ce),s(F,B),q(B,e[17]),s(ee,He),s(ee,kt),s(kt,nn),s(kt,De),q(De,e[18]),s(le,ln),s(le,Xe),s(Xe,Mt),s(Mt,sn),s(Mt,Pe),q(Pe,e[11]),s(Xe,on),s(Xe,Ct),s(Ct,an),s(Ct,Oe),q(Oe,e[12]),s(le,rn),s(le,Ye),s(Ye,Tt),s(Tt,un),s(Tt,Fe),q(Fe,e[13]),s(Ye,Q),s(Ye,rt),s(rt,Nt),s(rt,Re),q(Re,e[14]),s(le,jt),s(le,je),s(je,ut),s(ut,Ut),s(ut,Ee),q(Ee,e[15]),s(je,qt),s(je,ct),s(ct,Bt),s(ct,We),q(We,e[16]),h(w,At,R),h(w,Lt,R),h(w,St,R),h(w,Ce,R),s(Ce,Ue),s(Ue,Ie),s(Ie,dt),s(Ie,Vt),s(Ie,ft),s(ft,cn),s(ft,bi),s(Ie,ll),s(Ie,fn),s(fn,sl),s(fn,gi),s(Ue,ol),s(Ue,Ke),s(Ke,mn),s(Ke,al),s(Ke,hn),s(hn,rl),s(hn,yi),s(Ke,ul),s(Ke,bn),s(bn,cl),s(bn,vi),s(Ce,dl),s(Ce,zt),s(zt,Qe),s(Qe,yn),s(Qe,fl),s(Qe,vn),s(vn,pl),s(vn,wi),s(Qe,ml),s(Qe,kn),s(kn,hl),s(kn,ki),s(zt,_l),s(zt,Ze),s(Ze,Cn),s(Ze,bl),s(Ze,Tn),s(Tn,gl),s(Tn,Mi),s(Ze,yl),s(Ze,Ln),s(Ln,vl),s(Ln,Ci),s(Ce,wl),s(Ce,Et),s(Et,xe),s(xe,zn),s(xe,kl),s(xe,En),s(En,Ml),s(En,Ti),s(xe,Cl),s(xe,Dn),s(Dn,Tl),s(Dn,Ai),s(Et,Al),s(Et,$e),s($e,On),s($e,Ll),s($e,Rn),s(Rn,Sl),s(Rn,Li),s($e,zl),s($e,Hn),s(Hn,El),s(Hn,Si),s(Ce,Wl),s(Ce,Wt),s(Wt,et),s(et,Nn),s(et,Dl),s(et,jn),s(jn,Pl),s(jn,zi),s(et,Ol),s(et,qn),s(qn,Rl),s(qn,Ei),s(Wt,Il),s(Wt,tt),s(tt,Vn),s(tt,Hl),s(tt,Gn),s(Gn,Fl),s(Gn,Wi),s(tt,Nl),s(tt,Xn),s(Xn,jl),s(Xn,Di),h(w,Pi,R),h(w,Oi,R),h(w,Ri,R),h(w,Gt,R),h(w,Ii,R),h(w,qe,R),s(qe,Kn),s(Kn,Dt),Dt.checked=e[19],s(Kn,Ul),s(qe,ql),s(qe,Qn),s(Qn,Pt),Pt.checked=e[20],s(Qn,Bl),s(qe,Vl),s(qe,Zn),s(Zn,Ot),Ot.checked=e[24],s(Zn,Gl),h(w,Hi,R),h(w,Be,R),s(Be,xn),s(xn,Jl),s(xn,Ve);for(let be=0;be=1,g,k,_,v=f&&bs(e),y=e[1][e[0]]&&ys(e);return{c(){t=a("div"),n=a("div"),i=a("input"),l=m(),o=a("button"),o.textContent="New window",u=m(),d=a("br"),c=m(),v&&v.c(),g=m(),y&&y.c(),r(i,"class","input grow"),r(i,"type","text"),r(i,"placeholder","New Window label.."),r(o,"class","btn"),r(n,"class","flex gap-1"),r(t,"class","flex flex-col children:grow gap-2")},m(b,A){h(b,t,A),s(t,n),s(n,i),q(i,e[25]),s(n,l),s(n,o),s(t,u),s(t,d),s(t,c),v&&v.m(t,null),s(t,g),y&&y.m(t,null),k||(_=[S(i,"input",e[42]),S(o,"click",e[39])],k=!0)},p(b,A){A[0]&33554432&&i.value!==b[25]&&q(i,b[25]),A[0]&2&&(f=Object.keys(b[1]).length>=1),f?v?v.p(b,A):(v=bs(b),v.c(),v.m(t,g)):v&&(v.d(1),v=null),b[1][b[0]]?y?y.p(b,A):(y=ys(b),y.c(),y.m(t,null)):y&&(y.d(1),y=null)},i:V,o:V,d(b){b&&p(t),v&&v.d(),y&&y.d(),k=!1,oe(_)}}}function Ba(e,t,n){let i=Ge.label;const l={[Ge.label]:Ge},o=["default","crosshair","hand","arrow","move","text","wait","help","progress","notAllowed","contextMenu","cell","verticalText","alias","copy","noDrop","grab","grabbing","allScroll","zoomIn","zoomOut","eResize","nResize","neResize","nwResize","sResize","seResize","swResize","wResize","ewResize","nsResize","neswResize","nwseResize","colResize","rowResize"];let{onMessage:u}=t,d,c="https://tauri.app",f=!0,g=!0,k=!0,_=!0,v=!1,y=!0,b=!1,A=!0,P=!1,I=null,O=null,j=null,W=null,C=null,T=null,E=null,M=null,N=1,U=new ot(E,M),J=new ot(E,M),$=new gt(I,O),me=new gt(I,O),te,Y,de=!1,x=!0,H=null,X=null,K="default",ae=!1,ne="Awesome Tauri Example!";function he(){Ki(c)}function _e(){l[i].setTitle(ne)}function fe(){l[i].hide(),setTimeout(l[i].show,2e3)}function re(){l[i].minimize(),setTimeout(l[i].unminimize,2e3)}function Ae(){el({multiple:!1}).then(Q=>{typeof Q=="string"&&l[i].setIcon(Q)})}function Le(){if(!d)return;const Q=new wt(d);n(1,l[d]=Q,l),Q.once("tauri://error",function(){u("Error creating new webview")})}function D(){l[i].innerSize().then(Q=>{n(30,$=Q),n(11,I=$.width),n(12,O=$.height)}),l[i].outerSize().then(Q=>{n(31,me=Q)})}function G(){l[i].innerPosition().then(Q=>{n(28,U=Q)}),l[i].outerPosition().then(Q=>{n(29,J=Q),n(17,E=J.x),n(18,M=J.y)})}async function Se(Q){!Q||(te&&te(),Y&&Y(),Y=await Q.listen("tauri://move",G),te=await Q.listen("tauri://resize",D))}async function ve(){await l[i].minimize(),await l[i].requestUserAttention(Zi.Critical),await new Promise(Q=>setTimeout(Q,3e3)),await l[i].requestUserAttention(null)}function ue(){d=this.value,n(25,d)}function we(){i=Vi(this),n(0,i),n(1,l)}const ie=()=>l[i].center();function ze(){v=this.checked,n(6,v)}function Je(){f=this.checked,n(2,f)}function le(){g=this.checked,n(3,g)}function ee(){k=this.checked,n(4,k)}function F(){_=this.checked,n(5,_)}function ce(){y=this.checked,n(7,y)}function B(){b=this.checked,n(8,b)}function He(){A=this.checked,n(9,A)}function kt(){P=this.checked,n(10,P)}function nn(){E=se(this.value),n(17,E)}function De(){M=se(this.value),n(18,M)}function ln(){I=se(this.value),n(11,I)}function Xe(){O=se(this.value),n(12,O)}function Mt(){j=se(this.value),n(13,j)}function sn(){W=se(this.value),n(14,W)}function Pe(){C=se(this.value),n(15,C)}function on(){T=se(this.value),n(16,T)}function Ct(){de=this.checked,n(19,de)}function an(){x=this.checked,n(20,x)}function Oe(){ae=this.checked,n(24,ae)}function rn(){K=Vi(this),n(23,K),n(33,o)}function Ye(){H=se(this.value),n(21,H)}function Tt(){X=se(this.value),n(22,X)}function un(){ne=this.value,n(32,ne)}function Fe(){c=this.value,n(26,c)}return e.$$set=Q=>{"onMessage"in Q&&n(41,u=Q.onMessage)},e.$$.update=()=>{var Q,rt,Nt,Re,jt,je,ut,Ut,Ee,qt,ct,Bt,We,At,Lt,St,Ce,Ue,Ie,dt,Vt,ft;e.$$.dirty[0]&3&&(l[i],G(),D()),e.$$.dirty[0]&7&&((Q=l[i])==null||Q.setResizable(f)),e.$$.dirty[0]&11&&((rt=l[i])==null||rt.setMaximizable(g)),e.$$.dirty[0]&19&&((Nt=l[i])==null||Nt.setMinimizable(k)),e.$$.dirty[0]&35&&((Re=l[i])==null||Re.setClosable(_)),e.$$.dirty[0]&67&&(v?(jt=l[i])==null||jt.maximize():(je=l[i])==null||je.unmaximize()),e.$$.dirty[0]&131&&((ut=l[i])==null||ut.setDecorations(y)),e.$$.dirty[0]&259&&((Ut=l[i])==null||Ut.setAlwaysOnTop(b)),e.$$.dirty[0]&515&&((Ee=l[i])==null||Ee.setContentProtected(A)),e.$$.dirty[0]&1027&&((qt=l[i])==null||qt.setFullscreen(P)),e.$$.dirty[0]&6147&&I&&O&&((ct=l[i])==null||ct.setSize(new gt(I,O))),e.$$.dirty[0]&24579&&(j&&W?(Bt=l[i])==null||Bt.setMinSize(new di(j,W)):(We=l[i])==null||We.setMinSize(null)),e.$$.dirty[0]&98307&&(C>800&&T>400?(At=l[i])==null||At.setMaxSize(new di(C,T)):(Lt=l[i])==null||Lt.setMaxSize(null)),e.$$.dirty[0]&393219&&E!==null&&M!==null&&((St=l[i])==null||St.setPosition(new ot(E,M))),e.$$.dirty[0]&3&&((Ce=l[i])==null||Ce.scaleFactor().then(cn=>n(27,N=cn))),e.$$.dirty[0]&3&&Se(l[i]),e.$$.dirty[0]&524291&&((Ue=l[i])==null||Ue.setCursorGrab(de)),e.$$.dirty[0]&1048579&&((Ie=l[i])==null||Ie.setCursorVisible(x)),e.$$.dirty[0]&8388611&&((dt=l[i])==null||dt.setCursorIcon(K)),e.$$.dirty[0]&6291459&&H!==null&&X!==null&&((Vt=l[i])==null||Vt.setCursorPosition(new ot(H,X))),e.$$.dirty[0]&16777219&&((ft=l[i])==null||ft.setIgnoreCursorEvents(ae))},[i,l,f,g,k,_,v,y,b,A,P,I,O,j,W,C,T,E,M,de,x,H,X,K,ae,d,c,N,U,J,$,me,ne,o,he,_e,fe,re,Ae,Le,ve,u,ue,we,ie,ze,Je,le,ee,F,ce,B,He,kt,nn,De,ln,Xe,Mt,sn,Pe,on,Ct,an,Oe,rn,Ye,Tt,un,Fe]}class Va extends ye{constructor(t){super(),ge(this,t,Ba,qa,pe,{onMessage:41},null,[-1,-1,-1])}}var Ga={};Me(Ga,{isRegistered:()=>Xa,register:()=>po,registerAll:()=>Ja,unregister:()=>mo,unregisterAll:()=>ho});async function po(e,t){return L({__tauriModule:"GlobalShortcut",message:{cmd:"register",shortcut:e,handler:vt(t)}})}async function Ja(e,t){return L({__tauriModule:"GlobalShortcut",message:{cmd:"registerAll",shortcuts:e,handler:vt(t)}})}async function Xa(e){return L({__tauriModule:"GlobalShortcut",message:{cmd:"isRegistered",shortcut:e}})}async function mo(e){return L({__tauriModule:"GlobalShortcut",message:{cmd:"unregister",shortcut:e}})}async function ho(){return L({__tauriModule:"GlobalShortcut",message:{cmd:"unregisterAll"}})}function ws(e,t,n){const i=e.slice();return i[9]=t[n],i}function ks(e){let t,n=e[9]+"",i,l,o,u,d;function c(){return e[8](e[9])}return{c(){t=a("div"),i=z(n),l=m(),o=a("button"),o.textContent="Unregister",r(o,"class","btn"),r(o,"type","button"),r(t,"class","flex justify-between")},m(f,g){h(f,t,g),s(t,i),s(t,l),s(t,o),u||(d=S(o,"click",c),u=!0)},p(f,g){e=f,g&2&&n!==(n=e[9]+"")&&Z(i,n)},d(f){f&&p(t),u=!1,d()}}}function Ms(e){let t,n,i,l,o;return{c(){t=a("br"),n=m(),i=a("button"),i.textContent="Unregister all",r(i,"class","btn"),r(i,"type","button")},m(u,d){h(u,t,d),h(u,n,d),h(u,i,d),l||(o=S(i,"click",e[5]),l=!0)},p:V,d(u){u&&p(t),u&&p(n),u&&p(i),l=!1,o()}}}function Ya(e){let t,n,i,l,o,u,d,c,f,g,k,_=e[1],v=[];for(let b=0;b<_.length;b+=1)v[b]=ks(ws(e,_,b));let y=e[1].length>1&&Ms(e);return{c(){t=a("div"),n=a("input"),i=m(),l=a("button"),l.textContent="Register",o=m(),u=a("br"),d=m(),c=a("div");for(let b=0;b1?y?y.p(b,A):(y=Ms(b),y.c(),y.m(c,null)):y&&(y.d(1),y=null)},i:V,o:V,d(b){b&&p(t),b&&p(o),b&&p(u),b&&p(d),b&&p(c),yt(v,b),y&&y.d(),g=!1,oe(k)}}}function Ka(e,t,n){let i,{onMessage:l}=t;const o=Hs([]);Os(e,o,_=>n(1,i=_));let u="CmdOrControl+X";function d(){const _=u;po(_,()=>{l(`Shortcut ${_} triggered`)}).then(()=>{o.update(v=>[...v,_]),l(`Shortcut ${_} registered successfully`)}).catch(l)}function c(_){const v=_;mo(v).then(()=>{o.update(y=>y.filter(b=>b!==v)),l(`Shortcut ${v} unregistered`)}).catch(l)}function f(){ho().then(()=>{o.update(()=>[]),l("Unregistered all shortcuts")}).catch(l)}function g(){u=this.value,n(0,u)}const k=_=>c(_);return e.$$set=_=>{"onMessage"in _&&n(6,l=_.onMessage)},[u,i,o,d,c,f,l,g,k]}class Qa extends ye{constructor(t){super(),ge(this,t,Ka,Ya,pe,{onMessage:6})}}function Cs(e){let t,n,i,l,o,u,d;return{c(){t=a("br"),n=m(),i=a("input"),l=m(),o=a("button"),o.textContent="Write",r(i,"class","input"),r(i,"placeholder","write to stdin"),r(o,"class","btn")},m(c,f){h(c,t,f),h(c,n,f),h(c,i,f),q(i,e[4]),h(c,l,f),h(c,o,f),u||(d=[S(i,"input",e[14]),S(o,"click",e[8])],u=!0)},p(c,f){f&16&&i.value!==c[4]&&q(i,c[4])},d(c){c&&p(t),c&&p(n),c&&p(i),c&&p(l),c&&p(o),u=!1,oe(d)}}}function Za(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,A,P,I,O,j,W,C,T,E,M=e[5]&&Cs(e);return{c(){t=a("div"),n=a("div"),i=z(`Script: + `),We=a("input"),At=m(),St=a("br"),Lt=m(),Ce=a("div"),Ue=a("div"),Ie=a("div"),dt=a("div"),dt.textContent="Inner Size",Vt=m(),ft=a("span"),cn=z("Width: "),bi=z(dn),sl=m(),fn=a("span"),ol=z("Height: "),gi=z(pn),al=m(),Ke=a("div"),mn=a("div"),mn.textContent="Outer Size",rl=m(),hn=a("span"),ul=z("Width: "),yi=z(_n),cl=m(),bn=a("span"),dl=z("Height: "),vi=z(gn),fl=m(),zt=a("div"),Qe=a("div"),yn=a("div"),yn.textContent="Inner Logical Size",pl=m(),vn=a("span"),ml=z("Width: "),wi=z(wn),hl=m(),kn=a("span"),_l=z("Height: "),ki=z(Mn),bl=m(),Ze=a("div"),Cn=a("div"),Cn.textContent="Outer Logical Size",gl=m(),Tn=a("span"),yl=z("Width: "),Mi=z(An),vl=m(),Sn=a("span"),wl=z("Height: "),Ci=z(Ln),kl=m(),Et=a("div"),$e=a("div"),zn=a("div"),zn.textContent="Inner Position",Ml=m(),En=a("span"),Cl=z("x: "),Ti=z(Wn),Tl=m(),Dn=a("span"),Al=z("y: "),Ai=z(Pn),Sl=m(),xe=a("div"),On=a("div"),On.textContent="Outer Position",Ll=m(),Rn=a("span"),zl=z("x: "),Si=z(In),El=m(),Nn=a("span"),Wl=z("y: "),Li=z(Hn),Dl=m(),Wt=a("div"),et=a("div"),Fn=a("div"),Fn.textContent="Inner Logical Position",Pl=m(),jn=a("span"),Ol=z("x: "),zi=z(Un),Rl=m(),qn=a("span"),Il=z("y: "),Ei=z(Bn),Nl=m(),tt=a("div"),Vn=a("div"),Vn.textContent="Outer Logical Position",Hl=m(),Gn=a("span"),Fl=z("x: "),Wi=z(Jn),jl=m(),Xn=a("span"),Ul=z("y: "),Di=z(Yn),Pi=m(),Oi=a("br"),Ri=m(),Gt=a("h4"),Gt.textContent="Cursor",Ii=m(),qe=a("div"),Kn=a("label"),Dt=a("input"),ql=z(` + Grab`),Bl=m(),Qn=a("label"),Pt=a("input"),Vl=z(` + Visible`),Gl=m(),Zn=a("label"),Ot=a("input"),Jl=z(` + Ignore events`),Ni=m(),Be=a("div"),$n=a("label"),Xl=z(`Icon + `),Ve=a("select");for(let w=0;we[65].call(Ve)),r(nt,"class","input"),r(nt,"type","number"),r(it,"class","input"),r(it,"type","number"),r(Be,"class","flex gap-2"),r(lt,"class","input grow"),r(lt,"id","title"),r(Jt,"class","btn"),r(Jt,"type","submit"),r(mt,"class","flex gap-1"),r(st,"class","input grow"),r(st,"id","url"),r(Xt,"class","btn"),r(Xt,"id","open-url"),r(ht,"class","flex gap-1"),r(pt,"class","flex flex-col gap-1")},m(w,R){h(w,t,R),h(w,n,R),h(w,i,R),s(i,l),s(i,o),s(i,u),s(i,d),s(i,c),s(i,f),s(i,g),s(i,k),s(i,_),h(w,v,R),h(w,y,R),h(w,b,R),h(w,S,R),s(S,P),s(P,I),s(P,O),O.checked=e[6],s(S,j),s(S,W),s(W,C),s(W,T),T.checked=e[2],s(S,E),s(S,M),s(M,F),s(M,U),U.checked=e[3],s(S,J),s(S,x),s(x,me),s(x,te),te.checked=e[4],s(S,Y),s(S,de),s(de,$),s(de,N),N.checked=e[5],s(S,X),s(S,K),s(K,ae),s(K,ne),ne.checked=e[7],s(S,he),s(S,_e),s(_e,fe),s(_e,re),re.checked=e[8],s(S,Ae),s(S,Se),s(Se,D),s(Se,G),G.checked=e[9],s(S,Le),s(S,ve),s(ve,ue),s(ve,we),we.checked=e[10],h(w,ie,R),h(w,ze,R),h(w,Je,R),h(w,le,R),s(le,ee),s(ee,H),s(H,ce),s(H,B),q(B,e[17]),s(ee,Ne),s(ee,kt),s(kt,nn),s(kt,De),q(De,e[18]),s(le,ln),s(le,Xe),s(Xe,Mt),s(Mt,sn),s(Mt,Pe),q(Pe,e[11]),s(Xe,on),s(Xe,Ct),s(Ct,an),s(Ct,Oe),q(Oe,e[12]),s(le,rn),s(le,Ye),s(Ye,Tt),s(Tt,un),s(Tt,He),q(He,e[13]),s(Ye,Q),s(Ye,rt),s(rt,Ft),s(rt,Re),q(Re,e[14]),s(le,jt),s(le,je),s(je,ut),s(ut,Ut),s(ut,Ee),q(Ee,e[15]),s(je,qt),s(je,ct),s(ct,Bt),s(ct,We),q(We,e[16]),h(w,At,R),h(w,St,R),h(w,Lt,R),h(w,Ce,R),s(Ce,Ue),s(Ue,Ie),s(Ie,dt),s(Ie,Vt),s(Ie,ft),s(ft,cn),s(ft,bi),s(Ie,sl),s(Ie,fn),s(fn,ol),s(fn,gi),s(Ue,al),s(Ue,Ke),s(Ke,mn),s(Ke,rl),s(Ke,hn),s(hn,ul),s(hn,yi),s(Ke,cl),s(Ke,bn),s(bn,dl),s(bn,vi),s(Ce,fl),s(Ce,zt),s(zt,Qe),s(Qe,yn),s(Qe,pl),s(Qe,vn),s(vn,ml),s(vn,wi),s(Qe,hl),s(Qe,kn),s(kn,_l),s(kn,ki),s(zt,bl),s(zt,Ze),s(Ze,Cn),s(Ze,gl),s(Ze,Tn),s(Tn,yl),s(Tn,Mi),s(Ze,vl),s(Ze,Sn),s(Sn,wl),s(Sn,Ci),s(Ce,kl),s(Ce,Et),s(Et,$e),s($e,zn),s($e,Ml),s($e,En),s(En,Cl),s(En,Ti),s($e,Tl),s($e,Dn),s(Dn,Al),s(Dn,Ai),s(Et,Sl),s(Et,xe),s(xe,On),s(xe,Ll),s(xe,Rn),s(Rn,zl),s(Rn,Si),s(xe,El),s(xe,Nn),s(Nn,Wl),s(Nn,Li),s(Ce,Dl),s(Ce,Wt),s(Wt,et),s(et,Fn),s(et,Pl),s(et,jn),s(jn,Ol),s(jn,zi),s(et,Rl),s(et,qn),s(qn,Il),s(qn,Ei),s(Wt,Nl),s(Wt,tt),s(tt,Vn),s(tt,Hl),s(tt,Gn),s(Gn,Fl),s(Gn,Wi),s(tt,jl),s(tt,Xn),s(Xn,Ul),s(Xn,Di),h(w,Pi,R),h(w,Oi,R),h(w,Ri,R),h(w,Gt,R),h(w,Ii,R),h(w,qe,R),s(qe,Kn),s(Kn,Dt),Dt.checked=e[19],s(Kn,ql),s(qe,Bl),s(qe,Qn),s(Qn,Pt),Pt.checked=e[20],s(Qn,Vl),s(qe,Gl),s(qe,Zn),s(Zn,Ot),Ot.checked=e[24],s(Zn,Jl),h(w,Ni,R),h(w,Be,R),s(Be,$n),s($n,Xl),s($n,Ve);for(let be=0;be=1,g,k,_,v=f&&gs(e),y=e[1][e[0]]&&vs(e);return{c(){t=a("div"),n=a("div"),i=a("input"),l=m(),o=a("button"),o.textContent="New window",u=m(),d=a("br"),c=m(),v&&v.c(),g=m(),y&&y.c(),r(i,"class","input grow"),r(i,"type","text"),r(i,"placeholder","New Window label.."),r(o,"class","btn"),r(n,"class","flex gap-1"),r(t,"class","flex flex-col children:grow gap-2")},m(b,S){h(b,t,S),s(t,n),s(n,i),q(i,e[25]),s(n,l),s(n,o),s(t,u),s(t,d),s(t,c),v&&v.m(t,null),s(t,g),y&&y.m(t,null),k||(_=[L(i,"input",e[42]),L(o,"click",e[39])],k=!0)},p(b,S){S[0]&33554432&&i.value!==b[25]&&q(i,b[25]),S[0]&2&&(f=Object.keys(b[1]).length>=1),f?v?v.p(b,S):(v=gs(b),v.c(),v.m(t,g)):v&&(v.d(1),v=null),b[1][b[0]]?y?y.p(b,S):(y=vs(b),y.c(),y.m(t,null)):y&&(y.d(1),y=null)},i:V,o:V,d(b){b&&p(t),v&&v.d(),y&&y.d(),k=!1,oe(_)}}}function qa(e,t,n){let i=Ge.label;const l={[Ge.label]:Ge},o=["default","crosshair","hand","arrow","move","text","wait","help","progress","notAllowed","contextMenu","cell","verticalText","alias","copy","noDrop","grab","grabbing","allScroll","zoomIn","zoomOut","eResize","nResize","neResize","nwResize","sResize","seResize","swResize","wResize","ewResize","nsResize","neswResize","nwseResize","colResize","rowResize"];let{onMessage:u}=t,d,c="https://tauri.app",f=!0,g=!0,k=!0,_=!0,v=!1,y=!0,b=!1,S=!0,P=!1,I=null,O=null,j=null,W=null,C=null,T=null,E=null,M=null,F=1,U=new ot(E,M),J=new ot(E,M),x=new gt(I,O),me=new gt(I,O),te,Y,de=!1,$=!0,N=null,X=null,K="default",ae=!1,ne="Awesome Tauri Example!";function he(){Qi(c)}function _e(){l[i].setTitle(ne)}function fe(){l[i].hide(),setTimeout(l[i].show,2e3)}function re(){l[i].minimize(),setTimeout(l[i].unminimize,2e3)}function Ae(){tl({multiple:!1}).then(Q=>{typeof Q=="string"&&l[i].setIcon(Q)})}function Se(){if(!d)return;const Q=new wt(d);n(1,l[d]=Q,l),Q.once("tauri://error",function(){u("Error creating new webview")})}function D(){l[i].innerSize().then(Q=>{n(30,x=Q),n(11,I=x.width),n(12,O=x.height)}),l[i].outerSize().then(Q=>{n(31,me=Q)})}function G(){l[i].innerPosition().then(Q=>{n(28,U=Q)}),l[i].outerPosition().then(Q=>{n(29,J=Q),n(17,E=J.x),n(18,M=J.y)})}async function Le(Q){!Q||(te&&te(),Y&&Y(),Y=await Q.listen("tauri://move",G),te=await Q.listen("tauri://resize",D))}async function ve(){await l[i].minimize(),await l[i].requestUserAttention($i.Critical),await new Promise(Q=>setTimeout(Q,3e3)),await l[i].requestUserAttention(null)}function ue(){d=this.value,n(25,d)}function we(){i=Vi(this),n(0,i),n(1,l)}const ie=()=>l[i].center();function ze(){v=this.checked,n(6,v)}function Je(){f=this.checked,n(2,f)}function le(){g=this.checked,n(3,g)}function ee(){k=this.checked,n(4,k)}function H(){_=this.checked,n(5,_)}function ce(){y=this.checked,n(7,y)}function B(){b=this.checked,n(8,b)}function Ne(){S=this.checked,n(9,S)}function kt(){P=this.checked,n(10,P)}function nn(){E=se(this.value),n(17,E)}function De(){M=se(this.value),n(18,M)}function ln(){I=se(this.value),n(11,I)}function Xe(){O=se(this.value),n(12,O)}function Mt(){j=se(this.value),n(13,j)}function sn(){W=se(this.value),n(14,W)}function Pe(){C=se(this.value),n(15,C)}function on(){T=se(this.value),n(16,T)}function Ct(){de=this.checked,n(19,de)}function an(){$=this.checked,n(20,$)}function Oe(){ae=this.checked,n(24,ae)}function rn(){K=Vi(this),n(23,K),n(33,o)}function Ye(){N=se(this.value),n(21,N)}function Tt(){X=se(this.value),n(22,X)}function un(){ne=this.value,n(32,ne)}function He(){c=this.value,n(26,c)}return e.$$set=Q=>{"onMessage"in Q&&n(41,u=Q.onMessage)},e.$$.update=()=>{var Q,rt,Ft,Re,jt,je,ut,Ut,Ee,qt,ct,Bt,We,At,St,Lt,Ce,Ue,Ie,dt,Vt,ft;e.$$.dirty[0]&3&&(l[i],G(),D()),e.$$.dirty[0]&7&&((Q=l[i])==null||Q.setResizable(f)),e.$$.dirty[0]&11&&((rt=l[i])==null||rt.setMaximizable(g)),e.$$.dirty[0]&19&&((Ft=l[i])==null||Ft.setMinimizable(k)),e.$$.dirty[0]&35&&((Re=l[i])==null||Re.setClosable(_)),e.$$.dirty[0]&67&&(v?(jt=l[i])==null||jt.maximize():(je=l[i])==null||je.unmaximize()),e.$$.dirty[0]&131&&((ut=l[i])==null||ut.setDecorations(y)),e.$$.dirty[0]&259&&((Ut=l[i])==null||Ut.setAlwaysOnTop(b)),e.$$.dirty[0]&515&&((Ee=l[i])==null||Ee.setContentProtected(S)),e.$$.dirty[0]&1027&&((qt=l[i])==null||qt.setFullscreen(P)),e.$$.dirty[0]&6147&&I&&O&&((ct=l[i])==null||ct.setSize(new gt(I,O))),e.$$.dirty[0]&24579&&(j&&W?(Bt=l[i])==null||Bt.setMinSize(new di(j,W)):(We=l[i])==null||We.setMinSize(null)),e.$$.dirty[0]&98307&&(C>800&&T>400?(At=l[i])==null||At.setMaxSize(new di(C,T)):(St=l[i])==null||St.setMaxSize(null)),e.$$.dirty[0]&393219&&E!==null&&M!==null&&((Lt=l[i])==null||Lt.setPosition(new ot(E,M))),e.$$.dirty[0]&3&&((Ce=l[i])==null||Ce.scaleFactor().then(cn=>n(27,F=cn))),e.$$.dirty[0]&3&&Le(l[i]),e.$$.dirty[0]&524291&&((Ue=l[i])==null||Ue.setCursorGrab(de)),e.$$.dirty[0]&1048579&&((Ie=l[i])==null||Ie.setCursorVisible($)),e.$$.dirty[0]&8388611&&((dt=l[i])==null||dt.setCursorIcon(K)),e.$$.dirty[0]&6291459&&N!==null&&X!==null&&((Vt=l[i])==null||Vt.setCursorPosition(new ot(N,X))),e.$$.dirty[0]&16777219&&((ft=l[i])==null||ft.setIgnoreCursorEvents(ae))},[i,l,f,g,k,_,v,y,b,S,P,I,O,j,W,C,T,E,M,de,$,N,X,K,ae,d,c,F,U,J,x,me,ne,o,he,_e,fe,re,Ae,Se,ve,u,ue,we,ie,ze,Je,le,ee,H,ce,B,Ne,kt,nn,De,ln,Xe,Mt,sn,Pe,on,Ct,an,Oe,rn,Ye,Tt,un,He]}class Ba extends ye{constructor(t){super(),ge(this,t,qa,Ua,pe,{onMessage:41},null,[-1,-1,-1])}}var Va={};Me(Va,{isRegistered:()=>Ja,register:()=>mo,registerAll:()=>Ga,unregister:()=>ho,unregisterAll:()=>_o});async function mo(e,t){return A({__tauriModule:"GlobalShortcut",message:{cmd:"register",shortcut:e,handler:vt(t)}})}async function Ga(e,t){return A({__tauriModule:"GlobalShortcut",message:{cmd:"registerAll",shortcuts:e,handler:vt(t)}})}async function Ja(e){return A({__tauriModule:"GlobalShortcut",message:{cmd:"isRegistered",shortcut:e}})}async function ho(e){return A({__tauriModule:"GlobalShortcut",message:{cmd:"unregister",shortcut:e}})}async function _o(){return A({__tauriModule:"GlobalShortcut",message:{cmd:"unregisterAll"}})}function ks(e,t,n){const i=e.slice();return i[9]=t[n],i}function Ms(e){let t,n=e[9]+"",i,l,o,u,d;function c(){return e[8](e[9])}return{c(){t=a("div"),i=z(n),l=m(),o=a("button"),o.textContent="Unregister",r(o,"class","btn"),r(o,"type","button"),r(t,"class","flex justify-between")},m(f,g){h(f,t,g),s(t,i),s(t,l),s(t,o),u||(d=L(o,"click",c),u=!0)},p(f,g){e=f,g&2&&n!==(n=e[9]+"")&&Z(i,n)},d(f){f&&p(t),u=!1,d()}}}function Cs(e){let t,n,i,l,o;return{c(){t=a("br"),n=m(),i=a("button"),i.textContent="Unregister all",r(i,"class","btn"),r(i,"type","button")},m(u,d){h(u,t,d),h(u,n,d),h(u,i,d),l||(o=L(i,"click",e[5]),l=!0)},p:V,d(u){u&&p(t),u&&p(n),u&&p(i),l=!1,o()}}}function Xa(e){let t,n,i,l,o,u,d,c,f,g,k,_=e[1],v=[];for(let b=0;b<_.length;b+=1)v[b]=Ms(ks(e,_,b));let y=e[1].length>1&&Cs(e);return{c(){t=a("div"),n=a("input"),i=m(),l=a("button"),l.textContent="Register",o=m(),u=a("br"),d=m(),c=a("div");for(let b=0;b1?y?y.p(b,S):(y=Cs(b),y.c(),y.m(c,null)):y&&(y.d(1),y=null)},i:V,o:V,d(b){b&&p(t),b&&p(o),b&&p(u),b&&p(d),b&&p(c),yt(v,b),y&&y.d(),g=!1,oe(k)}}}function Ya(e,t,n){let i,{onMessage:l}=t;const o=Hs([]);Rs(e,o,_=>n(1,i=_));let u="CmdOrControl+X";function d(){const _=u;mo(_,()=>{l(`Shortcut ${_} triggered`)}).then(()=>{o.update(v=>[...v,_]),l(`Shortcut ${_} registered successfully`)}).catch(l)}function c(_){const v=_;ho(v).then(()=>{o.update(y=>y.filter(b=>b!==v)),l(`Shortcut ${v} unregistered`)}).catch(l)}function f(){_o().then(()=>{o.update(()=>[]),l("Unregistered all shortcuts")}).catch(l)}function g(){u=this.value,n(0,u)}const k=_=>c(_);return e.$$set=_=>{"onMessage"in _&&n(6,l=_.onMessage)},[u,i,o,d,c,f,l,g,k]}class Ka extends ye{constructor(t){super(),ge(this,t,Ya,Xa,pe,{onMessage:6})}}function Ts(e){let t,n,i,l,o,u,d;return{c(){t=a("br"),n=m(),i=a("input"),l=m(),o=a("button"),o.textContent="Write",r(i,"class","input"),r(i,"placeholder","write to stdin"),r(o,"class","btn")},m(c,f){h(c,t,f),h(c,n,f),h(c,i,f),q(i,e[4]),h(c,l,f),h(c,o,f),u||(d=[L(i,"input",e[14]),L(o,"click",e[8])],u=!0)},p(c,f){f&16&&i.value!==c[4]&&q(i,c[4])},d(c){c&&p(t),c&&p(n),c&&p(i),c&&p(l),c&&p(o),u=!1,oe(d)}}}function Qa(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,S,P,I,O,j,W,C,T,E,M=e[5]&&Ts(e);return{c(){t=a("div"),n=a("div"),i=z(`Script: `),l=a("input"),o=m(),u=a("div"),d=z(`Encoding: `),c=a("input"),f=m(),g=a("div"),k=z(`Working directory: `),_=a("input"),v=m(),y=a("div"),b=z(`Arguments: - `),A=a("input"),P=m(),I=a("div"),O=a("button"),O.textContent="Run",j=m(),W=a("button"),W.textContent="Kill",C=m(),M&&M.c(),r(l,"class","grow input"),r(n,"class","flex items-center gap-1"),r(c,"class","grow input"),r(u,"class","flex items-center gap-1"),r(_,"class","grow input"),r(_,"placeholder","Working directory"),r(g,"class","flex items-center gap-1"),r(A,"class","grow input"),r(A,"placeholder","Environment variables"),r(y,"class","flex items-center gap-1"),r(O,"class","btn"),r(W,"class","btn"),r(I,"class","flex children:grow gap-1"),r(t,"class","flex flex-col childre:grow gap-1")},m(N,U){h(N,t,U),s(t,n),s(n,i),s(n,l),q(l,e[0]),s(t,o),s(t,u),s(u,d),s(u,c),q(c,e[3]),s(t,f),s(t,g),s(g,k),s(g,_),q(_,e[1]),s(t,v),s(t,y),s(y,b),s(y,A),q(A,e[2]),s(t,P),s(t,I),s(I,O),s(I,j),s(I,W),s(t,C),M&&M.m(t,null),T||(E=[S(l,"input",e[10]),S(c,"input",e[11]),S(_,"input",e[12]),S(A,"input",e[13]),S(O,"click",e[6]),S(W,"click",e[7])],T=!0)},p(N,[U]){U&1&&l.value!==N[0]&&q(l,N[0]),U&8&&c.value!==N[3]&&q(c,N[3]),U&2&&_.value!==N[1]&&q(_,N[1]),U&4&&A.value!==N[2]&&q(A,N[2]),N[5]?M?M.p(N,U):(M=Cs(N),M.c(),M.m(t,null)):M&&(M.d(1),M=null)},i:V,o:V,d(N){N&&p(t),M&&M.d(),T=!1,oe(E)}}}function xa(e,t,n){const i=navigator.userAgent.includes("Windows");let l=i?"cmd":"sh",o=i?["/C"]:["-c"],{onMessage:u}=t,d='echo "hello world"',c=null,f="SOMETHING=value ANOTHER=2",g="",k="",_;function v(){return f.split(" ").reduce((C,T)=>{let[E,M]=T.split("=");return{...C,[E]:M}},{})}function y(){n(5,_=null);const C=new Yi(l,[...o,d],{cwd:c||null,env:v(),encoding:g});C.on("close",T=>{u(`command finished with code ${T.code} and signal ${T.signal}`),n(5,_=null)}),C.on("error",T=>u(`command error: "${T}"`)),C.stdout.on("data",T=>u(`command stdout: "${T}"`)),C.stderr.on("data",T=>u(`command stderr: "${T}"`)),C.spawn().then(T=>{n(5,_=T)}).catch(u)}function b(){_.kill().then(()=>u("killed child process")).catch(u)}function A(){_.write(k).catch(u)}function P(){d=this.value,n(0,d)}function I(){g=this.value,n(3,g)}function O(){c=this.value,n(1,c)}function j(){f=this.value,n(2,f)}function W(){k=this.value,n(4,k)}return e.$$set=C=>{"onMessage"in C&&n(9,u=C.onMessage)},[d,c,f,g,k,_,y,b,A,u,P,I,O,j,W]}class $a extends ye{constructor(t){super(),ge(this,t,xa,Za,pe,{onMessage:9})}}var er={};Me(er,{checkUpdate:()=>bo,installUpdate:()=>_o,onUpdaterEvent:()=>il});async function il(e){return tn("tauri://update-status",t=>{e(t==null?void 0:t.payload)})}async function _o(){let e;function t(){e&&e(),e=void 0}return new Promise((n,i)=>{function l(o){if(o.error){t(),i(o.error);return}o.status==="DONE"&&(t(),n())}il(l).then(o=>{e=o}).catch(o=>{throw t(),o}),_i("tauri://update-install").catch(o=>{throw t(),o})})}async function bo(){let e;function t(){e&&e(),e=void 0}return new Promise((n,i)=>{function l(u){t(),n({manifest:u,shouldUpdate:!0})}function o(u){if(u.error){t(),i(u.error);return}u.status==="UPTODATE"&&(t(),n({shouldUpdate:!1}))}Vs("tauri://update-available",u=>{l(u==null?void 0:u.payload)}).catch(u=>{throw t(),u}),il(o).then(u=>{e=u}).catch(u=>{throw t(),u}),_i("tauri://update").catch(u=>{throw t(),u})})}function tr(e){let t;return{c(){t=a("button"),t.innerHTML='
',r(t,"class","btn text-accentText dark:text-darkAccentText flex items-center justify-center")},m(n,i){h(n,t,i)},p:V,d(n){n&&p(t)}}}function nr(e){let t,n,i;return{c(){t=a("button"),t.textContent="Install update",r(t,"class","btn")},m(l,o){h(l,t,o),n||(i=S(t,"click",e[4]),n=!0)},p:V,d(l){l&&p(t),n=!1,i()}}}function ir(e){let t,n,i;return{c(){t=a("button"),t.textContent="Check update",r(t,"class","btn")},m(l,o){h(l,t,o),n||(i=S(t,"click",e[3]),n=!0)},p:V,d(l){l&&p(t),n=!1,i()}}}function lr(e){let t;function n(o,u){return!o[0]&&!o[2]?ir:!o[1]&&o[2]?nr:tr}let i=n(e),l=i(e);return{c(){t=a("div"),l.c(),r(t,"class","flex children:grow children:h10")},m(o,u){h(o,t,u),l.m(t,null)},p(o,[u]){i===(i=n(o))&&l?l.p(o,u):(l.d(1),l=i(o),l&&(l.c(),l.m(t,null)))},i:V,o:V,d(o){o&&p(t),l.d()}}}function sr(e,t,n){let{onMessage:i}=t,l;_t(async()=>{l=await tn("tauri://update-status",i)}),Xi(()=>{l&&l()});let o,u,d;async function c(){n(0,o=!0);try{const{shouldUpdate:g,manifest:k}=await bo();i(`Should update: ${g}`),i(k),n(2,d=g)}catch(g){i(g)}finally{n(0,o=!1)}}async function f(){n(1,u=!0);try{await _o(),i("Installation complete, restart required."),await $i()}catch(g){i(g)}finally{n(1,u=!1)}}return e.$$set=g=>{"onMessage"in g&&n(5,i=g.onMessage)},[o,u,d,c,f,i]}class or extends ye{constructor(t){super(),ge(this,t,sr,lr,pe,{onMessage:5})}}var ar={};Me(ar,{readText:()=>yo,writeText:()=>go});async function go(e){return L({__tauriModule:"Clipboard",message:{cmd:"writeText",data:e}})}async function yo(){return L({__tauriModule:"Clipboard",message:{cmd:"readText",data:null}})}function rr(e){let t,n,i,l,o,u,d,c;return{c(){t=a("div"),n=a("input"),i=m(),l=a("button"),l.textContent="Write",o=m(),u=a("button"),u.textContent="Read",r(n,"class","grow input"),r(n,"placeholder","Text to write to the clipboard"),r(l,"class","btn"),r(l,"type","button"),r(u,"class","btn"),r(u,"type","button"),r(t,"class","flex gap-1")},m(f,g){h(f,t,g),s(t,n),q(n,e[0]),s(t,i),s(t,l),s(t,o),s(t,u),d||(c=[S(n,"input",e[4]),S(l,"click",e[1]),S(u,"click",e[2])],d=!0)},p(f,[g]){g&1&&n.value!==f[0]&&q(n,f[0])},i:V,o:V,d(f){f&&p(t),d=!1,oe(c)}}}function ur(e,t,n){let{onMessage:i}=t,l="clipboard message";function o(){go(l).then(()=>{i("Wrote to the clipboard")}).catch(i)}function u(){yo().then(c=>{i(`Clipboard contents: ${c}`)}).catch(i)}function d(){l=this.value,n(0,l)}return e.$$set=c=>{"onMessage"in c&&n(3,i=c.onMessage)},[l,o,u,i,d]}class cr extends ye{constructor(t){super(),ge(this,t,ur,rr,pe,{onMessage:3})}}function dr(e){let t;return{c(){t=a("div"),t.innerHTML=`
Not available for Linux
- `,r(t,"class","flex flex-col gap-2")},m(n,i){h(n,t,i)},p:V,i:V,o:V,d(n){n&&p(t)}}}function fr(e,t,n){let{onMessage:i}=t;const l=window.constraints={audio:!0,video:!0};function o(d){const c=document.querySelector("video"),f=d.getVideoTracks();i("Got stream with constraints:",l),i(`Using video device: ${f[0].label}`),window.stream=d,c.srcObject=d}function u(d){if(d.name==="ConstraintNotSatisfiedError"){const c=l.video;i(`The resolution ${c.width.exact}x${c.height.exact} px is not supported by your device.`)}else d.name==="PermissionDeniedError"&&i("Permissions have not been granted to use your camera and microphone, you need to allow the page access to your devices in order for the demo to work.");i(`getUserMedia error: ${d.name}`,d)}return _t(async()=>{try{const d=await navigator.mediaDevices.getUserMedia(l);o(d)}catch(d){u(d)}}),Xi(()=>{window.stream.getTracks().forEach(function(d){d.stop()})}),e.$$set=d=>{"onMessage"in d&&n(0,i=d.onMessage)},[i]}class pr extends ye{constructor(t){super(),ge(this,t,fr,dr,pe,{onMessage:0})}}function mr(e){let t,n,i,l,o,u;return{c(){t=a("div"),n=a("button"),n.textContent="Show",i=m(),l=a("button"),l.textContent="Hide",r(n,"class","btn"),r(n,"id","show"),r(n,"title","Hides and shows the app after 2 seconds"),r(l,"class","btn"),r(l,"id","hide")},m(d,c){h(d,t,c),s(t,n),s(t,i),s(t,l),o||(u=[S(n,"click",e[0]),S(l,"click",e[1])],o=!0)},p:V,i:V,o:V,d(d){d&&p(t),o=!1,oe(u)}}}function hr(e,t,n){let{onMessage:i}=t;function l(){o().then(()=>{setTimeout(()=>{no().then(()=>i("Shown app")).catch(i)},2e3)}).catch(i)}function o(){return io().then(()=>i("Hide app")).catch(i)}return e.$$set=u=>{"onMessage"in u&&n(2,i=u.onMessage)},[l,o,i]}class _r extends ye{constructor(t){super(),ge(this,t,hr,mr,pe,{onMessage:2})}}function Ts(e,t,n){const i=e.slice();return i[32]=t[n],i}function As(e,t,n){const i=e.slice();return i[35]=t[n],i}function Ls(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b;function A(C,T){return C[3]?gr:br}let P=A(e),I=P(e);function O(C,T){return C[2]?vr:yr}let j=O(e),W=j(e);return{c(){t=a("div"),n=a("span"),n.textContent="Tauri API Validation",i=m(),l=a("span"),o=a("span"),I.c(),d=m(),c=a("span"),c.innerHTML='
',f=m(),g=a("span"),W.c(),_=m(),v=a("span"),v.innerHTML='
',r(n,"class","lt-sm:pl-10 text-darkPrimaryText"),r(o,"title",u=e[3]?"Switch to Light mode":"Switch to Dark mode"),r(o,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),r(c,"title","Minimize"),r(c,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),r(g,"title",k=e[2]?"Restore":"Maximize"),r(g,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),r(v,"title","Close"),r(v,"class","hover:bg-red-700 dark:hover:bg-red-700 hover:text-darkPrimaryText active:bg-red-700/90 dark:active:bg-red-700/90 active:text-darkPrimaryText "),r(l,"class","h-100% children:h-100% children:w-12 children:inline-flex children:items-center children:justify-center"),r(t,"class","w-screen select-none h-8 pl-2 flex justify-between items-center absolute text-primaryText dark:text-darkPrimaryText"),r(t,"data-tauri-drag-region","")},m(C,T){h(C,t,T),s(t,n),s(t,i),s(t,l),s(l,o),I.m(o,null),s(l,d),s(l,c),s(l,f),s(l,g),W.m(g,null),s(l,_),s(l,v),y||(b=[S(o,"click",e[12]),S(c,"click",e[9]),S(g,"click",e[10]),S(v,"click",e[11])],y=!0)},p(C,T){P!==(P=A(C))&&(I.d(1),I=P(C),I&&(I.c(),I.m(o,null))),T[0]&8&&u!==(u=C[3]?"Switch to Light mode":"Switch to Dark mode")&&r(o,"title",u),j!==(j=O(C))&&(W.d(1),W=j(C),W&&(W.c(),W.m(g,null))),T[0]&4&&k!==(k=C[2]?"Restore":"Maximize")&&r(g,"title",k)},d(C){C&&p(t),I.d(),W.d(),y=!1,oe(b)}}}function br(e){let t;return{c(){t=a("div"),r(t,"class","i-ph-moon")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function gr(e){let t;return{c(){t=a("div"),r(t,"class","i-ph-sun")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function yr(e){let t;return{c(){t=a("div"),r(t,"class","i-codicon-chrome-maximize")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function vr(e){let t;return{c(){t=a("div"),r(t,"class","i-codicon-chrome-restore")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function wr(e){let t;return{c(){t=a("span"),r(t,"class","i-codicon-menu animate-duration-300ms animate-fade-in")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function kr(e){let t;return{c(){t=a("span"),r(t,"class","i-codicon-close animate-duration-300ms animate-fade-in")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function Ss(e){let t,n,i,l,o,u,d,c,f;function g(v,y){return v[3]?Cr:Mr}let k=g(e),_=k(e);return{c(){t=a("a"),_.c(),n=m(),i=a("br"),l=m(),o=a("div"),u=m(),d=a("br"),r(t,"href","##"),r(t,"class","nv justify-between h-8"),r(o,"class","bg-white/5 h-2px")},m(v,y){h(v,t,y),_.m(t,null),h(v,n,y),h(v,i,y),h(v,l,y),h(v,o,y),h(v,u,y),h(v,d,y),c||(f=S(t,"click",e[12]),c=!0)},p(v,y){k!==(k=g(v))&&(_.d(1),_=k(v),_&&(_.c(),_.m(t,null)))},d(v){v&&p(t),_.d(),v&&p(n),v&&p(i),v&&p(l),v&&p(o),v&&p(u),v&&p(d),c=!1,f()}}}function Mr(e){let t,n;return{c(){t=z(`Switch to Dark mode - `),n=a("div"),r(n,"class","i-ph-moon")},m(i,l){h(i,t,l),h(i,n,l)},d(i){i&&p(t),i&&p(n)}}}function Cr(e){let t,n;return{c(){t=z(`Switch to Light mode - `),n=a("div"),r(n,"class","i-ph-sun")},m(i,l){h(i,t,l),h(i,n,l)},d(i){i&&p(t),i&&p(n)}}}function Tr(e){let t,n,i,l,o,u=e[35].label+"",d,c,f,g;function k(){return e[20](e[35])}return{c(){t=a("a"),n=a("div"),l=m(),o=a("p"),d=z(u),r(n,"class",i=e[35].icon+" mr-2"),r(t,"href","##"),r(t,"class",c="nv "+(e[1]===e[35]?"nv_selected":""))},m(_,v){h(_,t,v),s(t,n),s(t,l),s(t,o),s(o,d),f||(g=S(t,"click",k),f=!0)},p(_,v){e=_,v[0]&2&&c!==(c="nv "+(e[1]===e[35]?"nv_selected":""))&&r(t,"class",c)},d(_){_&&p(t),f=!1,g()}}}function zs(e){let t,n=e[35]&&Tr(e);return{c(){n&&n.c(),t=pi()},m(i,l){n&&n.m(i,l),h(i,t,l)},p(i,l){i[35]&&n.p(i,l)},d(i){n&&n.d(i),i&&p(t)}}}function Es(e){let t,n=e[32].html+"",i;return{c(){t=new Lo(!1),i=pi(),t.a=i},m(l,o){t.m(n,l,o),h(l,i,o)},p(l,o){o[0]&64&&n!==(n=l[32].html+"")&&t.p(n)},d(l){l&&p(i),l&&t.d()}}}function Ar(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,A,P,I,O,j,W,C,T,E,M,N,U=e[1].label+"",J,$,me,te,Y,de,x,H,X,K,ae,ne,he,_e,fe,re,Ae,Le,D=e[5]&&Ls(e);function G(F,ce){return F[0]?kr:wr}let Se=G(e),ve=Se(e),ue=!e[5]&&Ss(e),we=e[7],ie=[];for(let F=0;F{let[E,M]=T.split("=");return{...C,[E]:M}},{})}function y(){n(5,_=null);const C=new Ki(l,[...o,d],{cwd:c||null,env:v(),encoding:g});C.on("close",T=>{u(`command finished with code ${T.code} and signal ${T.signal}`),n(5,_=null)}),C.on("error",T=>u(`command error: "${T}"`)),C.stdout.on("data",T=>u(`command stdout: "${T}"`)),C.stderr.on("data",T=>u(`command stderr: "${T}"`)),C.spawn().then(T=>{n(5,_=T)}).catch(u)}function b(){_.kill().then(()=>u("killed child process")).catch(u)}function S(){_.write(k).catch(u)}function P(){d=this.value,n(0,d)}function I(){g=this.value,n(3,g)}function O(){c=this.value,n(1,c)}function j(){f=this.value,n(2,f)}function W(){k=this.value,n(4,k)}return e.$$set=C=>{"onMessage"in C&&n(9,u=C.onMessage)},[d,c,f,g,k,_,y,b,S,u,P,I,O,j,W]}class $a extends ye{constructor(t){super(),ge(this,t,Za,Qa,pe,{onMessage:9})}}var xa={};Me(xa,{checkUpdate:()=>go,installUpdate:()=>bo,onUpdaterEvent:()=>ll});async function ll(e){return tn("tauri://update-status",t=>{e(t==null?void 0:t.payload)})}async function bo(){let e;function t(){e&&e(),e=void 0}return new Promise((n,i)=>{function l(o){if(o.error){t(),i(o.error);return}o.status==="DONE"&&(t(),n())}ll(l).then(o=>{e=o}).catch(o=>{throw t(),o}),_i("tauri://update-install").catch(o=>{throw t(),o})})}async function go(){let e;function t(){e&&e(),e=void 0}return new Promise((n,i)=>{function l(u){t(),n({manifest:u,shouldUpdate:!0})}function o(u){if(u.error){t(),i(u.error);return}u.status==="UPTODATE"&&(t(),n({shouldUpdate:!1}))}Gs("tauri://update-available",u=>{l(u==null?void 0:u.payload)}).catch(u=>{throw t(),u}),ll(o).then(u=>{e=u}).catch(u=>{throw t(),u}),_i("tauri://update").catch(u=>{throw t(),u})})}function er(e){let t;return{c(){t=a("button"),t.innerHTML='
',r(t,"class","btn text-accentText dark:text-darkAccentText flex items-center justify-center")},m(n,i){h(n,t,i)},p:V,d(n){n&&p(t)}}}function tr(e){let t,n,i;return{c(){t=a("button"),t.textContent="Install update",r(t,"class","btn")},m(l,o){h(l,t,o),n||(i=L(t,"click",e[4]),n=!0)},p:V,d(l){l&&p(t),n=!1,i()}}}function nr(e){let t,n,i;return{c(){t=a("button"),t.textContent="Check update",r(t,"class","btn")},m(l,o){h(l,t,o),n||(i=L(t,"click",e[3]),n=!0)},p:V,d(l){l&&p(t),n=!1,i()}}}function ir(e){let t;function n(o,u){return!o[0]&&!o[2]?nr:!o[1]&&o[2]?tr:er}let i=n(e),l=i(e);return{c(){t=a("div"),l.c(),r(t,"class","flex children:grow children:h10")},m(o,u){h(o,t,u),l.m(t,null)},p(o,[u]){i===(i=n(o))&&l?l.p(o,u):(l.d(1),l=i(o),l&&(l.c(),l.m(t,null)))},i:V,o:V,d(o){o&&p(t),l.d()}}}function lr(e,t,n){let{onMessage:i}=t,l;_t(async()=>{l=await tn("tauri://update-status",i)}),Yi(()=>{l&&l()});let o,u,d;async function c(){n(0,o=!0);try{const{shouldUpdate:g,manifest:k}=await go();i(`Should update: ${g}`),i(k),n(2,d=g)}catch(g){i(g)}finally{n(0,o=!1)}}async function f(){n(1,u=!0);try{await bo(),i("Installation complete, restart required."),await el()}catch(g){i(g)}finally{n(1,u=!1)}}return e.$$set=g=>{"onMessage"in g&&n(5,i=g.onMessage)},[o,u,d,c,f,i]}class sr extends ye{constructor(t){super(),ge(this,t,lr,ir,pe,{onMessage:5})}}var or={};Me(or,{readText:()=>vo,writeText:()=>yo});async function yo(e){return A({__tauriModule:"Clipboard",message:{cmd:"writeText",data:e}})}async function vo(){return A({__tauriModule:"Clipboard",message:{cmd:"readText",data:null}})}function ar(e){let t,n,i,l,o,u,d,c;return{c(){t=a("div"),n=a("input"),i=m(),l=a("button"),l.textContent="Write",o=m(),u=a("button"),u.textContent="Read",r(n,"class","grow input"),r(n,"placeholder","Text to write to the clipboard"),r(l,"class","btn"),r(l,"type","button"),r(u,"class","btn"),r(u,"type","button"),r(t,"class","flex gap-1")},m(f,g){h(f,t,g),s(t,n),q(n,e[0]),s(t,i),s(t,l),s(t,o),s(t,u),d||(c=[L(n,"input",e[4]),L(l,"click",e[1]),L(u,"click",e[2])],d=!0)},p(f,[g]){g&1&&n.value!==f[0]&&q(n,f[0])},i:V,o:V,d(f){f&&p(t),d=!1,oe(c)}}}function rr(e,t,n){let{onMessage:i}=t,l="clipboard message";function o(){yo(l).then(()=>{i("Wrote to the clipboard")}).catch(i)}function u(){vo().then(c=>{i(`Clipboard contents: ${c}`)}).catch(i)}function d(){l=this.value,n(0,l)}return e.$$set=c=>{"onMessage"in c&&n(3,i=c.onMessage)},[l,o,u,i,d]}class ur extends ye{constructor(t){super(),ge(this,t,rr,ar,pe,{onMessage:3})}}function cr(e){let t;return{c(){t=a("div"),t.innerHTML=`
Not available for Linux
+ `,r(t,"class","flex flex-col gap-2")},m(n,i){h(n,t,i)},p:V,i:V,o:V,d(n){n&&p(t)}}}function dr(e,t,n){let{onMessage:i}=t;const l=window.constraints={audio:!0,video:!0};function o(d){const c=document.querySelector("video"),f=d.getVideoTracks();i("Got stream with constraints:",l),i(`Using video device: ${f[0].label}`),window.stream=d,c.srcObject=d}function u(d){if(d.name==="ConstraintNotSatisfiedError"){const c=l.video;i(`The resolution ${c.width.exact}x${c.height.exact} px is not supported by your device.`)}else d.name==="PermissionDeniedError"&&i("Permissions have not been granted to use your camera and microphone, you need to allow the page access to your devices in order for the demo to work.");i(`getUserMedia error: ${d.name}`,d)}return _t(async()=>{try{const d=await navigator.mediaDevices.getUserMedia(l);o(d)}catch(d){u(d)}}),Yi(()=>{window.stream.getTracks().forEach(function(d){d.stop()})}),e.$$set=d=>{"onMessage"in d&&n(0,i=d.onMessage)},[i]}class fr extends ye{constructor(t){super(),ge(this,t,dr,cr,pe,{onMessage:0})}}function pr(e){let t,n,i,l,o,u;return{c(){t=a("div"),n=a("button"),n.textContent="Show",i=m(),l=a("button"),l.textContent="Hide",r(n,"class","btn"),r(n,"id","show"),r(n,"title","Hides and shows the app after 2 seconds"),r(l,"class","btn"),r(l,"id","hide")},m(d,c){h(d,t,c),s(t,n),s(t,i),s(t,l),o||(u=[L(n,"click",e[0]),L(l,"click",e[1])],o=!0)},p:V,i:V,o:V,d(d){d&&p(t),o=!1,oe(u)}}}function mr(e,t,n){let{onMessage:i}=t;function l(){o().then(()=>{setTimeout(()=>{io().then(()=>i("Shown app")).catch(i)},2e3)}).catch(i)}function o(){return lo().then(()=>i("Hide app")).catch(i)}return e.$$set=u=>{"onMessage"in u&&n(2,i=u.onMessage)},[l,o,i]}class hr extends ye{constructor(t){super(),ge(this,t,mr,pr,pe,{onMessage:2})}}function As(e,t,n){const i=e.slice();return i[32]=t[n],i}function Ss(e,t,n){const i=e.slice();return i[35]=t[n],i}function Ls(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b;function S(C,T){return C[3]?br:_r}let P=S(e),I=P(e);function O(C,T){return C[2]?yr:gr}let j=O(e),W=j(e);return{c(){t=a("div"),n=a("span"),n.textContent="Tauri API Validation",i=m(),l=a("span"),o=a("span"),I.c(),d=m(),c=a("span"),c.innerHTML='
',f=m(),g=a("span"),W.c(),_=m(),v=a("span"),v.innerHTML='
',r(n,"class","lt-sm:pl-10 text-darkPrimaryText"),r(o,"title",u=e[3]?"Switch to Light mode":"Switch to Dark mode"),r(o,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),r(c,"title","Minimize"),r(c,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),r(g,"title",k=e[2]?"Restore":"Maximize"),r(g,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),r(v,"title","Close"),r(v,"class","hover:bg-red-700 dark:hover:bg-red-700 hover:text-darkPrimaryText active:bg-red-700/90 dark:active:bg-red-700/90 active:text-darkPrimaryText "),r(l,"class","h-100% children:h-100% children:w-12 children:inline-flex children:items-center children:justify-center"),r(t,"class","w-screen select-none h-8 pl-2 flex justify-between items-center absolute text-primaryText dark:text-darkPrimaryText"),r(t,"data-tauri-drag-region","")},m(C,T){h(C,t,T),s(t,n),s(t,i),s(t,l),s(l,o),I.m(o,null),s(l,d),s(l,c),s(l,f),s(l,g),W.m(g,null),s(l,_),s(l,v),y||(b=[L(o,"click",e[12]),L(c,"click",e[9]),L(g,"click",e[10]),L(v,"click",e[11])],y=!0)},p(C,T){P!==(P=S(C))&&(I.d(1),I=P(C),I&&(I.c(),I.m(o,null))),T[0]&8&&u!==(u=C[3]?"Switch to Light mode":"Switch to Dark mode")&&r(o,"title",u),j!==(j=O(C))&&(W.d(1),W=j(C),W&&(W.c(),W.m(g,null))),T[0]&4&&k!==(k=C[2]?"Restore":"Maximize")&&r(g,"title",k)},d(C){C&&p(t),I.d(),W.d(),y=!1,oe(b)}}}function _r(e){let t;return{c(){t=a("div"),r(t,"class","i-ph-moon")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function br(e){let t;return{c(){t=a("div"),r(t,"class","i-ph-sun")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function gr(e){let t;return{c(){t=a("div"),r(t,"class","i-codicon-chrome-maximize")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function yr(e){let t;return{c(){t=a("div"),r(t,"class","i-codicon-chrome-restore")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function vr(e){let t;return{c(){t=a("span"),r(t,"class","i-codicon-menu animate-duration-300ms animate-fade-in")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function wr(e){let t;return{c(){t=a("span"),r(t,"class","i-codicon-close animate-duration-300ms animate-fade-in")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function zs(e){let t,n,i,l,o,u,d,c,f;function g(v,y){return v[3]?Mr:kr}let k=g(e),_=k(e);return{c(){t=a("a"),_.c(),n=m(),i=a("br"),l=m(),o=a("div"),u=m(),d=a("br"),r(t,"href","##"),r(t,"class","nv justify-between h-8"),r(o,"class","bg-white/5 h-2px")},m(v,y){h(v,t,y),_.m(t,null),h(v,n,y),h(v,i,y),h(v,l,y),h(v,o,y),h(v,u,y),h(v,d,y),c||(f=L(t,"click",e[12]),c=!0)},p(v,y){k!==(k=g(v))&&(_.d(1),_=k(v),_&&(_.c(),_.m(t,null)))},d(v){v&&p(t),_.d(),v&&p(n),v&&p(i),v&&p(l),v&&p(o),v&&p(u),v&&p(d),c=!1,f()}}}function kr(e){let t,n;return{c(){t=z(`Switch to Dark mode + `),n=a("div"),r(n,"class","i-ph-moon")},m(i,l){h(i,t,l),h(i,n,l)},d(i){i&&p(t),i&&p(n)}}}function Mr(e){let t,n;return{c(){t=z(`Switch to Light mode + `),n=a("div"),r(n,"class","i-ph-sun")},m(i,l){h(i,t,l),h(i,n,l)},d(i){i&&p(t),i&&p(n)}}}function Cr(e){let t,n,i,l,o=e[35].label+"",u,d,c,f;function g(){return e[20](e[35])}return{c(){t=a("a"),n=a("div"),i=m(),l=a("p"),u=z(o),r(n,"class",e[35].icon+" mr-2"),r(t,"href","##"),r(t,"class",d="nv "+(e[1]===e[35]?"nv_selected":""))},m(k,_){h(k,t,_),s(t,n),s(t,i),s(t,l),s(l,u),c||(f=L(t,"click",g),c=!0)},p(k,_){e=k,_[0]&2&&d!==(d="nv "+(e[1]===e[35]?"nv_selected":""))&&r(t,"class",d)},d(k){k&&p(t),c=!1,f()}}}function Es(e){let t,n=e[35]&&Cr(e);return{c(){n&&n.c(),t=pi()},m(i,l){n&&n.m(i,l),h(i,t,l)},p(i,l){i[35]&&n.p(i,l)},d(i){n&&n.d(i),i&&p(t)}}}function Ws(e){let t,n=e[32].html+"",i;return{c(){t=new Lo(!1),i=pi(),t.a=i},m(l,o){t.m(n,l,o),h(l,i,o)},p(l,o){o[0]&64&&n!==(n=l[32].html+"")&&t.p(n)},d(l){l&&p(i),l&&t.d()}}}function Tr(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,S,P,I,O,j,W,C,T,E,M,F,U=e[1].label+"",J,x,me,te,Y,de,$,N,X,K,ae,ne,he,_e,fe,re,Ae,Se,D=e[5]&&Ls(e);function G(H,ce){return H[0]?wr:vr}let Le=G(e),ve=Le(e),ue=!e[5]&&zs(e),we=e[7],ie=[];for(let H=0;H`,k=m(),_=a("a"),_.innerHTML=`GitHub `,v=m(),y=a("a"),y.innerHTML=`Source - `,b=m(),A=a("br"),P=m(),I=a("div"),O=m(),j=a("br"),W=m(),C=a("div");for(let F=0;F',_e=m(),fe=a("div");for(let F=0;F{$t(B,1)}),hi()}ze?(Y=new ze(Je(F)),ui(Y.$$.fragment),Te(Y.$$.fragment,1),xt(Y,te,null)):Y=null}if(ce[0]&64){le=F[6];let B;for(B=0;B{await confirm("Are you sure?")||H.preventDefault()}),Ge.onFileDropEvent(H=>{P(`File drop: ${JSON.stringify(H.payload)}`)});const l=navigator.userAgent.toLowerCase(),o=l.includes("android")||l.includes("iphone"),u=[{label:"Welcome",component:ea,icon:"i-ph-hand-waving"},{label:"Communication",component:aa,icon:"i-codicon-radio-tower"},!o&&{label:"CLI",component:la,icon:"i-codicon-terminal"},!o&&{label:"Dialog",component:Ma,icon:"i-codicon-multiple-windows"},{label:"File system",component:La,icon:"i-codicon-files"},{label:"HTTP",component:Ha,icon:"i-ph-globe-hemisphere-west"},!o&&{label:"Notifications",component:Ua,icon:"i-codicon-bell-dot"},!o&&{label:"App",component:_r,icon:"i-codicon-hubot"},!o&&{label:"Window",component:Va,icon:"i-codicon-window"},!o&&{label:"Shortcuts",component:Qa,icon:"i-codicon-record-keys"},{label:"Shell",component:$a,icon:"i-codicon-terminal-bash"},!o&&{label:"Updater",component:or,icon:"i-codicon-cloud-download"},!o&&{label:"Clipboard",component:cr,icon:"i-codicon-clippy"},{label:"WebRTC",component:pr,icon:"i-ph-broadcast"}];let d=u[0];function c(H){n(1,d=H)}let f;_t(async()=>{const H=Kt();n(2,f=await H.isMaximized()),tn("tauri://resize",async()=>{n(2,f=await H.isMaximized())})});function g(){Kt().minimize()}async function k(){const H=Kt();await H.isMaximized()?H.unmaximize():H.maximize()}let _=!1;async function v(){_||(_=await ao("Are you sure that you want to close this window?",{title:"Tauri API"}),_&&Kt().close())}let y;_t(()=>{n(3,y=localStorage&&localStorage.getItem("theme")=="dark"),Ds(y)});function b(){n(3,y=!y),Ds(y)}let A=Hs([]);Os(e,A,H=>n(6,i=H));function P(H){A.update(X=>[{html:`
[${new Date().toLocaleTimeString()}]: `+(typeof H=="string"?H:JSON.stringify(H,null,1))+"
"},...X])}function I(H){A.update(X=>[{html:`
[${new Date().toLocaleTimeString()}]: `+H+"
"},...X])}function O(){A.update(()=>[])}let j,W,C;function T(H){C=H.clientY;const X=window.getComputedStyle(j);W=parseInt(X.height,10);const K=ne=>{const he=ne.clientY-C,_e=W-he;n(4,j.style.height=`${_e{document.removeEventListener("mouseup",ae),document.removeEventListener("mousemove",K)};document.addEventListener("mouseup",ae),document.addEventListener("mousemove",K)}let E;_t(async()=>{n(5,E=await xs()==="win32")});let M=!1,N,U,J=!1,$=0,me=0;const te=(H,X,K)=>Math.min(Math.max(X,H),K);_t(()=>{n(18,N=document.querySelector("#sidebar")),U=document.querySelector("#sidebarToggle"),document.addEventListener("click",H=>{U.contains(H.target)?n(0,M=!M):M&&!N.contains(H.target)&&n(0,M=!1)}),document.addEventListener("touchstart",H=>{if(U.contains(H.target))return;const X=H.touches[0].clientX;(0{if(J){const X=H.touches[0].clientX;me=X;const K=(X-$)/10;N.style.setProperty("--translate-x",`-${te(0,M?0-K:18.75-K,18.75)}rem`)}}),document.addEventListener("touchend",()=>{if(J){const H=(me-$)/10;n(0,M=M?H>-(18.75/2):H>18.75/2)}J=!1})});const Y=()=>Ki("https://tauri.app/"),de=H=>{c(H),n(0,M=!1)};function x(H){ri[H?"unshift":"push"](()=>{j=H,n(4,j)})}return e.$$.update=()=>{if(e.$$.dirty[0]&1){const H=document.querySelector("#sidebar");H&&Lr(H,M)}},[M,d,f,y,j,E,i,u,c,g,k,v,b,A,P,I,O,T,N,Y,de,x]}class zr extends ye{constructor(t){super(),ge(this,t,Sr,Ar,pe,{},null,[-1,-1])}}new zr({target:document.querySelector("#app")}); + `,b=m(),S=a("br"),P=m(),I=a("div"),O=m(),j=a("br"),W=m(),C=a("div");for(let H=0;H',_e=m(),fe=a("div");for(let H=0;H{xt(B,1)}),hi()}ze?(Y=new ze(Je(H)),ui(Y.$$.fragment),Te(Y.$$.fragment,1),$t(Y,te,null)):Y=null}if(ce[0]&64){le=H[6];let B;for(B=0;B{await confirm("Are you sure?")||N.preventDefault()}),Ge.onFileDropEvent(N=>{P(`File drop: ${JSON.stringify(N.payload)}`)});const l=navigator.userAgent.toLowerCase(),o=l.includes("android")||l.includes("iphone"),u=[{label:"Welcome",component:ea,icon:"i-ph-hand-waving"},{label:"Communication",component:aa,icon:"i-codicon-radio-tower"},!o&&{label:"CLI",component:la,icon:"i-codicon-terminal"},!o&&{label:"Dialog",component:Ma,icon:"i-codicon-multiple-windows"},{label:"File system",component:Sa,icon:"i-codicon-files"},{label:"HTTP",component:Na,icon:"i-ph-globe-hemisphere-west"},!o&&{label:"Notifications",component:ja,icon:"i-codicon-bell-dot"},!o&&{label:"App",component:hr,icon:"i-codicon-hubot"},!o&&{label:"Window",component:Ba,icon:"i-codicon-window"},!o&&{label:"Shortcuts",component:Ka,icon:"i-codicon-record-keys"},{label:"Shell",component:$a,icon:"i-codicon-terminal-bash"},!o&&{label:"Updater",component:sr,icon:"i-codicon-cloud-download"},!o&&{label:"Clipboard",component:ur,icon:"i-codicon-clippy"},{label:"WebRTC",component:fr,icon:"i-ph-broadcast"}];let d=u[0];function c(N){n(1,d=N)}let f;_t(async()=>{const N=Kt();n(2,f=await N.isMaximized()),tn("tauri://resize",async()=>{n(2,f=await N.isMaximized())})});function g(){Kt().minimize()}async function k(){const N=Kt();await N.isMaximized()?N.unmaximize():N.maximize()}let _=!1;async function v(){_||(_=await ro("Are you sure that you want to close this window?",{title:"Tauri API"}),_&&Kt().close())}let y;_t(()=>{n(3,y=localStorage&&localStorage.getItem("theme")=="dark"),Ps(y)});function b(){n(3,y=!y),Ps(y)}let S=Hs([]);Rs(e,S,N=>n(6,i=N));function P(N){S.update(X=>[{html:`
[${new Date().toLocaleTimeString()}]: `+(typeof N=="string"?N:JSON.stringify(N,null,1))+"
"},...X])}function I(N){S.update(X=>[{html:`
[${new Date().toLocaleTimeString()}]: `+N+"
"},...X])}function O(){S.update(()=>[])}let j,W,C;function T(N){C=N.clientY;const X=window.getComputedStyle(j);W=parseInt(X.height,10);const K=ne=>{const he=ne.clientY-C,_e=W-he;n(4,j.style.height=`${_e{document.removeEventListener("mouseup",ae),document.removeEventListener("mousemove",K)};document.addEventListener("mouseup",ae),document.addEventListener("mousemove",K)}let E;_t(async()=>{n(5,E=await $s()==="win32")});let M=!1,F,U,J=!1,x=0,me=0;const te=(N,X,K)=>Math.min(Math.max(X,N),K);_t(()=>{n(18,F=document.querySelector("#sidebar")),U=document.querySelector("#sidebarToggle"),document.addEventListener("click",N=>{U.contains(N.target)?n(0,M=!M):M&&!F.contains(N.target)&&n(0,M=!1)}),document.addEventListener("touchstart",N=>{if(U.contains(N.target))return;const X=N.touches[0].clientX;(0{if(J){const X=N.touches[0].clientX;me=X;const K=(X-x)/10;F.style.setProperty("--translate-x",`-${te(0,M?0-K:18.75-K,18.75)}rem`)}}),document.addEventListener("touchend",()=>{if(J){const N=(me-x)/10;n(0,M=M?N>-(18.75/2):N>18.75/2)}J=!1})});const Y=()=>Qi("https://tauri.app/"),de=N=>{c(N),n(0,M=!1)};function $(N){ri[N?"unshift":"push"](()=>{j=N,n(4,j)})}return e.$$.update=()=>{if(e.$$.dirty[0]&1){const N=document.querySelector("#sidebar");N&&Ar(N,M)}},[M,d,f,y,j,E,i,u,c,g,k,v,b,S,P,I,O,T,F,Y,de,$]}class Lr extends ye{constructor(t){super(),ge(this,t,Sr,Tr,pe,{},null,[-1,-1])}}new Lr({target:document.querySelector("#app")}); diff --git a/examples/api/src-tauri/Cargo.lock b/examples/api/src-tauri/Cargo.lock index 080a409e25d5..93236c254067 100644 --- a/examples/api/src-tauri/Cargo.lock +++ b/examples/api/src-tauri/Cargo.lock @@ -10,9 +10,9 @@ checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" [[package]] name = "aead" -version = "0.5.1" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c192eb8f11fc081b0fe4259ba5af04217d4e0faddd02417310a927911abd7c8" +checksum = "d122413f284cf2d62fb1b7db97e02edb8cda96d769b16e443a4f6195e35662b0" dependencies = [ "crypto-common", "generic-array", @@ -20,9 +20,9 @@ dependencies = [ [[package]] name = "aes" -version = "0.8.2" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "433cfd6710c9986c576a25ca913c39d66a6474107b406f34f91d4a8923395241" +checksum = "ac1f845298e95f983ff1944b728ae08b8cebab80d684f0a832ed0fc74dfa27e2" dependencies = [ "cfg-if", "cipher", @@ -31,9 +31,9 @@ dependencies = [ [[package]] name = "aes-gcm" -version = "0.10.1" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82e1366e0c69c9f927b1fa5ce2c7bf9eafc8f9268c0b9800729e8b267612447c" +checksum = "209b47e8954a928e1d72e86eca7000ebb6655fe1436d33eefc2201cad027e237" dependencies = [ "aead", "aes", @@ -52,6 +52,15 @@ dependencies = [ "memchr", ] +[[package]] +name = "aho-corasick" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43f6cb1bf222025340178f382c426f13757b2960e89779dfcb319c32542a5a41" +dependencies = [ + "memchr", +] + [[package]] name = "alloc-no-stdlib" version = "2.0.4" @@ -67,6 +76,12 @@ dependencies = [ "alloc-no-stdlib", ] +[[package]] +name = "android-tzdata" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" + [[package]] name = "android_log-sys" version = "0.2.0" @@ -96,9 +111,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.68" +version = "1.0.71" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2cb2f989d18dd141ab8ae82f64d1a8cdd37e0840f73a406896cf5e99502fab61" +checksum = "9c7d0618f0e0b7e8ff11427422b64564d5fb0be1940354bfe2e0529b18a9d9b8" [[package]] name = "api" @@ -148,9 +163,9 @@ dependencies = [ [[package]] name = "async-executor" -version = "1.5.0" +version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17adb73da160dfb475c183343c8cccd80721ea5a605d3eb57125f0a7b7a92d0b" +checksum = "6fa3dc5f2a8564f07759c008b9109dc0d39de92a88d5588b8a5036d286383afb" dependencies = [ "async-lock", "async-task", @@ -203,13 +218,13 @@ dependencies = [ [[package]] name = "async-recursion" -version = "1.0.2" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b015a331cc64ebd1774ba119538573603427eaace0a1950c423ab971f903796" +checksum = "0e97ce7de6cf12de5d7226c73f5ba9811622f4db3a5b91b55c53e987e5f91cba" dependencies = [ "proc-macro2", "quote", - "syn 1.0.107", + "syn 2.0.18", ] [[package]] @@ -220,13 +235,13 @@ checksum = "ecc7ab41815b3c653ccd2978ec3255c81349336702dfdf62ee6f7069b12a3aae" [[package]] name = "async-trait" -version = "0.1.66" +version = "0.1.68" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b84f9ebcc6c1f5b8cb160f6990096a5c127f423fcb6e1ccc46c370cbdfb75dfc" +checksum = "b9ccdd8f2a161be9bd5c023df56f1b2a0bd1d83872ae53b71a84a12c9bf6e842" dependencies = [ "proc-macro2", "quote", - "syn 1.0.107", + "syn 2.0.18", ] [[package]] @@ -250,14 +265,14 @@ dependencies = [ "glib-sys", "gobject-sys", "libc", - "system-deps 6.0.3", + "system-deps 6.1.0", ] [[package]] name = "atomic-waker" -version = "1.1.0" +version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "debc29dde2e69f9e47506b525f639ed42300fc014a3e007832592448fa8e4599" +checksum = "1181e1e0d1fce796a03db1ae795d67167da795f9cf4a39c37589e85ef57f26d3" [[package]] name = "atty" @@ -284,9 +299,9 @@ checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" [[package]] name = "base64" -version = "0.21.0" +version = "0.21.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4a4ddaa51a5bc52a6948f74c06d20aaaddb71924eab79b8c97a8c556e942d6a" +checksum = "604178f6c5c21f02dc555784810edfb88d34ac2c73b2eae109655649ee73ce3d" [[package]] name = "bitflags" @@ -302,18 +317,18 @@ checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a" [[package]] name = "block-buffer" -version = "0.10.3" +version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69cce20737498f97b993470a6e536b8523f0af7892a4f928cceb1ac5e52ebe7e" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" dependencies = [ "generic-array", ] [[package]] name = "blocking" -version = "1.3.0" +version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c67b173a56acffd6d2326fb7ab938ba0b00a71480e14902b2591c87bc5741e8" +checksum = "77231a1c8f801696fc0123ec6150ce92cffb8e164a02afb9c8ddee0e9b65ad65" dependencies = [ "async-channel", "async-lock", @@ -321,6 +336,7 @@ dependencies = [ "atomic-waker", "fastrand", "futures-lite", + "log", ] [[package]] @@ -346,24 +362,25 @@ dependencies = [ [[package]] name = "bstr" -version = "0.2.17" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba3569f383e8f1598449f1a423e72e99569137b47740b1da11ef19af3d5c3223" +checksum = "a246e68bb43f6cd9db24bea052a53e40405417c5fb372e3d1a8a7f770a564ef5" dependencies = [ "memchr", + "serde", ] [[package]] name = "bumpalo" -version = "3.12.0" +version = "3.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d261e256854913907f67ed06efbc3338dfe6179796deefc1ff763fc1aee5535" +checksum = "a3e2c3daef883ecc1b5d58c15adae93470a91d425f3532ba1695849656af3fc1" [[package]] name = "bytemuck" -version = "1.12.3" +version = "1.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aaa3a8d9a1ca92e282c96a32d6511b695d7d994d1d102ba85d279f9b2756947f" +checksum = "17febce684fd15d89027105661fec94afb475cb995fbc59d2865198446ba2eea" [[package]] name = "byteorder" @@ -373,9 +390,9 @@ checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" [[package]] name = "bytes" -version = "1.3.0" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfb24e866b15a1af2a1b663f10c6b6b8f397a84aadb828f12e5b289ec23a3a3c" +checksum = "89b2fd2a0dcf38d7971e2194b6b6eebab45ae01067456a7fd93d5547a61b70be" dependencies = [ "serde", ] @@ -401,17 +418,17 @@ checksum = "3c55d429bef56ac9172d25fecb85dc8068307d17acd74b377866b7a1ef25d3c8" dependencies = [ "glib-sys", "libc", - "system-deps 6.0.3", + "system-deps 6.1.0", ] [[package]] name = "cargo_toml" -version = "0.15.2" +version = "0.15.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f83bc2e401ed041b7057345ebc488c005efa0341d5541ce7004d30458d0090b" +checksum = "599aa35200ffff8f04c1925aa1acc92fa2e08874379ef42e210a80e527e60838" dependencies = [ "serde", - "toml 0.7.3", + "toml 0.7.4", ] [[package]] @@ -448,11 +465,12 @@ dependencies = [ [[package]] name = "cfg-expr" -version = "0.11.0" +version = "0.15.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0357a6402b295ca3a86bc148e84df46c02e41f41fef186bda662557ef6328aa" +checksum = "215c0072ecc28f92eeb0eea38ba63ddfcb65c2828c46311d646f1a3ff5f9841c" dependencies = [ "smallvec", + "target-lexicon", ] [[package]] @@ -463,12 +481,12 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "chrono" -version = "0.4.24" +version = "0.4.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e3c5919066adf22df73762e50cffcde3a758f2a848b113b586d1f86728b673b" +checksum = "ec837a71355b28f6556dbd569b37b3f363091c0bd4b2e735674521b4c5fd9bc5" dependencies = [ + "android-tzdata", "iana-time-zone", - "num-integer", "num-traits", "serde", "winapi", @@ -482,9 +500,9 @@ checksum = "cca491388666e04d7248af3f60f0c40cfb0991c72205595d7c396e3510207d1a" [[package]] name = "cipher" -version = "0.4.3" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1873270f8f7942c191139cb8a40fd228da6c3fd2fc376d7e92d47aa14aeb59e" +checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" dependencies = [ "crypto-common", "inout", @@ -492,9 +510,9 @@ dependencies = [ [[package]] name = "clap" -version = "3.2.23" +version = "3.2.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "71655c45cb9845d3270c9d6df84ebe72b4dad3c2ba3f7023ad47c144e4e473a5" +checksum = "4ea181bf566f71cb9a5d17a59e1871af638180a18fb0035c92ae62b705207123" dependencies = [ "atty", "bitflags", @@ -532,9 +550,9 @@ dependencies = [ [[package]] name = "cocoa-foundation" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ade49b65d560ca58c403a479bb396592b155c0185eada742ee323d1d68d6318" +checksum = "931d3837c286f56e3c58423ce4eba12d08db2374461a785c86f672b08b5650d6" dependencies = [ "bitflags", "block", @@ -545,16 +563,6 @@ dependencies = [ "objc", ] -[[package]] -name = "codespan-reporting" -version = "0.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3538270d33cc669650c4b093848450d380def10c331d38c768e34cac80576e6e" -dependencies = [ - "termcolor", - "unicode-width", -] - [[package]] name = "color_quant" version = "1.1.0" @@ -573,9 +581,9 @@ dependencies = [ [[package]] name = "concurrent-queue" -version = "2.1.0" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c278839b831783b70278b14df4d45e1beb1aad306c07bb796637de9a0e323e8e" +checksum = "62ec6771ecfa0762d24683ee5a32ad78487a3d3afdc0fb8cae19d2c5deb50b7c" dependencies = [ "crossbeam-utils", ] @@ -598,9 +606,9 @@ dependencies = [ [[package]] name = "core-foundation-sys" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc" +checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa" [[package]] name = "core-graphics" @@ -629,9 +637,9 @@ dependencies = [ [[package]] name = "cpufeatures" -version = "0.2.5" +version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28d997bd5e24a5928dd43e46dc529867e207907fe0b239c3477d924f7f2ca320" +checksum = "03e69e28e9f7f77debdedbaafa2866e1de9ba56df55a8bd7cfc724c25a09987c" dependencies = [ "libc", ] @@ -647,9 +655,9 @@ dependencies = [ [[package]] name = "crossbeam-channel" -version = "0.5.6" +version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2dd04ddaf88237dc3b8d8f9a3c1004b506b54b3313403944054d23c0870c521" +checksum = "a33c2bf77f2df06183c3aa30d1e96c0695a313d4f9c453cc3762a6db39f99200" dependencies = [ "cfg-if", "crossbeam-utils", @@ -657,9 +665,9 @@ dependencies = [ [[package]] name = "crossbeam-utils" -version = "0.8.14" +version = "0.8.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fb766fa798726286dbbb842f174001dab8abc7b627a1dd86e0b7222a95d929f" +checksum = "5a22b2d63d4d1dc0b7f1b6b2747dd0088008a9be28b6ddf0b1e7d335e3037294" dependencies = [ "cfg-if", ] @@ -689,17 +697,17 @@ dependencies = [ "proc-macro2", "quote", "smallvec", - "syn 1.0.107", + "syn 1.0.109", ] [[package]] name = "cssparser-macros" -version = "0.6.0" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfae75de57f2b2e85e8768c3ea840fd159c8f33e2b6522c7835b7abac81be16e" +checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331" dependencies = [ "quote", - "syn 1.0.107", + "syn 2.0.18", ] [[package]] @@ -709,7 +717,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6d2301688392eb071b0bf1a37be05c469d3cc4dbbd95df672fe28ab021e6a096" dependencies = [ "quote", - "syn 1.0.107", + "syn 1.0.109", ] [[package]] @@ -721,56 +729,6 @@ dependencies = [ "cipher", ] -[[package]] -name = "cty" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b365fabc795046672053e29c954733ec3b05e4be654ab130fe8f1f94d7051f35" - -[[package]] -name = "cxx" -version = "1.0.94" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f61f1b6389c3fe1c316bf8a4dccc90a38208354b330925bce1f74a6c4756eb93" -dependencies = [ - "cc", - "cxxbridge-flags", - "cxxbridge-macro", - "link-cplusplus", -] - -[[package]] -name = "cxx-build" -version = "1.0.94" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12cee708e8962df2aeb38f594aae5d827c022b6460ac71a7a3e2c3c2aae5a07b" -dependencies = [ - "cc", - "codespan-reporting", - "once_cell", - "proc-macro2", - "quote", - "scratch", - "syn 2.0.15", -] - -[[package]] -name = "cxxbridge-flags" -version = "1.0.94" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7944172ae7e4068c533afbb984114a56c46e9ccddda550499caa222902c7f7bb" - -[[package]] -name = "cxxbridge-macro" -version = "1.0.94" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2345488264226bf682893e25de0769f3360aac9957980ec49361b083ddaa5bc5" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.15", -] - [[package]] name = "darling" version = "0.20.1" @@ -792,7 +750,7 @@ dependencies = [ "proc-macro2", "quote", "strsim", - "syn 2.0.15", + "syn 2.0.18", ] [[package]] @@ -803,7 +761,7 @@ checksum = "29a358ff9f12ec09c3e61fef9b5a9902623a695a46a917b07f269bff1445611a" dependencies = [ "darling_core", "quote", - "syn 2.0.15", + "syn 2.0.18", ] [[package]] @@ -814,7 +772,7 @@ checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" dependencies = [ "proc-macro2", "quote", - "syn 1.0.107", + "syn 1.0.109", ] [[package]] @@ -826,29 +784,20 @@ dependencies = [ "convert_case", "proc-macro2", "quote", - "rustc_version 0.4.0", - "syn 1.0.107", + "rustc_version", + "syn 1.0.109", ] [[package]] name = "digest" -version = "0.10.6" +version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8168378f4e5023e7218c89c891c0fd8ecdb5e5e4f18cb78f38cf245dd021e76f" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [ "block-buffer", "crypto-common", ] -[[package]] -name = "dirs" -version = "4.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca3aa72a6f96ea37bbc5aa912f6788242832f75369bdfdadcb0e38423f100059" -dependencies = [ - "dirs-sys", -] - [[package]] name = "dirs-next" version = "2.0.0" @@ -859,17 +808,6 @@ dependencies = [ "dirs-sys-next", ] -[[package]] -name = "dirs-sys" -version = "0.3.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b1d1d91c932ef41c0f2663aa8b0ca0342d444d842c06914aa0a7e352d0bada6" -dependencies = [ - "libc", - "redox_users", - "winapi", -] - [[package]] name = "dirs-sys-next" version = "0.1.2" @@ -889,24 +827,37 @@ checksum = "bd0c93bb4b0c6d9b77f4435b0ae98c24d17f1c45b2ff844c6151a07256ca923b" [[package]] name = "dtoa" -version = "0.4.8" +version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56899898ce76aaf4a0f24d914c97ea6ed976d42fec6ad33fcbb0a1103e07b2b0" +checksum = "65d09067bfacaa79114679b279d7f5885b53295b1e2cfb4e79c8e4bd3d633169" [[package]] name = "dtoa-short" -version = "0.3.3" +version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bde03329ae10e79ede66c9ce4dc930aa8599043b0743008548680f25b91502d6" +checksum = "dbaceec3c6e4211c79e7b1800fb9680527106beb2f9c51904a3210c03a448c74" dependencies = [ "dtoa", ] [[package]] name = "dunce" -version = "1.0.3" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0bd4b30a6560bbd9b4620f4de34c3f14f60848e58a9b7216801afcb4c7b31c3c" +checksum = "56ce8c6da7551ec6c462cbaf3bfbc75131ebbfa1c944aeaa9dab51ca1c5f0c3b" + +[[package]] +name = "embed-resource" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "80663502655af01a2902dff3f06869330782267924bf1788410b74edcd93770a" +dependencies = [ + "cc", + "rustc_version", + "toml 0.7.4", + "vswhom", + "winreg 0.11.0", +] [[package]] name = "embed_plist" @@ -916,9 +867,9 @@ checksum = "4ef6b89e5b37196644d8796de5268852ff179b44e96276cf4290264843743bb7" [[package]] name = "encoding_rs" -version = "0.8.31" +version = "0.8.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9852635589dc9f9ea1b6fe9f05b50ef208c85c834a562f0c6abb1c475736ec2b" +checksum = "071a31f4ee85403370b58aca746f01041ede6f0da2730960ad001edc2b71b394" dependencies = [ "cfg-if", ] @@ -941,7 +892,7 @@ checksum = "5e9a1f9f7d83e59740248a6e14ecf93929ade55027844dfcea78beafccc15745" dependencies = [ "proc-macro2", "quote", - "syn 2.0.15", + "syn 2.0.18", ] [[package]] @@ -969,13 +920,13 @@ dependencies = [ [[package]] name = "errno" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50d6a0976c999d473fe89ad888d5a284e55366d9dc9038b1ba2aa15128c4afa0" +checksum = "4bcfec3a70f97c962c307b2d2c56e358cf1d00b558d74262b5f929ee8cc7e73a" dependencies = [ "errno-dragonfly", "libc", - "windows-sys 0.45.0", + "windows-sys 0.48.0", ] [[package]] @@ -996,40 +947,49 @@ checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0" [[package]] name = "fastrand" -version = "1.8.0" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7a407cfaa3385c4ae6b23e84623d48c2798d06e3e6a1878f7f59f17b3f86499" +checksum = "e51093e27b0797c359783294ca4f0a911c270184cb10f85783b118614a1501be" dependencies = [ "instant", ] +[[package]] +name = "fdeflate" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d329bdeac514ee06249dabc27877490f17f5d371ec693360768b838e19f3ae10" +dependencies = [ + "simd-adler32", +] + [[package]] name = "field-offset" -version = "0.3.4" +version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e1c54951450cbd39f3dbcf1005ac413b49487dabf18a720ad2383eccfeffb92" +checksum = "38e2275cc4e4fc009b0669731a1e5ab7ebf11f469eaede2bab9309a5b4d6057f" dependencies = [ - "memoffset 0.6.5", - "rustc_version 0.3.3", + "memoffset 0.9.0", + "rustc_version", ] [[package]] name = "filetime" -version = "0.2.19" +version = "0.2.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e884668cd0c7480504233e951174ddc3b382f7c2666e3b7310b5c4e7b0c37f9" +checksum = "5cbc844cecaee9d4443931972e1289c8ff485cb4cc2767cb03ca139ed6885153" dependencies = [ "cfg-if", "libc", - "redox_syscall", - "windows-sys 0.42.0", + "redox_syscall 0.2.16", + "windows-sys 0.48.0", ] [[package]] name = "flate2" -version = "1.0.25" +version = "1.0.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8a2db397cb1c8772f31494cb8917e48cd1e64f0fa7efac59fbd741a0a8ce841" +checksum = "3b9429470923de8e8cbd4d2dc513535400b4b3fef0319fb5c4e1f520a7bef743" dependencies = [ "crc32fast", "miniz_oxide", @@ -1058,9 +1018,9 @@ checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" [[package]] name = "form_urlencoded" -version = "1.1.0" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9c384f161156f5260c24a097c56119f9be8c798586aecc13afbcbe7b7e26bf8" +checksum = "a62bc1cf6f830c2ec14a513a9fb124d0a213a629668a4186f329db21fe045652" dependencies = [ "percent-encoding", ] @@ -1077,24 +1037,24 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.25" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52ba265a92256105f45b719605a571ffe2d1f0fea3807304b522c1d778f79eed" +checksum = "955518d47e09b25bbebc7a18df10b81f0c766eaf4c4f1cccef2fca5f2a4fb5f2" dependencies = [ "futures-core", ] [[package]] name = "futures-core" -version = "0.3.25" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04909a7a7e4633ae6c4a9ab280aeb86da1236243a77b694a49eacd659a4bd3ac" +checksum = "4bca583b7e26f571124fe5b7561d49cb2868d79116cfa0eefce955557c6fee8c" [[package]] name = "futures-executor" -version = "0.3.25" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7acc85df6714c176ab5edf386123fafe217be88c0840ec11f199441134a074e2" +checksum = "ccecee823288125bd88b4d7f565c9e58e41858e47ab72e8ea2d64e93624386e0" dependencies = [ "futures-core", "futures-task", @@ -1103,15 +1063,15 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.25" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00f5fb52a06bdcadeb54e8d3671f8888a39697dcb0b81b23b55174030427f4eb" +checksum = "4fff74096e71ed47f8e023204cfd0aa1289cd54ae5430a9523be060cdb849964" [[package]] name = "futures-lite" -version = "1.12.0" +version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7694489acd39452c77daa48516b894c153f192c3578d5a839b62c58099fcbf48" +checksum = "49a9d51ce47660b1e808d3c990b4709f2f415d928835a17dfd16991515c46bce" dependencies = [ "fastrand", "futures-core", @@ -1124,32 +1084,32 @@ dependencies = [ [[package]] name = "futures-macro" -version = "0.3.25" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bdfb8ce053d86b91919aad980c220b1fb8401a9394410e1c289ed7e66b61835d" +checksum = "89ca545a94061b6365f2c7355b4b32bd20df3ff95f02da9329b34ccc3bd6ee72" dependencies = [ "proc-macro2", "quote", - "syn 1.0.107", + "syn 2.0.18", ] [[package]] name = "futures-sink" -version = "0.3.25" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39c15cf1a4aa79df40f1bb462fb39676d0ad9e366c2a33b590d7c66f4f81fcf9" +checksum = "f43be4fe21a13b9781a69afa4985b0f6ee0e1afab2c6f454a8cf30e2b2237b6e" [[package]] name = "futures-task" -version = "0.3.25" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ffb393ac5d9a6eaa9d3fdf37ae2776656b706e200c8e16b1bdb227f5198e6ea" +checksum = "76d3d132be6c0e6aa1534069c705a74a5997a356c0dc2f86a47765e5617c5b65" [[package]] name = "futures-util" -version = "0.3.25" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "197676987abd2f9cadff84926f410af1c183608d36641465df73ae8211dc65d6" +checksum = "26b01e40b772d54cf6c6d721c1d1abd0647a0106a12ecaa1c186273392a69533" dependencies = [ "futures-core", "futures-io", @@ -1210,7 +1170,7 @@ dependencies = [ "glib-sys", "gobject-sys", "libc", - "system-deps 6.0.3", + "system-deps 6.1.0", ] [[package]] @@ -1227,7 +1187,21 @@ dependencies = [ "libc", "pango-sys", "pkg-config", - "system-deps 6.0.3", + "system-deps 6.1.0", +] + +[[package]] +name = "gdkwayland-sys" +version = "0.15.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cca49a59ad8cfdf36ef7330fe7bdfbe1d34323220cc16a0de2679ee773aee2c2" +dependencies = [ + "gdk-sys", + "glib-sys", + "gobject-sys", + "libc", + "pkg-config", + "system-deps 6.1.0", ] [[package]] @@ -1239,28 +1213,28 @@ dependencies = [ "gdk-sys", "glib-sys", "libc", - "system-deps 6.0.3", + "system-deps 6.1.0", "x11", ] [[package]] name = "generator" -version = "0.7.2" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d266041a359dfa931b370ef684cceb84b166beb14f7f0421f4a6a3d0c446d12e" +checksum = "f3e123d9ae7c02966b4d892e550bdc32164f05853cd40ab570650ad600596a8a" dependencies = [ "cc", "libc", "log", "rustversion", - "windows 0.39.0", + "windows 0.48.0", ] [[package]] name = "generic-array" -version = "0.14.6" +version = "0.14.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bff49e947297f3312447abdca79f45f4738097cc82b06e72054d2223f601f1b9" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" dependencies = [ "typenum", "version_check", @@ -1279,9 +1253,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.8" +version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31" +checksum = "be4136b2a15dd319360be1c07d9933517ccf0be8f16bf62a3bee4f0d618df427" dependencies = [ "cfg-if", "libc", @@ -1324,7 +1298,7 @@ dependencies = [ "glib-sys", "gobject-sys", "libc", - "system-deps 6.0.3", + "system-deps 6.1.0", "winapi", ] @@ -1350,17 +1324,17 @@ dependencies = [ [[package]] name = "glib-macros" -version = "0.15.11" +version = "0.15.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25a68131a662b04931e71891fb14aaf65ee4b44d08e8abc10f49e77418c86c64" +checksum = "10c6ae9f6fa26f4fb2ac16b528d138d971ead56141de489f8111e259b9df3c4a" dependencies = [ "anyhow", - "heck 0.4.0", + "heck 0.4.1", "proc-macro-crate", "proc-macro-error", "proc-macro2", "quote", - "syn 1.0.107", + "syn 1.0.109", ] [[package]] @@ -1370,7 +1344,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ef4b192f8e65e9cf76cbf4ea71fa8e3be4a0e18ffe3d68b8da6836974cc5bad4" dependencies = [ "libc", - "system-deps 6.0.3", + "system-deps 6.1.0", ] [[package]] @@ -1381,11 +1355,11 @@ checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" [[package]] name = "globset" -version = "0.4.9" +version = "0.4.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a1e17342619edbc21a964c2afbeb6c820c6a2560032872f397bb97ea127bd0a" +checksum = "029d74589adefde59de1a0c4f4732695c32805624aec7b68d91503d4dba79afc" dependencies = [ - "aho-corasick", + "aho-corasick 0.7.20", "bstr", "fnv", "log", @@ -1400,7 +1374,7 @@ checksum = "0d57ce44246becd17153bd035ab4d32cfee096a657fc01f2231c9278378d1e0a" dependencies = [ "glib-sys", "libc", - "system-deps 6.0.3", + "system-deps 6.1.0", ] [[package]] @@ -1441,21 +1415,21 @@ dependencies = [ "gobject-sys", "libc", "pango-sys", - "system-deps 6.0.3", + "system-deps 6.1.0", ] [[package]] name = "gtk3-macros" -version = "0.15.4" +version = "0.15.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24f518afe90c23fba585b2d7697856f9e6a7bbc62f65588035e66f6afb01a2e9" +checksum = "684c0456c086e8e7e9af73ec5b84e35938df394712054550e81558d21c44ab0d" dependencies = [ "anyhow", "proc-macro-crate", "proc-macro-error", "proc-macro2", "quote", - "syn 1.0.107", + "syn 1.0.109", ] [[package]] @@ -1494,9 +1468,9 @@ dependencies = [ [[package]] name = "heck" -version = "0.4.0" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2540771e65fc8cb83cd6e8a237f70c319bd5c29f78ed1084ba5d50eeac86f7f9" +checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" [[package]] name = "hermit-abi" @@ -1539,18 +1513,18 @@ dependencies = [ "markup5ever", "proc-macro2", "quote", - "syn 1.0.107", + "syn 1.0.109", ] [[package]] name = "http" -version = "0.2.8" +version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75f43d41e26995c17e71ee126451dd3941010b0514a81a9d11f3b341debc2399" +checksum = "bd6effc99afb63425aff9b05836f029929e345a6148a14b7ecd5ab67af944482" dependencies = [ "bytes", "fnv", - "itoa 1.0.5", + "itoa 1.0.6", ] [[package]] @@ -1590,9 +1564,9 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "hyper" -version = "0.14.23" +version = "0.14.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "034711faac9d2166cb1baf1a2fb0b60b1f277f8492fd72176c17f3515e1abd3c" +checksum = "ab302d72a6f11a3b910431ff93aae7e773078c769f0a3ef15fb9ec692ed147d4" dependencies = [ "bytes", "futures-channel", @@ -1603,7 +1577,7 @@ dependencies = [ "http-body", "httparse", "httpdate", - "itoa 1.0.5", + "itoa 1.0.6", "pin-project-lite", "socket2", "tokio", @@ -1627,9 +1601,9 @@ dependencies = [ [[package]] name = "iana-time-zone" -version = "0.1.56" +version = "0.1.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0722cd7114b7de04316e7ea5456a0bbb20e4adb46fd27a3697adb812cff0f37c" +checksum = "2fad5b825842d2b38bd206f3e81d6957625fd7f0a361e345c30e01a0ae2dd613" dependencies = [ "android_system_properties", "core-foundation-sys", @@ -1641,12 +1615,11 @@ dependencies = [ [[package]] name = "iana-time-zone-haiku" -version = "0.1.1" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0703ae284fc167426161c2e3f1da3ea71d94b21bedbcc9494e92b28e334e3dca" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" dependencies = [ - "cxx", - "cxx-build", + "cc", ] [[package]] @@ -1677,9 +1650,9 @@ checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" [[package]] name = "idna" -version = "0.3.0" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e14ddfc70884202db2244c223200c204c2bda1bc6e0998d11b5e024d657209e6" +checksum = "7d20d6b07bfbc108882d88ed8e37d39636dcc260e15e30c45e6ba089610b917c" dependencies = [ "unicode-bidi", "unicode-normalization", @@ -1687,11 +1660,10 @@ dependencies = [ [[package]] name = "ignore" -version = "0.4.18" +version = "0.4.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "713f1b139373f96a2e0ce3ac931cd01ee973c3c5dd7c40c0c2efe96ad2b6751d" +checksum = "dbe7873dab538a9a44ad79ede1faf5f30d49f9a5c883ddbab48bce81b64b7492" dependencies = [ - "crossbeam-utils", "globset", "lazy_static", "log", @@ -1705,9 +1677,9 @@ dependencies = [ [[package]] name = "image" -version = "0.24.5" +version = "0.24.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69b7ea949b537b0fd0af141fff8c77690f2ce96f4f41f042ccb6c69c6c965945" +checksum = "527909aa81e20ac3a44803521443a765550f09b5130c2c2fa1ea59c2f8f50a3a" dependencies = [ "bytemuck", "byteorder", @@ -1718,9 +1690,9 @@ dependencies = [ [[package]] name = "indexmap" -version = "1.9.2" +version = "1.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1885e79c1fc4b10f0e172c475f458b7f7b93061064d98c3293e98c5ba0c8b399" +checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" dependencies = [ "autocfg", "hashbrown", @@ -1765,9 +1737,9 @@ dependencies = [ [[package]] name = "io-lifetimes" -version = "1.0.10" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c66c74d2ae7e79a5a8f7ac924adbe38ee42a859c6539ad869eb51f0b52dc220" +checksum = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2" dependencies = [ "hermit-abi 0.3.1", "libc", @@ -1776,9 +1748,9 @@ dependencies = [ [[package]] name = "ipnet" -version = "2.7.1" +version = "2.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30e22bd8629359895450b59ea7a776c850561b96a3b1d31321c1949d9e6c9146" +checksum = "12b6ee2129af8d4fb011108c73d99a1b83a85977f23b82460c0ae2e25bb4b57f" [[package]] name = "itoa" @@ -1788,9 +1760,9 @@ checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4" [[package]] name = "itoa" -version = "1.0.5" +version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fad582f4b9e86b6caa621cabeb0963332d92eea04729ab12892c2533951e6440" +checksum = "453ad9f582a441959e5f0d088b02ce04cfe8d51a8eaf077f12ac6d3e94164ca6" [[package]] name = "javascriptcore-rs" @@ -1851,9 +1823,9 @@ checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130" [[package]] name = "js-sys" -version = "0.3.60" +version = "0.3.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49409df3e3bf0856b916e2ceaca09ee28e6871cf7d9ce97a692cacfdb2a25a47" +checksum = "c5f195fe497f702db0f318b07fdd68edb16955aed830df8363d837542f8f935a" dependencies = [ "wasm-bindgen", ] @@ -1914,9 +1886,9 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.139" +version = "0.2.146" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" +checksum = "f92be4933c13fd498862a9e02a3055f8a8d9c039ce33db97306fd5a6caa7f29b" [[package]] name = "libloading" @@ -1937,26 +1909,17 @@ dependencies = [ "safemem", ] -[[package]] -name = "link-cplusplus" -version = "1.0.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ecd207c9c713c34f95a097a5b029ac2ce6010530c7b49d7fea24d977dede04f5" -dependencies = [ - "cc", -] - [[package]] name = "linux-raw-sys" -version = "0.3.1" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d59d8c75012853d2e872fb56bc8a2e53718e2cafe1a4c823143141c6d90c322f" +checksum = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519" [[package]] name = "lock_api" -version = "0.4.9" +version = "0.4.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df" +checksum = "c1cc9717a20b1bb222f333e6a92fd32f7d8a18ddc5a3191a11af45dcbf4dcd16" dependencies = [ "autocfg", "scopeguard", @@ -1964,12 +1927,9 @@ dependencies = [ [[package]] name = "log" -version = "0.4.17" +version = "0.4.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" -dependencies = [ - "cfg-if", -] +checksum = "b06a4cde4c0f271a446782e3eff8de789548ce57dbc8eca9292c27f4a42004b4" [[package]] name = "loom" @@ -2039,9 +1999,9 @@ dependencies = [ [[package]] name = "matches" -version = "0.1.9" +version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f" +checksum = "2532096657941c2fea9c289d370a250971c689d4f143798ff67113ec042024a5" [[package]] name = "memchr" @@ -2051,27 +2011,27 @@ checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" [[package]] name = "memoffset" -version = "0.6.5" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce" +checksum = "5de893c32cde5f383baa4c04c5d6dbdd735cfd4a794b0debdb2bb1b421da5ff4" dependencies = [ "autocfg", ] [[package]] name = "memoffset" -version = "0.7.1" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5de893c32cde5f383baa4c04c5d6dbdd735cfd4a794b0debdb2bb1b421da5ff4" +checksum = "5a634b1c61a95585bd15607c6ab0c4e5b226e695ff2800ba0cdccddf208c406c" dependencies = [ "autocfg", ] [[package]] name = "mime" -version = "0.3.16" +version = "0.3.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d" +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" [[package]] name = "mime_guess" @@ -2091,23 +2051,23 @@ checksum = "933dca44d65cdd53b355d0b73d380a2ff5da71f87f036053188bf1eab6a19881" [[package]] name = "miniz_oxide" -version = "0.6.2" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b275950c28b37e794e8c55d88aeb5e139d0ce23fdbbeda68f8d7174abdf9e8fa" +checksum = "e7810e0be55b428ada41041c41f32c9f1a42817901b4ccf45fa3d4b6561e74c7" dependencies = [ "adler", + "simd-adler32", ] [[package]] name = "mio" -version = "0.8.5" +version = "0.8.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5d732bc30207a6423068df043e3d02e0735b155ad7ce1a6f76fe2baa5b158de" +checksum = "927a765cd3fc26206e66b296465fa9d3e5ab003e651c1b3c060e7956d96b19d2" dependencies = [ "libc", - "log", "wasi 0.11.0+wasi-snapshot-preview1", - "windows-sys 0.42.0", + "windows-sys 0.48.0", ] [[package]] @@ -2118,7 +2078,7 @@ checksum = "81bef5a90018326583471cccca10424d7b3e770397b02f03276543cbb9b6a1a6" dependencies = [ "proc-macro2", "quote", - "syn 1.0.107", + "syn 1.0.109", ] [[package]] @@ -2183,7 +2143,6 @@ dependencies = [ "cfg-if", "libc", "memoffset 0.7.1", - "pin-utils", "static_assertions", ] @@ -2195,10 +2154,11 @@ checksum = "72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bb" [[package]] name = "notify-rust" -version = "4.7.0" +version = "4.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ce656bb6d22a93ae276a23de52d1aec5ba4db3ece3c0eb79dfd5add7384db6a" +checksum = "2bfa211d18e360f08e36c364308f394b5eb23a6629150690e109a916dc6f610e" dependencies = [ + "log", "mac-notification-sys", "serde", "tauri-winrt-notification", @@ -2257,32 +2217,23 @@ dependencies = [ [[package]] name = "num_enum" -version = "0.5.7" +version = "0.5.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf5395665662ef45796a4ff5486c5d41d29e0c09640af4c5f17fd94ee2c119c9" +checksum = "1f646caf906c20226733ed5b1374287eb97e3c2a5c227ce668c1f2ce20ae57c9" dependencies = [ "num_enum_derive", ] [[package]] name = "num_enum_derive" -version = "0.5.7" +version = "0.5.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b0498641e53dd6ac1a4f22547548caa6864cc4933784319cd1775271c5a46ce" +checksum = "dcbff9bc912032c62bf65ef1d5aea88983b420f4f839db1e9b0c281a25c9c799" dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 1.0.107", -] - -[[package]] -name = "num_threads" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2819ce041d2ee131036f4fc9d6ae7ae125a3a40e97ba64d04fe799ad9dabbb44" -dependencies = [ - "libc", + "syn 1.0.109", ] [[package]] @@ -2326,9 +2277,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.17.0" +version = "1.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f61fba1741ea2b3d6a1e3178721804bb716a68a6aeba1149b5d52e3d464ea66" +checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d" [[package]] name = "opaque-debug" @@ -2348,9 +2299,9 @@ dependencies = [ [[package]] name = "openssl" -version = "0.10.48" +version = "0.10.54" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "518915b97df115dd36109bfa429a48b8f737bd05508cf9588977b599648926d2" +checksum = "69b3f656a17a6cbc115b5c7a40c616947d213ba182135b014d6051b73ab6f019" dependencies = [ "bitflags", "cfg-if", @@ -2363,13 +2314,13 @@ dependencies = [ [[package]] name = "openssl-macros" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b501e44f11665960c7e7fcf062c7d96a14ade4aa98116c004b2e37b5be7d736c" +checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" dependencies = [ "proc-macro2", "quote", - "syn 1.0.107", + "syn 2.0.18", ] [[package]] @@ -2380,11 +2331,10 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "openssl-sys" -version = "0.9.83" +version = "0.9.88" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "666416d899cf077260dac8698d60a60b435a46d57e82acb1be3d0dad87284e5b" +checksum = "c2ce0f250f34a308dcfdbb351f511359857d4ed2134ba715a4eadd46e1ffd617" dependencies = [ - "autocfg", "cc", "libc", "pkg-config", @@ -2403,9 +2353,9 @@ dependencies = [ [[package]] name = "os_info" -version = "3.5.0" +version = "3.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5209b2162b2c140df493a93689e04f8deab3a67634f5bc7a553c0a98e5b8d399" +checksum = "006e42d5b888366f1880eda20371fedde764ed2213dc8496f49622fa0c99cd5e" dependencies = [ "log", "serde", @@ -2414,19 +2364,19 @@ dependencies = [ [[package]] name = "os_pipe" -version = "1.1.2" +version = "1.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6a252f1f8c11e84b3ab59d7a488e48e4478a93937e027076638c49536204639" +checksum = "0ae859aa07428ca9a929b936690f8b12dc5f11dd8c6992a18ca93919f28bc177" dependencies = [ "libc", - "windows-sys 0.42.0", + "windows-sys 0.48.0", ] [[package]] name = "os_str_bytes" -version = "6.4.1" +version = "6.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b7820b9daea5457c9f21c69448905d723fbd21136ccf521748f23fd49e723ee" +checksum = "4d5d9eb14b174ee9aa2ef96dc2b94637a2d4b6e7cb873c7e171f0c20c6cf3eac" [[package]] name = "overload" @@ -2456,14 +2406,14 @@ dependencies = [ "glib-sys", "gobject-sys", "libc", - "system-deps 6.0.3", + "system-deps 6.1.0", ] [[package]] name = "parking" -version = "2.0.0" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "427c3892f9e783d91cc128285287e70a59e206ca452770ece88a76f7a3eddd72" +checksum = "14f2252c834a40ed9bb5422029649578e63aa341ac401f74e719dd1afda8394e" [[package]] name = "parking_lot" @@ -2477,22 +2427,22 @@ dependencies = [ [[package]] name = "parking_lot_core" -version = "0.9.6" +version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba1ef8814b5c993410bb3adfad7a5ed269563e4a2f90c41f5d85be7fb47133bf" +checksum = "93f00c865fe7cabf650081affecd3871070f26767e7b2070a3ffae14c654b447" dependencies = [ "cfg-if", "libc", - "redox_syscall", + "redox_syscall 0.3.5", "smallvec", - "windows-sys 0.42.0", + "windows-targets 0.48.0", ] [[package]] name = "paste" -version = "1.0.11" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d01a5bd0424d00070b0098dd17ebca6f961a959dead1dbcbbbc1d1cd8d3deeba" +checksum = "9f746c4065a8fa3fe23974dd82f15431cc8d40779821001404d10d2e79ca7d79" [[package]] name = "pathdiff" @@ -2502,19 +2452,9 @@ checksum = "8835116a5c179084a830efb3adc117ab007512b535bc1a21c991d3b32a6b44dd" [[package]] name = "percent-encoding" -version = "2.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "478c572c3d73181ff3c2539045f6eb99e5491218eae919370993b890cdbdd98e" - -[[package]] -name = "pest" -version = "2.5.3" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4257b4a04d91f7e9e6290be5d3da4804dd5784fafde3a497d73eb2b4a158c30a" -dependencies = [ - "thiserror", - "ucd-trie", -] +checksum = "9b2a4787296e9989611394c33f193f676704af1686e70b8f8033ab5ba9a35a94" [[package]] name = "phf" @@ -2579,7 +2519,7 @@ dependencies = [ "proc-macro-hack", "proc-macro2", "quote", - "syn 1.0.107", + "syn 1.0.109", ] [[package]] @@ -2593,7 +2533,7 @@ dependencies = [ "proc-macro-hack", "proc-macro2", "quote", - "syn 1.0.107", + "syn 1.0.109", ] [[package]] @@ -2628,41 +2568,42 @@ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" [[package]] name = "pkg-config" -version = "0.3.26" +version = "0.3.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ac9a59f73473f1b8d852421e59e64809f025994837ef743615c6d0c5b305160" +checksum = "26072860ba924cbfa98ea39c8c19b4dd6a4a25423dbdf219c1eca91aa0cf6964" [[package]] name = "plist" -version = "1.4.0" +version = "1.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5329b8f106a176ab0dce4aae5da86bfcb139bb74fb00882859e03745011f3635" +checksum = "9bd9647b268a3d3e14ff09c23201133a62589c658db02bb7388c7246aafe0590" dependencies = [ - "base64 0.13.1", + "base64 0.21.2", "indexmap", "line-wrap", - "quick-xml 0.26.0", + "quick-xml 0.28.2", "serde", "time", ] [[package]] name = "png" -version = "0.17.7" +version = "0.17.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d708eaf860a19b19ce538740d2b4bdeeb8337fa53f7738455e706623ad5c638" +checksum = "59871cc5b6cce7eaccca5a802b4173377a1c2ba90654246789a8fa2334426d11" dependencies = [ "bitflags", "crc32fast", + "fdeflate", "flate2", "miniz_oxide", ] [[package]] name = "polling" -version = "2.6.0" +version = "2.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e1f879b2998099c2d69ab9605d145d5b661195627eccc680002c4918a7fb6fa" +checksum = "4b2d323e8ca7996b3e23126511a523f7e62924d93ecd5ae73b333815b0eb3dce" dependencies = [ "autocfg", "bitflags", @@ -2671,14 +2612,14 @@ dependencies = [ "libc", "log", "pin-project-lite", - "windows-sys 0.45.0", + "windows-sys 0.48.0", ] [[package]] name = "polyval" -version = "0.6.0" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ef234e08c11dfcb2e56f79fd70f6f2eb7f025c0ce2333e82f4f0518ecad30c6" +checksum = "d52cff9d1d4dee5fe6d03729099f4a310a41179e0a10dbf542039873f2e826fb" dependencies = [ "cfg-if", "cpufeatures", @@ -2700,13 +2641,12 @@ checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" [[package]] name = "proc-macro-crate" -version = "1.2.1" +version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eda0fc3b0fb7c975631757e14d9049da17374063edb6ebbcbc54d880d4fe94e9" +checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919" dependencies = [ "once_cell", - "thiserror", - "toml 0.5.10", + "toml_edit", ] [[package]] @@ -2718,7 +2658,7 @@ dependencies = [ "proc-macro-error-attr", "proc-macro2", "quote", - "syn 1.0.107", + "syn 1.0.109", "version_check", ] @@ -2741,9 +2681,9 @@ checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068" [[package]] name = "proc-macro2" -version = "1.0.56" +version = "1.0.60" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b63bdb0cd06f1f4dedf69b254734f9b45af66e4a031e42a7480257d9898b435" +checksum = "dec2b086b7a862cf4de201096214fa870344cf922b2b30c167badb3af3195406" dependencies = [ "unicode-ident", ] @@ -2759,18 +2699,18 @@ dependencies = [ [[package]] name = "quick-xml" -version = "0.26.0" +version = "0.28.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f50b1c63b38611e7d4d7f68b82d3ad0cc71a2ad2e7f61fc10f1328d917c93cd" +checksum = "0ce5e73202a820a31f8a0ee32ada5e21029c81fd9e3ebf668a40832e4219d9d1" dependencies = [ "memchr", ] [[package]] name = "quote" -version = "1.0.26" +version = "1.0.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4424af4bf778aae2051a77b60283332f386554255d722233d09fbfc7e30da2fc" +checksum = "1b9ab9c7eadfd8df19006f1cf1a4aed13540ed5cbc047010ece5826e10825488" dependencies = [ "proc-macro2", ] @@ -2835,7 +2775,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom 0.2.8", + "getrandom 0.2.10", ] [[package]] @@ -2858,12 +2798,9 @@ dependencies = [ [[package]] name = "raw-window-handle" -version = "0.5.0" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed7e3d950b66e19e0c372f3fa3fbbcf85b1746b571f74e0c2af6042a5c93420a" -dependencies = [ - "cty", -] +checksum = "f2ff9a1f06a88b01621b7ae906ef0211290d1c8a168a15542486a8f61c0833b9" [[package]] name = "redox_syscall" @@ -2874,26 +2811,35 @@ dependencies = [ "bitflags", ] +[[package]] +name = "redox_syscall" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29" +dependencies = [ + "bitflags", +] + [[package]] name = "redox_users" version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b033d837a7cf162d7993aded9304e30a83213c648b6e389db233191f891e5c2b" dependencies = [ - "getrandom 0.2.8", - "redox_syscall", + "getrandom 0.2.10", + "redox_syscall 0.2.16", "thiserror", ] [[package]] name = "regex" -version = "1.7.1" +version = "1.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48aaa5748ba571fb95cd2c85c09f629215d3a6ece942baa100950af03a34f733" +checksum = "d0ab3ca65655bb1e41f2a8c8cd662eb4fb035e67c3f78da1d61dffe89d07300f" dependencies = [ - "aho-corasick", + "aho-corasick 1.0.2", "memchr", - "regex-syntax", + "regex-syntax 0.7.2", ] [[package]] @@ -2902,31 +2848,28 @@ version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132" dependencies = [ - "regex-syntax", + "regex-syntax 0.6.29", ] [[package]] name = "regex-syntax" -version = "0.6.28" +version = "0.6.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848" +checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" [[package]] -name = "remove_dir_all" -version = "0.5.3" +name = "regex-syntax" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7" -dependencies = [ - "winapi", -] +checksum = "436b050e76ed2903236f032a59761c1eb99e1b0aead2c257922771dab1fc8c78" [[package]] name = "reqwest" -version = "0.11.13" +version = "0.11.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68cc60575865c7831548863cc02356512e3f1dc2f3f82cb837d7fc4cc8f3c97c" +checksum = "cde824a14b7c14f85caff81225f411faacc04a2013f41670f41443742b1c1c55" dependencies = [ - "base64 0.13.1", + "base64 0.21.2", "bytes", "encoding_rs", "futures-core", @@ -2955,8 +2898,9 @@ dependencies = [ "url", "wasm-bindgen", "wasm-bindgen-futures", + "wasm-streams", "web-sys", - "winreg", + "winreg 0.10.1", ] [[package]] @@ -2983,49 +2927,40 @@ dependencies = [ "windows 0.37.0", ] -[[package]] -name = "rustc_version" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0dfe2087c51c460008730de8b57e6a320782fbfb312e1f4d520e6c6fae155ee" -dependencies = [ - "semver 0.11.0", -] - [[package]] name = "rustc_version" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" dependencies = [ - "semver 1.0.16", + "semver", ] [[package]] name = "rustix" -version = "0.37.3" +version = "0.37.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62b24138615de35e32031d041a09032ef3487a616d901ca4db224e7d557efae2" +checksum = "b96e891d04aa506a6d1f318d2771bcb1c7dfda84e126660ace067c9b474bb2c0" dependencies = [ "bitflags", "errno", "io-lifetimes", "libc", "linux-raw-sys", - "windows-sys 0.45.0", + "windows-sys 0.48.0", ] [[package]] name = "rustversion" -version = "1.0.11" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5583e89e108996506031660fe09baa5011b9dd0341b89029313006d1fb508d70" +checksum = "4f3208ce4d8448b3f3e7d168a73f5e0c43a61e32930de3bceeccedb388b6bf06" [[package]] name = "ryu" -version = "1.0.12" +version = "1.0.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b4b9743ed687d4b4bcedf9ff5eaa7398495ae14e61cba0a295704edbc7decde" +checksum = "f91339c0467de62360649f8d3e185ca8de4224ff281f66000de5eb2a77a79041" [[package]] name = "safemem" @@ -3063,17 +2998,11 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" -[[package]] -name = "scratch" -version = "1.0.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1792db035ce95be60c3f8853017b3999209281c24e2ba5bc8e59bf97a0c590c1" - [[package]] name = "security-framework" -version = "2.7.0" +version = "2.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bc1bb97804af6631813c55739f771071e0f2ed33ee20b68c86ec505d906356c" +checksum = "1fc758eb7bffce5b308734e9b0c1468893cae9ff70ebf13e7090be8dcbcc83a8" dependencies = [ "bitflags", "core-foundation", @@ -3084,9 +3013,9 @@ dependencies = [ [[package]] name = "security-framework-sys" -version = "2.6.1" +version = "2.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0160a13a177a45bfb43ce71c01580998474f556ad854dcbca936dd2841a5c556" +checksum = "f51d0c0d83bec45f16480d0ce0058397a69e48fcdc52d1dc8855fb68acbd31a7" dependencies = [ "core-foundation-sys", "libc", @@ -3114,78 +3043,60 @@ dependencies = [ [[package]] name = "semver" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f301af10236f6df4160f7c3f04eec6dbc70ace82d23326abad5edee88801c6b6" -dependencies = [ - "semver-parser", -] - -[[package]] -name = "semver" -version = "1.0.16" +version = "1.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58bc9567378fc7690d6b2addae4e60ac2eeea07becb2c64b9f218b53865cba2a" +checksum = "bebd363326d05ec3e2f532ab7660680f3b02130d780c299bca73469d521bc0ed" dependencies = [ "serde", ] -[[package]] -name = "semver-parser" -version = "0.10.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00b0bef5b7f9e0df16536d3961cfb6e84331c065b4066afb39768d0e319411f7" -dependencies = [ - "pest", -] - [[package]] name = "serde" -version = "1.0.160" +version = "1.0.164" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb2f3770c8bce3bcda7e149193a069a0f4365bda1fa5cd88e03bca26afc1216c" +checksum = "9e8c8cf938e98f769bc164923b06dce91cea1751522f46f8466461af04c9027d" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.160" +version = "1.0.164" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "291a097c63d8497e00160b166a967a4a79c64f3facdd01cbd7502231688d77df" +checksum = "d9735b638ccc51c28bf6914d90a2e9725b377144fc612c49a611fddd1b631d68" dependencies = [ "proc-macro2", "quote", - "syn 2.0.15", + "syn 2.0.18", ] [[package]] name = "serde_json" -version = "1.0.96" +version = "1.0.97" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "057d394a50403bcac12672b2b18fb387ab6d289d957dab67dd201875391e52f1" +checksum = "bdf3bf93142acad5821c99197022e170842cdbc1c30482b98750c688c640842a" dependencies = [ - "itoa 1.0.5", + "itoa 1.0.6", "ryu", "serde", ] [[package]] name = "serde_repr" -version = "0.1.10" +version = "0.1.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a5ec9fa74a20ebbe5d9ac23dac1fc96ba0ecfe9f50f2843b52e537b10fbcb4e" +checksum = "bcec881020c684085e55a25f7fd888954d56609ef363479dc5a1305eb0d40cab" dependencies = [ "proc-macro2", "quote", - "syn 1.0.107", + "syn 2.0.18", ] [[package]] name = "serde_spanned" -version = "0.6.1" +version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0efd8caf556a6cebd3b285caf480045fcc1ac04f6bd786b09a6f11af30c4fcf4" +checksum = "93107647184f6027e3b7dcb2e11034cf95ffa1e3a682c67951963ac69c1c007d" dependencies = [ "serde", ] @@ -3197,7 +3108,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" dependencies = [ "form_urlencoded", - "itoa 1.0.5", + "itoa 1.0.6", "ryu", "serde", ] @@ -3208,7 +3119,7 @@ version = "3.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9f02d8aa6e3c385bf084924f660ce2a3a6bd333ba55b35e8590b321f35d88513" dependencies = [ - "base64 0.21.0", + "base64 0.21.2", "chrono", "hex", "indexmap", @@ -3227,7 +3138,7 @@ dependencies = [ "darling", "proc-macro2", "quote", - "syn 2.0.15", + "syn 2.0.18", ] [[package]] @@ -3249,7 +3160,7 @@ checksum = "74064874e9f6a15f04c1f3cb627902d0e6b410abbf36668afa873c61889f1763" dependencies = [ "proc-macro2", "quote", - "syn 1.0.107", + "syn 1.0.109", ] [[package]] @@ -3275,9 +3186,9 @@ dependencies = [ [[package]] name = "sha2" -version = "0.10.6" +version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82e6b795fe2e3b1e845bafcb27aa35405c4d47cdfc92af5fc8d3002f76cebdc0" +checksum = "479fb9d862239e610720565ca91403019f2f00410f1864c5aa7479b950a76ed8" dependencies = [ "cfg-if", "cpufeatures", @@ -3303,6 +3214,12 @@ dependencies = [ "winapi", ] +[[package]] +name = "simd-adler32" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "238abfbb77c1915110ad968465608b68e869e0772622c9656714e73e5a1a522f" + [[package]] name = "siphasher" version = "0.3.10" @@ -3311,9 +3228,9 @@ checksum = "7bd3e3206899af3f8b12af284fafc038cc1dc2b41d1b89dd17297221c5d225de" [[package]] name = "slab" -version = "0.4.7" +version = "0.4.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4614a76b2a8be0058caa9dbbaf66d988527d86d003c11a94fbd335d7661edcef" +checksum = "6528351c9bc8ab22353f9d776db39a20288e8d6c37ef8cfe3317cf875eecfc2d" dependencies = [ "autocfg", ] @@ -3326,9 +3243,9 @@ checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" [[package]] name = "socket2" -version = "0.4.7" +version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02e2d2db9033d13a1567121ddd7a095ee144db4e1ca1b1bda3419bc0da294ebd" +checksum = "64a4a911eed85daf18834cfaa86a79b7d266ff93ff5ba14005426219480ed662" dependencies = [ "libc", "winapi", @@ -3385,9 +3302,9 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" [[package]] name = "string_cache" -version = "0.8.4" +version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "213494b7a2b503146286049378ce02b482200519accc31872ee8be91fa820a08" +checksum = "f91138e76242f575eb1d3b38b4f1362f10d3a43f47d182a5b359af488a02293b" dependencies = [ "new_debug_unreachable", "once_cell", @@ -3415,38 +3332,17 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" -[[package]] -name = "strum" -version = "0.22.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7ac893c7d471c8a21f31cfe213ec4f6d9afeed25537c772e08ef3f005f8729e" -dependencies = [ - "strum_macros", -] - -[[package]] -name = "strum_macros" -version = "0.22.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "339f799d8b549e3744c7ac7feb216383e4005d94bdb22561b3ab8f3b808ae9fb" -dependencies = [ - "heck 0.3.3", - "proc-macro2", - "quote", - "syn 1.0.107", -] - [[package]] name = "subtle" -version = "2.4.1" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" +checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" [[package]] name = "syn" -version = "1.0.107" +version = "1.0.109" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f4064b5b16e03ae50984a5a8ed5d4f8803e6bc1fd170a3cda91a1be4b18e3f5" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" dependencies = [ "proc-macro2", "quote", @@ -3455,9 +3351,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.15" +version = "2.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a34fcf3e8b60f57e6a14301a2e916d323af98b0ea63c599441eec8558660c822" +checksum = "32d41677bcbe24c20c52e7c70b0d8db04134c5d1066bf98662e2871ad200ea3e" dependencies = [ "proc-macro2", "quote", @@ -3486,28 +3382,28 @@ dependencies = [ "cfg-expr 0.9.1", "heck 0.3.3", "pkg-config", - "toml 0.5.10", + "toml 0.5.11", "version-compare 0.0.11", ] [[package]] name = "system-deps" -version = "6.0.3" +version = "6.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2955b1fe31e1fa2fbd1976b71cc69a606d7d4da16f6de3333d0c92d51419aeff" +checksum = "e5fa6fb9ee296c0dc2df41a656ca7948546d061958115ddb0bcaae43ad0d17d2" dependencies = [ - "cfg-expr 0.11.0", - "heck 0.4.0", + "cfg-expr 0.15.3", + "heck 0.4.1", "pkg-config", - "toml 0.5.10", + "toml 0.7.4", "version-compare 0.1.1", ] [[package]] name = "tao" -version = "0.16.0" +version = "0.16.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "704522803dda895767f69198af8351b0a3f4fe2e293c3ca54cce0ecba05a97f2" +checksum = "6a6d198e01085564cea63e976ad1566c1ba2c2e4cc79578e35d9f05521505e31" dependencies = [ "bitflags", "cairo-rs", @@ -3521,6 +3417,7 @@ dependencies = [ "gdk", "gdk-pixbuf", "gdk-sys", + "gdkwayland-sys", "gdkx11-sys", "gio", "glib", @@ -3553,13 +3450,13 @@ dependencies = [ [[package]] name = "tao-macros" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b6fcd8245d45a39ffc8715183d92ae242750eb57b285eb3bcd63dfd512afd09" +checksum = "3b27a4bcc5eb524658234589bdffc7e7bfb996dbae6ce9393bfd39cb4159b445" dependencies = [ "proc-macro2", "quote", - "syn 1.0.107", + "syn 1.0.109", ] [[package]] @@ -3573,12 +3470,18 @@ dependencies = [ "xattr", ] +[[package]] +name = "target-lexicon" +version = "0.12.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd1ba337640d60c3e96bc6f0638a939b9c9a7f2c316a1598c279828b3d1dc8c5" + [[package]] name = "tauri" -version = "1.3.0" +version = "1.4.1" dependencies = [ "anyhow", - "base64 0.21.0", + "base64 0.21.2", "bytes", "clap", "cocoa", @@ -3590,7 +3493,7 @@ dependencies = [ "glib", "glob", "gtk", - "heck 0.4.0", + "heck 0.4.1", "http", "ico 0.2.0", "ignore", @@ -3609,7 +3512,7 @@ dependencies = [ "regex", "reqwest", "rfd", - "semver 1.0.16", + "semver", "serde", "serde_json", "serde_repr", @@ -3637,14 +3540,14 @@ dependencies = [ [[package]] name = "tauri-build" -version = "1.3.0" +version = "1.4.0" dependencies = [ "anyhow", "cargo_toml", - "heck 0.4.0", + "heck 0.4.1", "json-patch", "quote", - "semver 1.0.16", + "semver", "serde", "serde_json", "tauri-codegen", @@ -3654,9 +3557,9 @@ dependencies = [ [[package]] name = "tauri-codegen" -version = "1.3.0" +version = "1.4.0" dependencies = [ - "base64 0.21.0", + "base64 0.21.2", "brotli", "ico 0.3.0", "json-patch", @@ -3665,7 +3568,7 @@ dependencies = [ "proc-macro2", "quote", "regex", - "semver 1.0.16", + "semver", "serde", "serde_json", "sha2", @@ -3678,19 +3581,19 @@ dependencies = [ [[package]] name = "tauri-macros" -version = "1.3.0" +version = "1.4.0" dependencies = [ - "heck 0.4.0", + "heck 0.4.1", "proc-macro2", "quote", - "syn 1.0.107", + "syn 1.0.109", "tauri-codegen", "tauri-utils", ] [[package]] name = "tauri-runtime" -version = "0.13.0" +version = "0.14.0" dependencies = [ "gtk", "http", @@ -3709,7 +3612,7 @@ dependencies = [ [[package]] name = "tauri-runtime-wry" -version = "0.13.0" +version = "0.14.0" dependencies = [ "cocoa", "gtk", @@ -3727,15 +3630,15 @@ dependencies = [ [[package]] name = "tauri-utils" -version = "1.3.0" +version = "1.4.0" dependencies = [ "aes-gcm", "brotli", "ctor", "dunce", - "getrandom 0.2.8", + "getrandom 0.2.10", "glob", - "heck 0.4.0", + "heck 0.4.1", "html5ever", "infer 0.12.0", "json-patch", @@ -3744,7 +3647,7 @@ dependencies = [ "phf 0.10.1", "proc-macro2", "quote", - "semver 1.0.16", + "semver", "serde", "serde_json", "serde_with", @@ -3757,37 +3660,36 @@ dependencies = [ [[package]] name = "tauri-winres" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b7a78dc04f75fb5ab815e66ac561c81e92a968a40f29e7c21afd152d694fad8" +checksum = "5993dc129e544393574288923d1ec447c857f3f644187f4fbf7d9a875fbfc4fb" dependencies = [ - "toml 0.5.10", - "version_check", + "embed-resource", + "toml 0.7.4", ] [[package]] name = "tauri-winrt-notification" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c58de036c4d2e20717024de2a3c4bf56c301f07b21bc8ef9b57189fce06f1f3b" +checksum = "37d70573554e7630c2ca3677ea78d5ae6b030aedee5f9bf33c15d644904fa698" dependencies = [ "quick-xml 0.23.1", - "strum", "windows 0.39.0", ] [[package]] name = "tempfile" -version = "3.3.0" +version = "3.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5cdb1ef4eaeeaddc8fbd371e5017057064af0911902ef36b39801f67cc6d79e4" +checksum = "31c0432476357e58790aaa47a8efb0c5138f137343f3b5f23bd36a27e3b0a6d6" dependencies = [ + "autocfg", "cfg-if", "fastrand", - "libc", - "redox_syscall", - "remove_dir_all", - "winapi", + "redox_syscall 0.3.5", + "rustix", + "windows-sys 0.48.0", ] [[package]] @@ -3839,36 +3741,45 @@ checksum = "f9456a42c5b0d803c8cd86e73dd7cc9edd429499f37a3550d286d5e86720569f" dependencies = [ "proc-macro2", "quote", - "syn 2.0.15", + "syn 2.0.18", ] [[package]] name = "thread_local" -version = "1.1.4" +version = "1.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5516c27b78311c50bf42c071425c560ac799b11c30b31f87e3081965fe5e0180" +checksum = "3fdd6f064ccff2d6567adcb3873ca630700f00b5ad3f060c25b5dcfd9a4ce152" dependencies = [ + "cfg-if", "once_cell", ] [[package]] name = "time" -version = "0.3.15" +version = "0.3.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d634a985c4d4238ec39cacaed2e7ae552fbd3c476b552c1deac3021b7d7eaf0c" +checksum = "ea9e1b3cf1243ae005d9e74085d4d542f3125458f3a81af210d901dcd7411efd" dependencies = [ - "itoa 1.0.5", - "libc", - "num_threads", + "itoa 1.0.6", "serde", + "time-core", "time-macros", ] +[[package]] +name = "time-core" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7300fbefb4dadc1af235a9cef3737cea692a9d97e1b9cbcd4ebdae6f8868e6fb" + [[package]] name = "time-macros" -version = "0.2.4" +version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42657b1a6f4d817cda8e7a0ace261fe0cc946cf3a80314390b22cc61ae080792" +checksum = "372950940a5f07bf38dbe211d7283c9e6d7327df53794992d293e534c733d09b" +dependencies = [ + "time-core", +] [[package]] name = "tiny_http" @@ -3894,32 +3805,31 @@ dependencies = [ [[package]] name = "tinyvec_macros" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.24.2" +version = "1.28.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "597a12a59981d9e3c38d216785b0c37399f6e415e8d0712047620f189371b0bb" +checksum = "94d7b1cfd2aa4011f2de74c2c4c63665e27a71006b0a192dcd2710272e73dfa2" dependencies = [ "autocfg", "bytes", "libc", - "memchr", "mio", "num_cpus", "pin-project-lite", "socket2", - "windows-sys 0.42.0", + "windows-sys 0.48.0", ] [[package]] name = "tokio-native-tls" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7d995660bd2b7f8c1568414c1126076c13fbb725c40112dc0120b78eb9b717b" +checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2" dependencies = [ "native-tls", "tokio", @@ -3927,9 +3837,9 @@ dependencies = [ [[package]] name = "tokio-util" -version = "0.7.4" +version = "0.7.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0bb2e075f03b3d66d8d8785356224ba688d2906a371015e225beeb65ca92c740" +checksum = "806fe8c2c87eccc8b3267cbae29ed3ab2d0bd37fca70ab622e46aaa9375ddb7d" dependencies = [ "bytes", "futures-core", @@ -3941,18 +3851,18 @@ dependencies = [ [[package]] name = "toml" -version = "0.5.10" +version = "0.5.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1333c76748e868a4d9d1017b5ab53171dfd095f70c712fdb4653a406547f598f" +checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234" dependencies = [ "serde", ] [[package]] name = "toml" -version = "0.7.3" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b403acf6f2bb0859c93c7f0d967cb4a75a7ac552100f9322faf64dc047669b21" +checksum = "d6135d499e69981f9ff0ef2167955a5333c35e36f6937d382974566b3d5b94ec" dependencies = [ "serde", "serde_spanned", @@ -3962,18 +3872,18 @@ dependencies = [ [[package]] name = "toml_datetime" -version = "0.6.1" +version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ab8ed2edee10b50132aed5f331333428b011c99402b5a534154ed15746f9622" +checksum = "5a76a9312f5ba4c2dec6b9161fdf25d87ad8a09256ccea5a556fef03c706a10f" dependencies = [ "serde", ] [[package]] name = "toml_edit" -version = "0.19.8" +version = "0.19.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "239410c8609e8125456927e6707163a3b1fdb40561e4b803bc041f466ccfdc13" +checksum = "2380d56e8670370eee6566b0bfd4265f65b3f432e8c6d85623f728d4fa31f739" dependencies = [ "indexmap", "serde", @@ -4002,20 +3912,20 @@ dependencies = [ [[package]] name = "tracing-attributes" -version = "0.1.23" +version = "0.1.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4017f8f45139870ca7e672686113917c71c7a6e02d4924eda67186083c03081a" +checksum = "8803eee176538f94ae9a14b55b2804eb7e1441f8210b1c31290b3bccdccff73b" dependencies = [ "proc-macro2", "quote", - "syn 1.0.107", + "syn 2.0.18", ] [[package]] name = "tracing-core" -version = "0.1.30" +version = "0.1.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24eb03ba0eab1fd845050058ce5e616558e8f8d8fca633e6b163fe25c797213a" +checksum = "0955b8137a1df6f1a2e9a37d8a6656291ff0297c1a97c24e0d8425fe2312f79a" dependencies = [ "once_cell", "valuable", @@ -4034,9 +3944,9 @@ dependencies = [ [[package]] name = "tracing-subscriber" -version = "0.3.16" +version = "0.3.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6176eae26dd70d0c919749377897b54a9276bd7061339665dd68777926b5a70" +checksum = "30a651bc37f915e81f087d86e62a18eec5f79550c7faff886f7090b4ea757c77" dependencies = [ "matchers", "nu-ansi-term", @@ -4071,12 +3981,6 @@ version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "497961ef93d974e23eb6f433eb5fe1b7930b659f06d12dec6fc44a8f554c0bba" -[[package]] -name = "ucd-trie" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e79c4d996edb816c91e4308506774452e55e95c3c9de07b6729e17e15a5ef81" - [[package]] name = "uds_windows" version = "1.0.2" @@ -4098,15 +4002,15 @@ dependencies = [ [[package]] name = "unicode-bidi" -version = "0.3.8" +version = "0.3.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "099b7128301d285f79ddd55b9a83d5e6b9e97c92e0ea0daebee7263e932de992" +checksum = "92888ba5573ff080736b3648696b70cafad7d250551175acbaa4e0385b3e1460" [[package]] name = "unicode-ident" -version = "1.0.6" +version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc" +checksum = "b15811caf2415fb889178633e7724bad2509101cde276048e013b9def5e51fa0" [[package]] name = "unicode-normalization" @@ -4119,21 +4023,15 @@ dependencies = [ [[package]] name = "unicode-segmentation" -version = "1.10.0" +version = "1.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fdbf052a0783de01e944a6ce7a8cb939e295b1e7be835a1112c3b9a7f047a5a" - -[[package]] -name = "unicode-width" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0edd1e5b14653f783770bce4a4dabb4a5108a5370a5f5d8cfe8710c361f6c8b" +checksum = "1dd624098567895118886609431a7c3b8f516e41d30e0643f03d94592a147e36" [[package]] name = "universal-hash" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d3160b73c9a19f7e2939a2fdad446c57c1bbbbf4d919d3213ff1267a580d8b5" +checksum = "fc1de2c688dc15305988b563c3854064043356019f97a4b46276fe734c4f07ea" dependencies = [ "crypto-common", "subtle", @@ -4141,9 +4039,9 @@ dependencies = [ [[package]] name = "url" -version = "2.3.1" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d68c799ae75762b8c3fe375feb6600ef5602c883c5d21eb51c09f22b83c4643" +checksum = "50bff7831e19200a85b17131d085c25d7811bc4e186efdaf54bbd132994a88cb" dependencies = [ "form_urlencoded", "idna", @@ -4159,11 +4057,11 @@ checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" [[package]] name = "uuid" -version = "1.2.2" +version = "1.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "422ee0de9031b5b948b97a8fc04e3aa35230001a722ddd27943e0be31564ce4c" +checksum = "0fa2982af2eec27de306107c027578ff7f423d65f7250e40ce0fea8f45248b81" dependencies = [ - "getrandom 0.2.8", + "getrandom 0.2.10", ] [[package]] @@ -4196,6 +4094,26 @@ version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" +[[package]] +name = "vswhom" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be979b7f07507105799e854203b470ff7c78a1639e330a58f183b5fea574608b" +dependencies = [ + "libc", + "vswhom-sys", +] + +[[package]] +name = "vswhom-sys" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3b17ae1f6c8a2b28506cd96d412eebf83b4a0ff2cbefeeb952f2f9dfa44ba18" +dependencies = [ + "cc", + "libc", +] + [[package]] name = "waker-fn" version = "1.1.0" @@ -4204,22 +4122,20 @@ checksum = "9d5b2c62b4012a3e1eca5a7e077d13b3bf498c4073e33ccd58626607748ceeca" [[package]] name = "walkdir" -version = "2.3.2" +version = "2.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "808cf2735cd4b6866113f648b791c6adc5714537bc222d9347bb203386ffda56" +checksum = "36df944cda56c7d8d8b7496af378e6b16de9284591917d307c9b4d313c44e698" dependencies = [ "same-file", - "winapi", "winapi-util", ] [[package]] name = "want" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0" +checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" dependencies = [ - "log", "try-lock", ] @@ -4237,9 +4153,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.83" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eaf9f5aceeec8be17c128b2e93e031fb8a4d469bb9c4ae2d7dc1888b26887268" +checksum = "7706a72ab36d8cb1f80ffbf0e071533974a60d0a308d01a5d0375bf60499a342" dependencies = [ "cfg-if", "wasm-bindgen-macro", @@ -4247,24 +4163,24 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.83" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c8ffb332579b0557b52d268b91feab8df3615f265d5270fec2a8c95b17c1142" +checksum = "5ef2b6d3c510e9625e5fe6f509ab07d66a760f0885d858736483c32ed7809abd" dependencies = [ "bumpalo", "log", "once_cell", "proc-macro2", "quote", - "syn 1.0.107", + "syn 2.0.18", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-futures" -version = "0.4.33" +version = "0.4.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23639446165ca5a5de86ae1d8896b737ae80319560fbaa4c2887b7da6e7ebd7d" +checksum = "c02dbc21516f9f1f04f187958890d7e6026df8d16540b7ad9492bc34a67cea03" dependencies = [ "cfg-if", "js-sys", @@ -4274,9 +4190,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.83" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "052be0f94026e6cbc75cdefc9bae13fd6052cdcaf532fa6c45e7ae33a1e6c810" +checksum = "dee495e55982a3bd48105a7b947fd2a9b4a8ae3010041b9e0faab3f9cd028f1d" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -4284,28 +4200,41 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.83" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07bc0c051dc5f23e307b13285f9d75df86bfdf816c5721e573dec1f9b8aa193c" +checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b" dependencies = [ "proc-macro2", "quote", - "syn 1.0.107", + "syn 2.0.18", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.83" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c38c045535d93ec4f0b4defec448e4291638ee608530863b1e2ba115d4fff7f" +checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1" + +[[package]] +name = "wasm-streams" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6bbae3363c08332cadccd13b67db371814cd214c2524020932f0804b8cf7c078" +dependencies = [ + "futures-util", + "js-sys", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] [[package]] name = "web-sys" -version = "0.3.60" +version = "0.3.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bcda906d8be16e728fd5adc5b729afad4e444e106ab28cd1c7256e54fa61510f" +checksum = "9b85cbef8c220a6abc02aefd892dfc0fc23afb1c6a426316ec33253a3877249b" dependencies = [ "js-sys", "wasm-bindgen", @@ -4355,7 +4284,7 @@ dependencies = [ "pango-sys", "pkg-config", "soup2-sys", - "system-deps 6.0.3", + "system-deps 6.1.0", ] [[package]] @@ -4378,7 +4307,7 @@ checksum = "eaebe196c01691db62e9e4ca52c5ef1e4fd837dcae27dae3ada599b5a8fd05ac" dependencies = [ "proc-macro2", "quote", - "syn 1.0.107", + "syn 1.0.109", ] [[package]] @@ -4398,12 +4327,12 @@ dependencies = [ [[package]] name = "win7-notifications" -version = "0.3.1" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "210952d7163b9ed83a6fd9754ab2a101d14480f8491b5f1d6292771d88dbee70" +checksum = "aa9207c0ac84a41bc25fce1679cfa69e740f501442da1b770570b5596bd03f81" dependencies = [ "once_cell", - "windows-sys 0.36.1", + "windows-sys 0.48.0", ] [[package]] @@ -4501,7 +4430,7 @@ version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ba01f98f509cb5dc05f4e5fc95e535f78260f15fea8fe1a8abdd08f774f1cee7" dependencies = [ - "syn 1.0.107", + "syn 1.0.109", "windows-tokens", ] @@ -4511,32 +4440,19 @@ version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ee5e275231f07c6e240d14f34e1b635bf1faa1c76c57cfd59a5cdb9848e4278" -[[package]] -name = "windows-sys" -version = "0.36.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea04155a16a59f9eab786fe12a4a450e75cdb175f9e0d80da1e17db09f55b8d2" -dependencies = [ - "windows_aarch64_msvc 0.36.1", - "windows_i686_gnu 0.36.1", - "windows_i686_msvc 0.36.1", - "windows_x86_64_gnu 0.36.1", - "windows_x86_64_msvc 0.36.1", -] - [[package]] name = "windows-sys" version = "0.42.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" dependencies = [ - "windows_aarch64_gnullvm 0.42.1", - "windows_aarch64_msvc 0.42.1", - "windows_i686_gnu 0.42.1", - "windows_i686_msvc 0.42.1", - "windows_x86_64_gnu 0.42.1", - "windows_x86_64_gnullvm 0.42.1", - "windows_x86_64_msvc 0.42.1", + "windows_aarch64_gnullvm 0.42.2", + "windows_aarch64_msvc 0.42.2", + "windows_i686_gnu 0.42.2", + "windows_i686_msvc 0.42.2", + "windows_x86_64_gnu 0.42.2", + "windows_x86_64_gnullvm 0.42.2", + "windows_x86_64_msvc 0.42.2", ] [[package]] @@ -4545,7 +4461,7 @@ version = "0.45.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" dependencies = [ - "windows-targets 0.42.1", + "windows-targets 0.42.2", ] [[package]] @@ -4559,17 +4475,17 @@ dependencies = [ [[package]] name = "windows-targets" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e2522491fbfcd58cc84d47aeb2958948c4b8982e9a2d8a2a35bbaed431390e7" +checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" dependencies = [ - "windows_aarch64_gnullvm 0.42.1", - "windows_aarch64_msvc 0.42.1", - "windows_i686_gnu 0.42.1", - "windows_i686_msvc 0.42.1", - "windows_x86_64_gnu 0.42.1", - "windows_x86_64_gnullvm 0.42.1", - "windows_x86_64_msvc 0.42.1", + "windows_aarch64_gnullvm 0.42.2", + "windows_aarch64_msvc 0.42.2", + "windows_i686_gnu 0.42.2", + "windows_i686_msvc 0.42.2", + "windows_x86_64_gnu 0.42.2", + "windows_x86_64_gnullvm 0.42.2", + "windows_x86_64_msvc 0.42.2", ] [[package]] @@ -4595,9 +4511,9 @@ checksum = "f838de2fe15fe6bac988e74b798f26499a8b21a9d97edec321e79b28d1d7f597" [[package]] name = "windows_aarch64_gnullvm" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c9864e83243fdec7fc9c5444389dcbbfd258f745e7853198f365e3c4968a608" +checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" [[package]] name = "windows_aarch64_gnullvm" @@ -4605,12 +4521,6 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "91ae572e1b79dba883e0d315474df7305d12f569b400fcf90581b06062f7e1bc" -[[package]] -name = "windows_aarch64_msvc" -version = "0.36.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47" - [[package]] name = "windows_aarch64_msvc" version = "0.37.0" @@ -4625,9 +4535,9 @@ checksum = "ec7711666096bd4096ffa835238905bb33fb87267910e154b18b44eaabb340f2" [[package]] name = "windows_aarch64_msvc" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c8b1b673ffc16c47a9ff48570a9d85e25d265735c503681332589af6253c6c7" +checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" [[package]] name = "windows_aarch64_msvc" @@ -4635,12 +4545,6 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b2ef27e0d7bdfcfc7b868b317c1d32c641a6fe4629c171b8928c7b08d98d7cf3" -[[package]] -name = "windows_i686_gnu" -version = "0.36.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6" - [[package]] name = "windows_i686_gnu" version = "0.37.0" @@ -4655,9 +4559,9 @@ checksum = "763fc57100a5f7042e3057e7e8d9bdd7860d330070251a73d003563a3bb49e1b" [[package]] name = "windows_i686_gnu" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de3887528ad530ba7bdbb1faa8275ec7a1155a45ffa57c37993960277145d640" +checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" [[package]] name = "windows_i686_gnu" @@ -4665,12 +4569,6 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "622a1962a7db830d6fd0a69683c80a18fda201879f0f447f065a3b7467daa241" -[[package]] -name = "windows_i686_msvc" -version = "0.36.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024" - [[package]] name = "windows_i686_msvc" version = "0.37.0" @@ -4685,9 +4583,9 @@ checksum = "7bc7cbfe58828921e10a9f446fcaaf649204dcfe6c1ddd712c5eebae6bda1106" [[package]] name = "windows_i686_msvc" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf4d1122317eddd6ff351aa852118a2418ad4214e6613a50e0191f7004372605" +checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" [[package]] name = "windows_i686_msvc" @@ -4695,12 +4593,6 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4542c6e364ce21bf45d69fdd2a8e455fa38d316158cfd43b3ac1c5b1b19f8e00" -[[package]] -name = "windows_x86_64_gnu" -version = "0.36.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1" - [[package]] name = "windows_x86_64_gnu" version = "0.37.0" @@ -4715,9 +4607,9 @@ checksum = "6868c165637d653ae1e8dc4d82c25d4f97dd6605eaa8d784b5c6e0ab2a252b65" [[package]] name = "windows_x86_64_gnu" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1040f221285e17ebccbc2591ffdc2d44ee1f9186324dd3e84e99ac68d699c45" +checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" [[package]] name = "windows_x86_64_gnu" @@ -4727,9 +4619,9 @@ checksum = "ca2b8a661f7628cbd23440e50b05d705db3686f894fc9580820623656af974b1" [[package]] name = "windows_x86_64_gnullvm" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "628bfdf232daa22b0d64fdb62b09fcc36bb01f05a3939e20ab73aaf9470d0463" +checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" [[package]] name = "windows_x86_64_gnullvm" @@ -4737,12 +4629,6 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7896dbc1f41e08872e9d5e8f8baa8fdd2677f29468c4e156210174edc7f7b953" -[[package]] -name = "windows_x86_64_msvc" -version = "0.36.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680" - [[package]] name = "windows_x86_64_msvc" version = "0.37.0" @@ -4757,9 +4643,9 @@ checksum = "5e4d40883ae9cae962787ca76ba76390ffa29214667a111db9e0a1ad8377e809" [[package]] name = "windows_x86_64_msvc" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "447660ad36a13288b1db4d4248e857b510e8c3a225c822ba4fb748c0aafecffd" +checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" [[package]] name = "windows_x86_64_msvc" @@ -4769,9 +4655,9 @@ checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a" [[package]] name = "winnow" -version = "0.4.1" +version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae8970b36c66498d8ff1d66685dc86b91b29db0c7739899012f63a63814b4b28" +checksum = "ca0ace3845f0d96209f0375e6d367e3eb87eb65d27d445bdc9f1843a26f39448" dependencies = [ "memchr", ] @@ -4785,11 +4671,21 @@ dependencies = [ "winapi", ] +[[package]] +name = "winreg" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76a1a57ff50e9b408431e8f97d5456f2807f8eb2a2cd79b06068fc87f8ecf189" +dependencies = [ + "cfg-if", + "winapi", +] + [[package]] name = "wry" -version = "0.24.1" +version = "0.24.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c846dc4dda988e959869dd0802cd27417c9696e584593e49178aeee28890d25" +checksum = "33748f35413c8a98d45f7a08832d848c0c5915501803d1faade5a4ebcd258cea" dependencies = [ "base64 0.13.1", "block", @@ -4825,9 +4721,9 @@ dependencies = [ [[package]] name = "x11" -version = "2.20.1" +version = "2.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2638d5b9c17ac40575fb54bb461a4b1d2a8d1b4ffcc4ff237d254ec59ddeb82" +checksum = "502da5464ccd04011667b11c435cb992822c2c0dbde1770c988480d312a0db2e" dependencies = [ "libc", "pkg-config", @@ -4835,12 +4731,12 @@ dependencies = [ [[package]] name = "x11-dl" -version = "2.20.1" +version = "2.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1536d6965a5d4e573c7ef73a2c15ebcd0b2de3347bdf526c34c297c00ac40f0" +checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f" dependencies = [ - "lazy_static", "libc", + "once_cell", "pkg-config", ] @@ -4853,11 +4749,21 @@ dependencies = [ "libc", ] +[[package]] +name = "xdg-home" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2769203cd13a0c6015d515be729c526d041e9cf2c0cc478d57faee85f40c6dcd" +dependencies = [ + "nix", + "winapi", +] + [[package]] name = "zbus" -version = "3.11.1" +version = "3.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3dc29e76f558b2cb94190e8605ecfe77dd40f5df8c072951714b4b71a97f5848" +checksum = "29242fa5ec5693629ae74d6eb1f69622a9511f600986d6d9779bccf36ac316e3" dependencies = [ "async-broadcast", "async-executor", @@ -4869,7 +4775,6 @@ dependencies = [ "async-trait", "byteorder", "derivative", - "dirs", "enumflags2", "event-listener", "futures-core", @@ -4887,6 +4792,7 @@ dependencies = [ "tracing", "uds_windows", "winapi", + "xdg-home", "zbus_macros", "zbus_names", "zvariant", @@ -4894,23 +4800,23 @@ dependencies = [ [[package]] name = "zbus_macros" -version = "3.11.1" +version = "3.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62a80fd82c011cd08459eaaf1fd83d3090c1b61e6d5284360074a7475af3a85d" +checksum = "537793e26e9af85f774801dc52c6f6292352b2b517c5cf0449ffd3735732a53a" dependencies = [ "proc-macro-crate", "proc-macro2", "quote", "regex", - "syn 1.0.107", + "syn 1.0.109", "zvariant_utils", ] [[package]] name = "zbus_names" -version = "2.5.0" +version = "2.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f34f314916bd89bdb9934154627fab152f4f28acdda03e7c4c68181b214fe7e3" +checksum = "82441e6033be0a741157a72951a3e4957d519698f3a824439cc131c5ba77ac2a" dependencies = [ "serde", "static_assertions", @@ -4919,9 +4825,9 @@ dependencies = [ [[package]] name = "zip" -version = "0.6.3" +version = "0.6.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "537ce7411d25e54e8ae21a7ce0b15840e7bfcff15b51d697ec3266cc76bdf080" +checksum = "760394e246e4c28189f19d488c058bf16f564016aefac5d32bb1f3b51d5e9261" dependencies = [ "byteorder", "crc32fast", @@ -4930,9 +4836,9 @@ dependencies = [ [[package]] name = "zvariant" -version = "3.12.0" +version = "3.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46fe4914a985446d6fd287019b5fceccce38303d71407d9e6e711d44954a05d8" +checksum = "5cb36cd95352132911c9c99fdcc1635de5c2c139bd34cbcf6dfb8350ee8ff6a7" dependencies = [ "byteorder", "enumflags2", @@ -4944,14 +4850,14 @@ dependencies = [ [[package]] name = "zvariant_derive" -version = "3.12.0" +version = "3.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34c20260af4b28b3275d6676c7e2a6be0d4332e8e0aba4616d34007fd84e462a" +checksum = "9b34951e1ac64f3a1443fe7181256b9ed6a811a1631917566c3d5ca718d8cf33" dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 1.0.107", + "syn 1.0.109", "zvariant_utils", ] @@ -4963,5 +4869,5 @@ checksum = "53b22993dbc4d128a17a3b6c92f1c63872dd67198537ee728d8b5d7c40640a8b" dependencies = [ "proc-macro2", "quote", - "syn 1.0.107", + "syn 1.0.109", ] diff --git a/examples/api/src/views/Notifications.svelte b/examples/api/src/views/Notifications.svelte index 624561dfa11a..32f5b137afb5 100644 --- a/examples/api/src/views/Notifications.svelte +++ b/examples/api/src/views/Notifications.svelte @@ -1,11 +1,22 @@ - diff --git a/tooling/api/docs/js-api.json b/tooling/api/docs/js-api.json index 7d038b2f973b..6eb8a688eef6 100644 --- a/tooling/api/docs/js-api.json +++ b/tooling/api/docs/js-api.json @@ -1 +1 @@ -{"id":0,"name":"@tauri-apps/api","variant":"project","kind":1,"flags":{},"children":[{"id":1,"name":"app","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Get application metadata.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.app`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.app`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.app) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"app\": {\n \"all\": true, // enable all app APIs\n \"show\": true,\n \"hide\": true\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security."}]},"children":[{"id":2,"name":"getName","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"app.ts","line":60,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/app.ts#L60"}],"signatures":[{"id":3,"name":"getName","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the application name."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getName } from '@tauri-apps/api/app';\nconst appName = await getName();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"app.ts","line":60,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/app.ts#L60"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":6,"name":"getTauriVersion","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"app.ts","line":80,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/app.ts#L80"}],"signatures":[{"id":7,"name":"getTauriVersion","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the Tauri version."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getTauriVersion } from '@tauri-apps/api/app';\nconst tauriVersion = await getTauriVersion();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"app.ts","line":80,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/app.ts#L80"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":4,"name":"getVersion","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"app.ts","line":41,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/app.ts#L41"}],"signatures":[{"id":5,"name":"getVersion","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the application version."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getVersion } from '@tauri-apps/api/app';\nconst appVersion = await getVersion();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"app.ts","line":41,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/app.ts#L41"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":10,"name":"hide","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"app.ts","line":120,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/app.ts#L120"}],"signatures":[{"id":11,"name":"hide","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Hides the application on macOS."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { hide } from '@tauri-apps/api/app';\nawait hide();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"app.ts","line":120,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/app.ts#L120"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":8,"name":"show","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"app.ts","line":100,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/app.ts#L100"}],"signatures":[{"id":9,"name":"show","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Shows the application on macOS. This function does not automatically focus any specific app window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { show } from '@tauri-apps/api/app';\nawait show();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"app.ts","line":100,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/app.ts#L100"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Functions","children":[2,6,4,10,8]}],"sources":[{"fileName":"app.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/app.ts#L1"}]},{"id":12,"name":"cli","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Parse arguments from your Command Line Interface.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.cli`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"children":[{"id":13,"name":"ArgMatch","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":15,"name":"occurrences","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Number of occurrences"}]},"sources":[{"fileName":"cli.ts","line":27,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/cli.ts#L27"}],"type":{"type":"intrinsic","name":"number"}},{"id":14,"name":"value","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"string if takes value\nboolean if flag\nstring[] or null if takes multiple values"}]},"sources":[{"fileName":"cli.ts","line":23,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/cli.ts#L23"}],"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"boolean"},{"type":"array","elementType":{"type":"intrinsic","name":"string"}}]}}],"groups":[{"title":"Properties","children":[15,14]}],"sources":[{"fileName":"cli.ts","line":17,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/cli.ts#L17"}]},{"id":19,"name":"CliMatches","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":20,"name":"args","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"cli.ts","line":42,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/cli.ts#L42"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"reference","target":13,"name":"ArgMatch","package":"@tauri-apps/api"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}},{"id":21,"name":"subcommand","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"cli.ts","line":43,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/cli.ts#L43"}],"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"reference","target":16,"name":"SubcommandMatch","package":"@tauri-apps/api"}]}}],"groups":[{"title":"Properties","children":[20,21]}],"sources":[{"fileName":"cli.ts","line":41,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/cli.ts#L41"}]},{"id":16,"name":"SubcommandMatch","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":18,"name":"matches","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"cli.ts","line":35,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/cli.ts#L35"}],"type":{"type":"reference","target":19,"name":"CliMatches","package":"@tauri-apps/api"}},{"id":17,"name":"name","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"cli.ts","line":34,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/cli.ts#L34"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[18,17]}],"sources":[{"fileName":"cli.ts","line":33,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/cli.ts#L33"}]},{"id":22,"name":"getMatches","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"cli.ts","line":66,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/cli.ts#L66"}],"signatures":[{"id":23,"name":"getMatches","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Parse the arguments provided to the current process and get the matches using the configuration defined ["},{"kind":"code","text":"`tauri.cli`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#tauriconfig.cli) in "},{"kind":"code","text":"`tauri.conf.json`"}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getMatches } from '@tauri-apps/api/cli';\nconst matches = await getMatches();\nif (matches.subcommand?.name === 'run') {\n // `./your-app run $ARGS` was executed\n const args = matches.subcommand?.matches.args\n if ('debug' in args) {\n // `./your-app run --debug` was executed\n }\n} else {\n const args = matches.args\n // `./your-app $ARGS` was executed\n}\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"cli.ts","line":66,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/cli.ts#L66"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":19,"name":"CliMatches","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Interfaces","children":[13,19,16]},{"title":"Functions","children":[22]}],"sources":[{"fileName":"cli.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/cli.ts#L1"}]},{"id":24,"name":"clipboard","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Read and write to the system clipboard.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.clipboard`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.clipboard`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.clipboard) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"clipboard\": {\n \"all\": true, // enable all Clipboard APIs\n \"writeText\": true,\n \"readText\": true\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security."}]},"children":[{"id":28,"name":"readText","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"clipboard.ts","line":63,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/clipboard.ts#L63"}],"signatures":[{"id":29,"name":"readText","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the clipboard content as plain text."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { readText } from '@tauri-apps/api/clipboard';\nconst clipboardText = await readText();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0."}]}]},"sources":[{"fileName":"clipboard.ts","line":63,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/clipboard.ts#L63"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"literal","value":null}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":25,"name":"writeText","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"clipboard.ts","line":44,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/clipboard.ts#L44"}],"signatures":[{"id":26,"name":"writeText","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Writes plain text to the clipboard."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { writeText, readText } from '@tauri-apps/api/clipboard';\nawait writeText('Tauri is awesome!');\nassert(await readText(), 'Tauri is awesome!');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0."}]}]},"sources":[{"fileName":"clipboard.ts","line":44,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/clipboard.ts#L44"}],"parameters":[{"id":27,"name":"text","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Functions","children":[28,25]}],"sources":[{"fileName":"clipboard.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/clipboard.ts#L1"}]},{"id":30,"name":"dialog","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Native system dialogs for opening and saving files.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.dialog`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.dialog`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.dialog) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"dialog\": {\n \"all\": true, // enable all dialog APIs\n \"ask\": true, // enable dialog ask API\n \"confirm\": true, // enable dialog confirm API\n \"message\": true, // enable dialog message API\n \"open\": true, // enable file open API\n \"save\": true // enable file save API\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security."}]},"children":[{"id":49,"name":"ConfirmDialogOptions","variant":"declaration","kind":256,"flags":{},"children":[{"id":53,"name":"cancelLabel","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The label of the cancel button."}]},"sources":[{"fileName":"dialog.ts","line":112,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L112"}],"type":{"type":"intrinsic","name":"string"}},{"id":52,"name":"okLabel","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The label of the confirm button."}]},"sources":[{"fileName":"dialog.ts","line":110,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L110"}],"type":{"type":"intrinsic","name":"string"}},{"id":50,"name":"title","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The title of the dialog. Defaults to the app name."}]},"sources":[{"fileName":"dialog.ts","line":106,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L106"}],"type":{"type":"intrinsic","name":"string"}},{"id":51,"name":"type","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The type of the dialog. Defaults to "},{"kind":"code","text":"`info`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"dialog.ts","line":108,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L108"}],"type":{"type":"union","types":[{"type":"literal","value":"info"},{"type":"literal","value":"warning"},{"type":"literal","value":"error"}]}}],"groups":[{"title":"Properties","children":[53,52,50,51]}],"sources":[{"fileName":"dialog.ts","line":104,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L104"}]},{"id":31,"name":"DialogFilter","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Extension filters for the file dialog."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":33,"name":"extensions","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Extensions to filter, without a "},{"kind":"code","text":"`.`"},{"kind":"text","text":" prefix."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nextensions: ['svg', 'png']\n```"}]}]},"sources":[{"fileName":"dialog.ts","line":48,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L48"}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}},{"id":32,"name":"name","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Filter name."}]},"sources":[{"fileName":"dialog.ts","line":40,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L40"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[33,32]}],"sources":[{"fileName":"dialog.ts","line":38,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L38"}]},{"id":45,"name":"MessageDialogOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":48,"name":"okLabel","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The label of the confirm button."}]},"sources":[{"fileName":"dialog.ts","line":101,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L101"}],"type":{"type":"intrinsic","name":"string"}},{"id":46,"name":"title","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The title of the dialog. Defaults to the app name."}]},"sources":[{"fileName":"dialog.ts","line":97,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L97"}],"type":{"type":"intrinsic","name":"string"}},{"id":47,"name":"type","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The type of the dialog. Defaults to "},{"kind":"code","text":"`info`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"dialog.ts","line":99,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L99"}],"type":{"type":"union","types":[{"type":"literal","value":"info"},{"type":"literal","value":"warning"},{"type":"literal","value":"error"}]}}],"groups":[{"title":"Properties","children":[48,46,47]}],"sources":[{"fileName":"dialog.ts","line":95,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L95"}]},{"id":34,"name":"OpenDialogOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Options for the open dialog."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":37,"name":"defaultPath","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Initial directory or file path."}]},"sources":[{"fileName":"dialog.ts","line":62,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L62"}],"type":{"type":"intrinsic","name":"string"}},{"id":39,"name":"directory","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the dialog is a directory selection or not."}]},"sources":[{"fileName":"dialog.ts","line":66,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L66"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":36,"name":"filters","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The filters of the dialog."}]},"sources":[{"fileName":"dialog.ts","line":60,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L60"}],"type":{"type":"array","elementType":{"type":"reference","target":31,"name":"DialogFilter","package":"@tauri-apps/api"}}},{"id":38,"name":"multiple","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the dialog allows multiple selection or not."}]},"sources":[{"fileName":"dialog.ts","line":64,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L64"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":40,"name":"recursive","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"If "},{"kind":"code","text":"`directory`"},{"kind":"text","text":" is true, indicates that it will be read recursively later.\nDefines whether subdirectories will be allowed on the scope or not."}]},"sources":[{"fileName":"dialog.ts","line":71,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L71"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":35,"name":"title","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The title of the dialog window."}]},"sources":[{"fileName":"dialog.ts","line":58,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L58"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[37,39,36,38,40,35]}],"sources":[{"fileName":"dialog.ts","line":56,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L56"}]},{"id":41,"name":"SaveDialogOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Options for the save dialog."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":44,"name":"defaultPath","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Initial directory or file path.\nIf it's a directory path, the dialog interface will change to that folder.\nIf it's not an existing directory, the file name will be set to the dialog's file name input and the dialog will be set to the parent folder."}]},"sources":[{"fileName":"dialog.ts","line":89,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L89"}],"type":{"type":"intrinsic","name":"string"}},{"id":43,"name":"filters","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The filters of the dialog."}]},"sources":[{"fileName":"dialog.ts","line":83,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L83"}],"type":{"type":"array","elementType":{"type":"reference","target":31,"name":"DialogFilter","package":"@tauri-apps/api"}}},{"id":42,"name":"title","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The title of the dialog window."}]},"sources":[{"fileName":"dialog.ts","line":81,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L81"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[44,43,42]}],"sources":[{"fileName":"dialog.ts","line":79,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L79"}]},{"id":64,"name":"ask","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"dialog.ts","line":271,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L271"}],"signatures":[{"id":65,"name":"ask","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Shows a question dialog with "},{"kind":"code","text":"`Yes`"},{"kind":"text","text":" and "},{"kind":"code","text":"`No`"},{"kind":"text","text":" buttons."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { ask } from '@tauri-apps/api/dialog';\nconst yes = await ask('Are you sure?', 'Tauri');\nconst yes2 = await ask('This action cannot be reverted. Are you sure?', { title: 'Tauri', type: 'warning' });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a boolean indicating whether "},{"kind":"code","text":"`Yes`"},{"kind":"text","text":" was clicked or not."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"dialog.ts","line":271,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L271"}],"parameters":[{"id":66,"name":"message","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The message to show."}]},"type":{"type":"intrinsic","name":"string"}},{"id":67,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The dialog's options. If a string, it represents the dialog title."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":49,"name":"ConfirmDialogOptions","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":68,"name":"confirm","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"dialog.ts","line":307,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L307"}],"signatures":[{"id":69,"name":"confirm","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Shows a question dialog with "},{"kind":"code","text":"`Ok`"},{"kind":"text","text":" and "},{"kind":"code","text":"`Cancel`"},{"kind":"text","text":" buttons."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { confirm } from '@tauri-apps/api/dialog';\nconst confirmed = await confirm('Are you sure?', 'Tauri');\nconst confirmed2 = await confirm('This action cannot be reverted. Are you sure?', { title: 'Tauri', type: 'warning' });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a boolean indicating whether "},{"kind":"code","text":"`Ok`"},{"kind":"text","text":" was clicked or not."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"dialog.ts","line":307,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L307"}],"parameters":[{"id":70,"name":"message","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The message to show."}]},"type":{"type":"intrinsic","name":"string"}},{"id":71,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The dialog's options. If a string, it represents the dialog title."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":49,"name":"ConfirmDialogOptions","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":60,"name":"message","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"dialog.ts","line":238,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L238"}],"signatures":[{"id":61,"name":"message","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Shows a message dialog with an "},{"kind":"code","text":"`Ok`"},{"kind":"text","text":" button."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { message } from '@tauri-apps/api/dialog';\nawait message('Tauri is awesome', 'Tauri');\nawait message('File not found', { title: 'Tauri', type: 'error' });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"dialog.ts","line":238,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L238"}],"parameters":[{"id":62,"name":"message","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The message to show."}]},"type":{"type":"intrinsic","name":"string"}},{"id":63,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The dialog's options. If a string, it represents the dialog title."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":45,"name":"MessageDialogOptions","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":54,"name":"open","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"dialog.ts","line":167,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L167"}],"signatures":[{"id":55,"name":"open","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Open a file/directory selection dialog.\n\nThe selected paths are added to the filesystem and asset protocol allowlist scopes.\nWhen security is more important than the easy of use of this API,\nprefer writing a dedicated command instead.\n\nNote that the allowlist scope change is not persisted, so the values are cleared when the application is restarted.\nYou can save it to the filesystem using [tauri-plugin-persisted-scope](https://github.com/tauri-apps/tauri-plugin-persisted-scope)."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { open } from '@tauri-apps/api/dialog';\n// Open a selection dialog for image files\nconst selected = await open({\n multiple: true,\n filters: [{\n name: 'Image',\n extensions: ['png', 'jpeg']\n }]\n});\nif (Array.isArray(selected)) {\n // user selected multiple files\n} else if (selected === null) {\n // user cancelled the selection\n} else {\n // user selected a single file\n}\n```"}]},{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { open } from '@tauri-apps/api/dialog';\nimport { appDir } from '@tauri-apps/api/path';\n// Open a selection dialog for directories\nconst selected = await open({\n directory: true,\n multiple: true,\n defaultPath: await appDir(),\n});\nif (Array.isArray(selected)) {\n // user selected multiple directories\n} else if (selected === null) {\n // user cancelled the selection\n} else {\n // user selected a single directory\n}\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to the selected path(s)"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"dialog.ts","line":167,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L167"}],"parameters":[{"id":56,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":34,"name":"OpenDialogOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"literal","value":null},{"type":"intrinsic","name":"string"},{"type":"array","elementType":{"type":"intrinsic","name":"string"}}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":57,"name":"save","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"dialog.ts","line":207,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L207"}],"signatures":[{"id":58,"name":"save","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Open a file/directory save dialog.\n\nThe selected path is added to the filesystem and asset protocol allowlist scopes.\nWhen security is more important than the easy of use of this API,\nprefer writing a dedicated command instead.\n\nNote that the allowlist scope change is not persisted, so the values are cleared when the application is restarted.\nYou can save it to the filesystem using [tauri-plugin-persisted-scope](https://github.com/tauri-apps/tauri-plugin-persisted-scope)."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { save } from '@tauri-apps/api/dialog';\nconst filePath = await save({\n filters: [{\n name: 'Image',\n extensions: ['png', 'jpeg']\n }]\n});\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to the selected path."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"dialog.ts","line":207,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L207"}],"parameters":[{"id":59,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":41,"name":"SaveDialogOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"literal","value":null}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Interfaces","children":[49,31,45,34,41]},{"title":"Functions","children":[64,68,60,54,57]}],"sources":[{"fileName":"dialog.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/dialog.ts#L1"}]},{"id":72,"name":"event","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"The event system allows you to emit events to the backend and listen to events from it.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.event`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"children":[{"id":74,"name":"TauriEvent","variant":"declaration","kind":8,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"children":[{"id":88,"name":"CHECK_UPDATE","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":34,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L34"}],"type":{"type":"literal","value":"tauri://update"}},{"id":92,"name":"DOWNLOAD_PROGRESS","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":38,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L38"}],"type":{"type":"literal","value":"tauri://update-download-progress"}},{"id":90,"name":"INSTALL_UPDATE","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":36,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L36"}],"type":{"type":"literal","value":"tauri://update-install"}},{"id":87,"name":"MENU","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":33,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L33"}],"type":{"type":"literal","value":"tauri://menu"}},{"id":91,"name":"STATUS_UPDATE","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":37,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L37"}],"type":{"type":"literal","value":"tauri://update-status"}},{"id":89,"name":"UPDATE_AVAILABLE","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":35,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L35"}],"type":{"type":"literal","value":"tauri://update-available"}},{"id":81,"name":"WINDOW_BLUR","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":27,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L27"}],"type":{"type":"literal","value":"tauri://blur"}},{"id":77,"name":"WINDOW_CLOSE_REQUESTED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":23,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L23"}],"type":{"type":"literal","value":"tauri://close-requested"}},{"id":78,"name":"WINDOW_CREATED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":24,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L24"}],"type":{"type":"literal","value":"tauri://window-created"}},{"id":79,"name":"WINDOW_DESTROYED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":25,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L25"}],"type":{"type":"literal","value":"tauri://destroyed"}},{"id":84,"name":"WINDOW_FILE_DROP","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":30,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L30"}],"type":{"type":"literal","value":"tauri://file-drop"}},{"id":86,"name":"WINDOW_FILE_DROP_CANCELLED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":32,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L32"}],"type":{"type":"literal","value":"tauri://file-drop-cancelled"}},{"id":85,"name":"WINDOW_FILE_DROP_HOVER","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":31,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L31"}],"type":{"type":"literal","value":"tauri://file-drop-hover"}},{"id":80,"name":"WINDOW_FOCUS","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":26,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L26"}],"type":{"type":"literal","value":"tauri://focus"}},{"id":76,"name":"WINDOW_MOVED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":22,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L22"}],"type":{"type":"literal","value":"tauri://move"}},{"id":75,"name":"WINDOW_RESIZED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":21,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L21"}],"type":{"type":"literal","value":"tauri://resize"}},{"id":82,"name":"WINDOW_SCALE_FACTOR_CHANGED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":28,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L28"}],"type":{"type":"literal","value":"tauri://scale-change"}},{"id":83,"name":"WINDOW_THEME_CHANGED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":29,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L29"}],"type":{"type":"literal","value":"tauri://theme-changed"}}],"groups":[{"title":"Enumeration Members","children":[88,92,90,87,91,89,81,77,78,79,84,86,85,80,76,75,82,83]}],"sources":[{"fileName":"event.ts","line":20,"character":12,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L20"}]},{"id":1161,"name":"Event","variant":"declaration","kind":256,"flags":{},"children":[{"id":1162,"name":"event","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name"}]},"sources":[{"fileName":"helpers/event.ts","line":12,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/helpers/event.ts#L12"}],"type":{"type":"reference","target":73,"name":"EventName","package":"@tauri-apps/api"}},{"id":1164,"name":"id","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event identifier used to unlisten"}]},"sources":[{"fileName":"helpers/event.ts","line":16,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/helpers/event.ts#L16"}],"type":{"type":"intrinsic","name":"number"}},{"id":1165,"name":"payload","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event payload"}]},"sources":[{"fileName":"helpers/event.ts","line":18,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/helpers/event.ts#L18"}],"type":{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}},{"id":1163,"name":"windowLabel","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The label of the window that emitted this event."}]},"sources":[{"fileName":"helpers/event.ts","line":14,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/helpers/event.ts#L14"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[1162,1164,1165,1163]}],"sources":[{"fileName":"helpers/event.ts","line":10,"character":17,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/helpers/event.ts#L10"}],"typeParameters":[{"id":1166,"name":"T","variant":"typeParam","kind":131072,"flags":{}}]},{"id":1167,"name":"EventCallback","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"helpers/event.ts","line":21,"character":12,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/helpers/event.ts#L21"}],"typeParameters":[{"id":1171,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"type":{"type":"reflection","declaration":{"id":1168,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"helpers/event.ts","line":21,"character":31,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/helpers/event.ts#L21"}],"signatures":[{"id":1169,"name":"__type","variant":"signature","kind":4096,"flags":{},"parameters":[{"id":1170,"name":"event","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1161,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Event","package":"@tauri-apps/api"}}],"type":{"type":"intrinsic","name":"void"}}]}}},{"id":73,"name":"EventName","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"event.ts","line":15,"character":12,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L15"}],"type":{"type":"union","types":[{"type":"templateLiteral","head":"","tail":[[{"type":"reference","target":74,"name":"TauriEvent","package":"@tauri-apps/api"},""]]},{"type":"intersection","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"never"},{"type":"intrinsic","name":"never"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}]}]}},{"id":1172,"name":"UnlistenFn","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"helpers/event.ts","line":23,"character":12,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/helpers/event.ts#L23"}],"type":{"type":"reflection","declaration":{"id":1173,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"helpers/event.ts","line":23,"character":25,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/helpers/event.ts#L23"}],"signatures":[{"id":1174,"name":"__type","variant":"signature","kind":4096,"flags":{},"type":{"type":"intrinsic","name":"void"}}]}}},{"id":103,"name":"emit","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"event.ts","line":113,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L113"}],"signatures":[{"id":104,"name":"emit","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Emits an event to the backend and all Tauri windows."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { emit } from '@tauri-apps/api/event';\nawait emit('frontend-loaded', { loggedIn: true, token: 'authToken' });\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"event.ts","line":113,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L113"}],"parameters":[{"id":105,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":106,"name":"payload","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"intrinsic","name":"unknown"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":93,"name":"listen","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"event.ts","line":63,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L63"}],"signatures":[{"id":94,"name":"listen","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to an event. The event can be either global or window-specific.\nSee "},{"kind":"inline-tag","tag":"@link","text":"windowLabel","target":1163,"tsLinkText":""},{"kind":"text","text":" to check the event source."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { listen } from '@tauri-apps/api/event';\nconst unlisten = await listen('error', (event) => {\n console.log(`Got error in window ${event.windowLabel}, payload: ${event.payload}`);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"event.ts","line":63,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L63"}],"typeParameter":[{"id":95,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":96,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"reference","target":73,"name":"EventName","package":"@tauri-apps/api"}},{"id":97,"name":"handler","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event handler callback."}]},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":98,"name":"once","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"event.ts","line":94,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L94"}],"signatures":[{"id":99,"name":"once","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to an one-off event. See "},{"kind":"inline-tag","tag":"@link","text":"listen","target":93,"tsLinkText":""},{"kind":"text","text":" for more information."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { once } from '@tauri-apps/api/event';\ninterface LoadedPayload {\n loggedIn: boolean,\n token: string\n}\nconst unlisten = await once('loaded', (event) => {\n console.log(`App is loaded, loggedIn: ${event.payload.loggedIn}, token: ${event.payload.token}`);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"event.ts","line":94,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L94"}],"typeParameter":[{"id":100,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":101,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"reference","target":73,"name":"EventName","package":"@tauri-apps/api"}},{"id":102,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Enumerations","children":[74]},{"title":"Interfaces","children":[1161]},{"title":"Type Aliases","children":[1167,73,1172]},{"title":"Functions","children":[103,93,98]}],"sources":[{"fileName":"event.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/event.ts#L1"}]},{"id":107,"name":"fs","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Access the file system.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.fs`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.fs`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.fs) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"fs\": {\n \"all\": true, // enable all FS APIs\n \"readFile\": true,\n \"writeFile\": true,\n \"readDir\": true,\n \"copyFile\": true,\n \"createDir\": true,\n \"removeDir\": true,\n \"removeFile\": true,\n \"renameFile\": true,\n \"exists\": true\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security.\n\n## Security\n\nThis module prevents path traversal, not allowing absolute paths or parent dir components\n(i.e. \"/usr/path/to/file\" or \"../path/to/file\" paths are not allowed).\nPaths accessed with this API must be relative to one of the "},{"kind":"inline-tag","tag":"@link","text":"base directories","target":108},{"kind":"text","text":"\nso if you need access to arbitrary filesystem paths, you must write such logic on the core layer instead.\n\nThe API has a scope configuration that forces you to restrict the paths that can be accessed using glob patterns.\n\nThe scope configuration is an array of glob patterns describing folder paths that are allowed.\nFor instance, this scope configuration only allows accessing files on the\n*databases* folder of the "},{"kind":"inline-tag","tag":"@link","text":"$APPDATA directory","target":382},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"fs\": {\n \"scope\": [\"$APPDATA/databases/*\"]\n }\n }\n }\n}\n```"},{"kind":"text","text":"\n\nNotice the use of the "},{"kind":"code","text":"`$APPDATA`"},{"kind":"text","text":" variable. The value is injected at runtime, resolving to the "},{"kind":"inline-tag","tag":"@link","text":"app data directory","target":382},{"kind":"text","text":".\nThe available variables are:\n"},{"kind":"inline-tag","tag":"@link","text":"`$APPCONFIG`","target":380},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$APPDATA`","target":382},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$APPLOCALDATA`","target":384},{"kind":"text","text":",\n"},{"kind":"inline-tag","tag":"@link","text":"`$APPCACHE`","target":386},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$APPLOG`","target":388},{"kind":"text","text":",\n"},{"kind":"inline-tag","tag":"@link","text":"`$AUDIO`","target":390},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$CACHE`","target":392},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$CONFIG`","target":394},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$DATA`","target":396},{"kind":"text","text":",\n"},{"kind":"inline-tag","tag":"@link","text":"`$LOCALDATA`","target":410},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$DESKTOP`","target":398},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$DOCUMENT`","target":400},{"kind":"text","text":",\n"},{"kind":"inline-tag","tag":"@link","text":"`$DOWNLOAD`","target":402},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$EXE`","target":404},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$FONT`","target":406},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$HOME`","target":408},{"kind":"text","text":",\n"},{"kind":"inline-tag","tag":"@link","text":"`$PICTURE`","target":412},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$PUBLIC`","target":414},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$RUNTIME`","target":421},{"kind":"text","text":",\n"},{"kind":"inline-tag","tag":"@link","text":"`$TEMPLATE`","target":423},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$VIDEO`","target":425},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$RESOURCE`","target":416},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$APP`","target":378},{"kind":"text","text":",\n"},{"kind":"inline-tag","tag":"@link","text":"`$LOG`","target":427},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$TEMP`","target":370},{"kind":"text","text":".\n\nTrying to execute any API with a URL not configured on the scope results in a promise rejection due to denied access.\n\nNote that this scope applies to **all** APIs on this module."}]},"children":[{"id":150,"name":"Dir","variant":"reference","kind":8388608,"flags":{},"sources":[{"fileName":"fs.ts","line":593,"character":19,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L593"}],"target":108},{"id":167,"name":"writeFile","variant":"reference","kind":8388608,"flags":{},"sources":[{"fileName":"fs.ts","line":597,"character":19,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L597"}],"target":159},{"id":108,"name":"BaseDirectory","variant":"declaration","kind":8,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":126,"name":"App","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":98,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L98"}],"type":{"type":"literal","value":18}},{"id":132,"name":"AppCache","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":104,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L104"}],"type":{"type":"literal","value":24}},{"id":129,"name":"AppConfig","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":101,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L101"}],"type":{"type":"literal","value":21}},{"id":130,"name":"AppData","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":102,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L102"}],"type":{"type":"literal","value":22}},{"id":131,"name":"AppLocalData","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":103,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L103"}],"type":{"type":"literal","value":23}},{"id":133,"name":"AppLog","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":105,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L105"}],"type":{"type":"literal","value":25}},{"id":109,"name":"Audio","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":81,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L81"}],"type":{"type":"literal","value":1}},{"id":110,"name":"Cache","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":82,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L82"}],"type":{"type":"literal","value":2}},{"id":111,"name":"Config","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":83,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L83"}],"type":{"type":"literal","value":3}},{"id":112,"name":"Data","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":84,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L84"}],"type":{"type":"literal","value":4}},{"id":114,"name":"Desktop","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":86,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L86"}],"type":{"type":"literal","value":6}},{"id":115,"name":"Document","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":87,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L87"}],"type":{"type":"literal","value":7}},{"id":116,"name":"Download","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":88,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L88"}],"type":{"type":"literal","value":8}},{"id":117,"name":"Executable","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":89,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L89"}],"type":{"type":"literal","value":9}},{"id":118,"name":"Font","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":90,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L90"}],"type":{"type":"literal","value":10}},{"id":119,"name":"Home","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":91,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L91"}],"type":{"type":"literal","value":11}},{"id":113,"name":"LocalData","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":85,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L85"}],"type":{"type":"literal","value":5}},{"id":127,"name":"Log","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":99,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L99"}],"type":{"type":"literal","value":19}},{"id":120,"name":"Picture","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":92,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L92"}],"type":{"type":"literal","value":12}},{"id":121,"name":"Public","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":93,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L93"}],"type":{"type":"literal","value":13}},{"id":125,"name":"Resource","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":97,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L97"}],"type":{"type":"literal","value":17}},{"id":122,"name":"Runtime","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":94,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L94"}],"type":{"type":"literal","value":14}},{"id":128,"name":"Temp","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":100,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L100"}],"type":{"type":"literal","value":20}},{"id":123,"name":"Template","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":95,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L95"}],"type":{"type":"literal","value":15}},{"id":124,"name":"Video","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":96,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L96"}],"type":{"type":"literal","value":16}}],"groups":[{"title":"Enumeration Members","children":[126,132,129,130,131,133,109,110,111,112,114,115,116,117,118,119,113,127,120,121,125,122,128,123,124]}],"sources":[{"fileName":"fs.ts","line":80,"character":12,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L80"}]},{"id":146,"name":"FileEntry","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":149,"name":"children","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Children of this entry if it's a directory; null otherwise"}]},"sources":[{"fileName":"fs.ts","line":161,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L161"}],"type":{"type":"array","elementType":{"type":"reference","target":146,"name":"FileEntry","package":"@tauri-apps/api"}}},{"id":148,"name":"name","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Name of the directory/file\ncan be null if the path terminates with "},{"kind":"code","text":"`..`"}]},"sources":[{"fileName":"fs.ts","line":159,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L159"}],"type":{"type":"intrinsic","name":"string"}},{"id":147,"name":"path","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"fs.ts","line":154,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L154"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[149,148,147]}],"sources":[{"fileName":"fs.ts","line":153,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L153"}]},{"id":143,"name":"FsBinaryFileOption","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Options object used to write a binary data to a file."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":145,"name":"contents","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The byte array contents."}]},"sources":[{"fileName":"fs.ts","line":147,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L147"}],"type":{"type":"reference","target":142,"name":"BinaryFileContents","package":"@tauri-apps/api"}},{"id":144,"name":"path","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Path to the file to write."}]},"sources":[{"fileName":"fs.ts","line":145,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L145"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[145,144]}],"sources":[{"fileName":"fs.ts","line":143,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L143"}]},{"id":136,"name":"FsDirOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":137,"name":"dir","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"fs.ts","line":120,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L120"}],"type":{"type":"reference","target":108,"name":"BaseDirectory","package":"@tauri-apps/api"}},{"id":138,"name":"recursive","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"fs.ts","line":121,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L121"}],"type":{"type":"intrinsic","name":"boolean"}}],"groups":[{"title":"Properties","children":[137,138]}],"sources":[{"fileName":"fs.ts","line":119,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L119"}]},{"id":134,"name":"FsOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":135,"name":"dir","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"fs.ts","line":112,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L112"}],"type":{"type":"reference","target":108,"name":"BaseDirectory","package":"@tauri-apps/api"}}],"groups":[{"title":"Properties","children":[135]}],"sources":[{"fileName":"fs.ts","line":111,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L111"}]},{"id":139,"name":"FsTextFileOption","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Options object used to write a UTF-8 string to a file."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":141,"name":"contents","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The UTF-8 string to write to the file."}]},"sources":[{"fileName":"fs.ts","line":133,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L133"}],"type":{"type":"intrinsic","name":"string"}},{"id":140,"name":"path","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Path to the file to write."}]},"sources":[{"fileName":"fs.ts","line":131,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L131"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[141,140]}],"sources":[{"fileName":"fs.ts","line":129,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L129"}]},{"id":142,"name":"BinaryFileContents","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"fs.ts","line":136,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L136"}],"type":{"type":"union","types":[{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es2015.iterable.d.ts","qualifiedName":"Iterable"},"typeArguments":[{"type":"intrinsic","name":"number"}],"name":"Iterable","package":"typescript"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"ArrayLike"},"typeArguments":[{"type":"intrinsic","name":"number"}],"name":"ArrayLike","package":"typescript"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"ArrayBuffer"},"name":"ArrayBuffer","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer"}]}},{"id":188,"name":"copyFile","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":489,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L489"}],"signatures":[{"id":189,"name":"copyFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Copies a file to a destination."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { copyFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Copy the `$APPCONFIG/app.conf` file to `$APPCONFIG/app.conf.bk`\nawait copyFile('app.conf', 'app.conf.bk', { dir: BaseDirectory.AppConfig });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":489,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L489"}],"parameters":[{"id":190,"name":"source","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":191,"name":"destination","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":192,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":180,"name":"createDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":434,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L434"}],"signatures":[{"id":181,"name":"createDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a directory.\nIf one of the path's parent components doesn't exist\nand the "},{"kind":"code","text":"`recursive`"},{"kind":"text","text":" option isn't set to true, the promise will be rejected."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { createDir, BaseDirectory } from '@tauri-apps/api/fs';\n// Create the `$APPDATA/users` directory\nawait createDir('users', { dir: BaseDirectory.AppData, recursive: true });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":434,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L434"}],"parameters":[{"id":182,"name":"dir","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":183,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":136,"name":"FsDirOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":202,"name":"exists","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":572,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L572"}],"signatures":[{"id":203,"name":"exists","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Check if a path exists."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { exists, BaseDirectory } from '@tauri-apps/api/fs';\n// Check if the `$APPDATA/avatar.png` file exists\nawait exists('avatar.png', { dir: BaseDirectory.AppData });\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"fs.ts","line":572,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L572"}],"parameters":[{"id":204,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":205,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":155,"name":"readBinaryFile","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":200,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L200"}],"signatures":[{"id":156,"name":"readBinaryFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Reads a file as byte array."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { readBinaryFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Read the image file in the `$RESOURCEDIR/avatar.png` path\nconst contents = await readBinaryFile('avatar.png', { dir: BaseDirectory.Resource });\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":200,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L200"}],"parameters":[{"id":157,"name":"filePath","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":158,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Uint8Array"},"name":"Uint8Array","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":176,"name":"readDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":405,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L405"}],"signatures":[{"id":177,"name":"readDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"List directory files."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { readDir, BaseDirectory } from '@tauri-apps/api/fs';\n// Reads the `$APPDATA/users` directory recursively\nconst entries = await readDir('users', { dir: BaseDirectory.AppData, recursive: true });\n\nfunction processEntries(entries) {\n for (const entry of entries) {\n console.log(`Entry: ${entry.path}`);\n if (entry.children) {\n processEntries(entry.children)\n }\n }\n}\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":405,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L405"}],"parameters":[{"id":178,"name":"dir","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":179,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":136,"name":"FsDirOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"array","elementType":{"type":"reference","target":146,"name":"FileEntry","package":"@tauri-apps/api"}}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":151,"name":"readTextFile","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":175,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L175"}],"signatures":[{"id":152,"name":"readTextFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Reads a file as an UTF-8 encoded string."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { readTextFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Read the text file in the `$APPCONFIG/app.conf` path\nconst contents = await readTextFile('app.conf', { dir: BaseDirectory.AppConfig });\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":175,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L175"}],"parameters":[{"id":153,"name":"filePath","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":154,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":184,"name":"removeDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":462,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L462"}],"signatures":[{"id":185,"name":"removeDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Removes a directory.\nIf the directory is not empty and the "},{"kind":"code","text":"`recursive`"},{"kind":"text","text":" option isn't set to true, the promise will be rejected."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { removeDir, BaseDirectory } from '@tauri-apps/api/fs';\n// Remove the directory `$APPDATA/users`\nawait removeDir('users', { dir: BaseDirectory.AppData });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":462,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L462"}],"parameters":[{"id":186,"name":"dir","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":187,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":136,"name":"FsDirOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":193,"name":"removeFile","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":518,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L518"}],"signatures":[{"id":194,"name":"removeFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Removes a file."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { removeFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Remove the `$APPConfig/app.conf` file\nawait removeFile('app.conf', { dir: BaseDirectory.AppConfig });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":518,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L518"}],"parameters":[{"id":195,"name":"file","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":196,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":197,"name":"renameFile","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":545,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L545"}],"signatures":[{"id":198,"name":"renameFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Renames a file."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { renameFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Rename the `$APPDATA/avatar.png` file\nawait renameFile('avatar.png', 'deleted.png', { dir: BaseDirectory.AppData });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":545,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L545"}],"parameters":[{"id":199,"name":"oldPath","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":200,"name":"newPath","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":201,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":168,"name":"writeBinaryFile","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":309,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L309"},{"fileName":"fs.ts","line":330,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L330"},{"fileName":"fs.ts","line":342,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L342"}],"signatures":[{"id":169,"name":"writeBinaryFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Writes a byte array content to a file."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { writeBinaryFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Write a binary file to the `$APPDATA/avatar.png` path\nawait writeBinaryFile('avatar.png', new Uint8Array([]), { dir: BaseDirectory.AppData });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":309,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L309"}],"parameters":[{"id":170,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":171,"name":"contents","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":142,"name":"BinaryFileContents","package":"@tauri-apps/api"}},{"id":172,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Configuration object."}]},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}},{"id":173,"name":"writeBinaryFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Writes a byte array content to a file."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { writeBinaryFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Write a binary file to the `$APPDATA/avatar.png` path\nawait writeBinaryFile({ path: 'avatar.png', contents: new Uint8Array([]) }, { dir: BaseDirectory.AppData });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":330,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L330"}],"parameters":[{"id":174,"name":"file","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The object containing the file path and contents."}]},"type":{"type":"reference","target":143,"name":"FsBinaryFileOption","package":"@tauri-apps/api"}},{"id":175,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Configuration object."}]},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":159,"name":"writeTextFile","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":227,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L227"},{"fileName":"fs.ts","line":245,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L245"},{"fileName":"fs.ts","line":257,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L257"}],"signatures":[{"id":160,"name":"writeTextFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Writes a UTF-8 text file."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { writeTextFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Write a text file to the `$APPCONFIG/app.conf` path\nawait writeTextFile('app.conf', 'file contents', { dir: BaseDirectory.AppConfig });\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":227,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L227"}],"parameters":[{"id":161,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":162,"name":"contents","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":163,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}},{"id":164,"name":"writeTextFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Writes a UTF-8 text file."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { writeTextFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Write a text file to the `$APPCONFIG/app.conf` path\nawait writeTextFile({ path: 'app.conf', contents: 'file contents' }, { dir: BaseDirectory.AppConfig });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":245,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L245"}],"parameters":[{"id":165,"name":"file","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":139,"name":"FsTextFileOption","package":"@tauri-apps/api"}},{"id":166,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"References","children":[150,167]},{"title":"Enumerations","children":[108]},{"title":"Interfaces","children":[146,143,136,134,139]},{"title":"Type Aliases","children":[142]},{"title":"Functions","children":[188,180,202,155,176,151,184,193,197,168,159]}],"sources":[{"fileName":"fs.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/fs.ts#L1"}]},{"id":206,"name":"globalShortcut","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Register global shortcuts.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.globalShortcut`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.globalShortcut`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.globalshortcut) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"globalShortcut\": {\n \"all\": true // enable all global shortcut APIs\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security."}]},"children":[{"id":207,"name":"ShortcutHandler","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"globalShortcut.ts","line":29,"character":12,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/globalShortcut.ts#L29"}],"type":{"type":"reflection","declaration":{"id":208,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"globalShortcut.ts","line":29,"character":30,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/globalShortcut.ts#L29"}],"signatures":[{"id":209,"name":"__type","variant":"signature","kind":4096,"flags":{},"parameters":[{"id":210,"name":"shortcut","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"intrinsic","name":"void"}}]}}},{"id":219,"name":"isRegistered","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"globalShortcut.ts","line":101,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/globalShortcut.ts#L101"}],"signatures":[{"id":220,"name":"isRegistered","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Determines whether the given shortcut is registered by this application or not."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { isRegistered } from '@tauri-apps/api/globalShortcut';\nconst isRegistered = await isRegistered('CommandOrControl+P');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"globalShortcut.ts","line":101,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/globalShortcut.ts#L101"}],"parameters":[{"id":221,"name":"shortcut","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Array of shortcut definitions, modifiers and key separated by \"+\" e.g. CmdOrControl+Q"}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":211,"name":"register","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"globalShortcut.ts","line":46,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/globalShortcut.ts#L46"}],"signatures":[{"id":212,"name":"register","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Register a global shortcut."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { register } from '@tauri-apps/api/globalShortcut';\nawait register('CommandOrControl+Shift+C', () => {\n console.log('Shortcut triggered');\n});\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"globalShortcut.ts","line":46,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/globalShortcut.ts#L46"}],"parameters":[{"id":213,"name":"shortcut","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Shortcut definition, modifiers and key separated by \"+\" e.g. CmdOrControl+Q"}]},"type":{"type":"intrinsic","name":"string"}},{"id":214,"name":"handler","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Shortcut handler callback - takes the triggered shortcut as argument"}]},"type":{"type":"reference","target":207,"name":"ShortcutHandler","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":215,"name":"registerAll","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"globalShortcut.ts","line":75,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/globalShortcut.ts#L75"}],"signatures":[{"id":216,"name":"registerAll","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Register a collection of global shortcuts."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { registerAll } from '@tauri-apps/api/globalShortcut';\nawait registerAll(['CommandOrControl+Shift+C', 'Ctrl+Alt+F12'], (shortcut) => {\n console.log(`Shortcut ${shortcut} triggered`);\n});\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"globalShortcut.ts","line":75,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/globalShortcut.ts#L75"}],"parameters":[{"id":217,"name":"shortcuts","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Array of shortcut definitions, modifiers and key separated by \"+\" e.g. CmdOrControl+Q"}]},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}},{"id":218,"name":"handler","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Shortcut handler callback - takes the triggered shortcut as argument"}]},"type":{"type":"reference","target":207,"name":"ShortcutHandler","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":222,"name":"unregister","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"globalShortcut.ts","line":123,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/globalShortcut.ts#L123"}],"signatures":[{"id":223,"name":"unregister","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Unregister a global shortcut."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { unregister } from '@tauri-apps/api/globalShortcut';\nawait unregister('CmdOrControl+Space');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"globalShortcut.ts","line":123,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/globalShortcut.ts#L123"}],"parameters":[{"id":224,"name":"shortcut","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"shortcut definition, modifiers and key separated by \"+\" e.g. CmdOrControl+Q"}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":225,"name":"unregisterAll","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"globalShortcut.ts","line":143,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/globalShortcut.ts#L143"}],"signatures":[{"id":226,"name":"unregisterAll","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Unregisters all shortcuts registered by the application."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { unregisterAll } from '@tauri-apps/api/globalShortcut';\nawait unregisterAll();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"globalShortcut.ts","line":143,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/globalShortcut.ts#L143"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Type Aliases","children":[207]},{"title":"Functions","children":[219,211,215,222,225]}],"sources":[{"fileName":"globalShortcut.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/globalShortcut.ts#L1"}]},{"id":227,"name":"http","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Access the HTTP client written in Rust.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.http`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be allowlisted on "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"http\": {\n \"all\": true, // enable all http APIs\n \"request\": true // enable HTTP request API\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security.\n\n## Security\n\nThis API has a scope configuration that forces you to restrict the URLs and paths that can be accessed using glob patterns.\n\nFor instance, this scope configuration only allows making HTTP requests to the GitHub API for the "},{"kind":"code","text":"`tauri-apps`"},{"kind":"text","text":" organization:\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"http\": {\n \"scope\": [\"https://api.github.com/repos/tauri-apps/*\"]\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nTrying to execute any API with a URL not configured on the scope results in a promise rejection due to denied access."}]},"children":[{"id":323,"name":"ResponseType","variant":"declaration","kind":8,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":326,"name":"Binary","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"http.ts","line":74,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L74"}],"type":{"type":"literal","value":3}},{"id":324,"name":"JSON","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"http.ts","line":72,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L72"}],"type":{"type":"literal","value":1}},{"id":325,"name":"Text","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"http.ts","line":73,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L73"}],"type":{"type":"literal","value":2}}],"groups":[{"title":"Enumeration Members","children":[326,324,325]}],"sources":[{"fileName":"http.ts","line":71,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L71"}]},{"id":254,"name":"Body","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"The body object to be used on POST and PUT requests."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":272,"name":"payload","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":95,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L95"}],"type":{"type":"intrinsic","name":"unknown"}},{"id":271,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":94,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L94"}],"type":{"type":"intrinsic","name":"string"}},{"id":264,"name":"bytes","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"http.ts","line":217,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L217"}],"signatures":[{"id":265,"name":"bytes","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a new byte array body."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Body } from \"@tauri-apps/api/http\"\nBody.bytes(new Uint8Array([1, 2, 3]));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The body object ready to be used on the POST and PUT requests."}]}]},"sources":[{"fileName":"http.ts","line":217,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L217"}],"parameters":[{"id":266,"name":"bytes","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The body byte array."}]},"type":{"type":"union","types":[{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es2015.iterable.d.ts","qualifiedName":"Iterable"},"typeArguments":[{"type":"intrinsic","name":"number"}],"name":"Iterable","package":"typescript"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"ArrayBuffer"},"name":"ArrayBuffer","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"ArrayLike"},"typeArguments":[{"type":"intrinsic","name":"number"}],"name":"ArrayLike","package":"typescript"}]}}],"type":{"type":"reference","target":254,"name":"Body","package":"@tauri-apps/api"}}]},{"id":255,"name":"form","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"http.ts","line":134,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L134"}],"signatures":[{"id":256,"name":"form","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a new form data body. The form data is an object where each key is the entry name,\nand the value is either a string or a file object.\n\nBy default it sets the "},{"kind":"code","text":"`application/x-www-form-urlencoded`"},{"kind":"text","text":" Content-Type header,\nbut you can set it to "},{"kind":"code","text":"`multipart/form-data`"},{"kind":"text","text":" if the Cargo feature "},{"kind":"code","text":"`http-multipart`"},{"kind":"text","text":" is enabled.\n\nNote that a file path must be allowed in the "},{"kind":"code","text":"`fs`"},{"kind":"text","text":" allowlist scope."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Body } from \"@tauri-apps/api/http\"\nconst body = Body.form({\n key: 'value',\n image: {\n file: '/path/to/file', // either a path or an array buffer of the file contents\n mime: 'image/jpeg', // optional\n fileName: 'image.jpg' // optional\n }\n});\n\n// alternatively, use a FormData:\nconst form = new FormData();\nform.append('key', 'value');\nform.append('image', file, 'image.png');\nconst formBody = Body.form(form);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The body object ready to be used on the POST and PUT requests."}]}]},"sources":[{"fileName":"http.ts","line":134,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L134"}],"parameters":[{"id":257,"name":"data","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The body data."}]},"type":{"type":"union","types":[{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"reference","target":234,"name":"Part","package":"@tauri-apps/api"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.dom.d.ts","qualifiedName":"FormData"},"name":"FormData","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/API/FormData"}]}}],"type":{"type":"reference","target":254,"name":"Body","package":"@tauri-apps/api"}}]},{"id":258,"name":"json","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"http.ts","line":185,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L185"}],"signatures":[{"id":259,"name":"json","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a new JSON body."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Body } from \"@tauri-apps/api/http\"\nBody.json({\n registered: true,\n name: 'tauri'\n});\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The body object ready to be used on the POST and PUT requests."}]}]},"sources":[{"fileName":"http.ts","line":185,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L185"}],"parameters":[{"id":260,"name":"data","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The body JSON object."}]},"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"any"},{"type":"intrinsic","name":"any"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}}],"type":{"type":"reference","target":254,"name":"Body","package":"@tauri-apps/api"}}]},{"id":261,"name":"text","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"http.ts","line":201,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L201"}],"signatures":[{"id":262,"name":"text","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a new UTF-8 string body."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Body } from \"@tauri-apps/api/http\"\nBody.text('The body content as a string');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The body object ready to be used on the POST and PUT requests."}]}]},"sources":[{"fileName":"http.ts","line":201,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L201"}],"parameters":[{"id":263,"name":"value","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The body string."}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":254,"name":"Body","package":"@tauri-apps/api"}}]}],"groups":[{"title":"Properties","children":[272,271]},{"title":"Methods","children":[264,255,258,261]}],"sources":[{"fileName":"http.ts","line":93,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L93"}]},{"id":273,"name":"Client","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":277,"name":"id","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":303,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L303"}],"type":{"type":"intrinsic","name":"number"}},{"id":306,"name":"delete","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"http.ts","line":484,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L484"}],"signatures":[{"id":307,"name":"delete","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Makes a DELETE request."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient } from '@tauri-apps/api/http';\nconst client = await getClient();\nconst response = await client.delete('http://localhost:3003/users/1');\n```"}]}]},"sources":[{"fileName":"http.ts","line":484,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L484"}],"typeParameter":[{"id":308,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":309,"name":"url","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":310,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":244,"name":"RequestOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":311,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Response","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":278,"name":"drop","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"http.ts","line":318,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L318"}],"signatures":[{"id":279,"name":"drop","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Drops the client instance."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient } from '@tauri-apps/api/http';\nconst client = await getClient();\nawait client.drop();\n```"}]}]},"sources":[{"fileName":"http.ts","line":318,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L318"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":284,"name":"get","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"http.ts","line":389,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L389"}],"signatures":[{"id":285,"name":"get","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Makes a GET request."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient, ResponseType } from '@tauri-apps/api/http';\nconst client = await getClient();\nconst response = await client.get('http://localhost:3003/users', {\n timeout: 30,\n // the expected response type\n responseType: ResponseType.JSON\n});\n```"}]}]},"sources":[{"fileName":"http.ts","line":389,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L389"}],"typeParameter":[{"id":286,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":287,"name":"url","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":288,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":244,"name":"RequestOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":311,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Response","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":301,"name":"patch","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"http.ts","line":467,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L467"}],"signatures":[{"id":302,"name":"patch","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Makes a PATCH request."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient, Body } from '@tauri-apps/api/http';\nconst client = await getClient();\nconst response = await client.patch('http://localhost:3003/users/1', {\n body: Body.json({ email: 'contact@tauri.app' })\n});\n```"}]}]},"sources":[{"fileName":"http.ts","line":467,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L467"}],"typeParameter":[{"id":303,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":304,"name":"url","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":305,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":244,"name":"RequestOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":311,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Response","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":289,"name":"post","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"http.ts","line":413,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L413"}],"signatures":[{"id":290,"name":"post","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Makes a POST request."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient, Body, ResponseType } from '@tauri-apps/api/http';\nconst client = await getClient();\nconst response = await client.post('http://localhost:3003/users', {\n body: Body.json({\n name: 'tauri',\n password: 'awesome'\n }),\n // in this case the server returns a simple string\n responseType: ResponseType.Text,\n});\n```"}]}]},"sources":[{"fileName":"http.ts","line":413,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L413"}],"typeParameter":[{"id":291,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":292,"name":"url","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":293,"name":"body","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":254,"name":"Body","package":"@tauri-apps/api"}},{"id":294,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":244,"name":"RequestOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":311,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Response","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":295,"name":"put","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"http.ts","line":443,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L443"}],"signatures":[{"id":296,"name":"put","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Makes a PUT request."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient, Body } from '@tauri-apps/api/http';\nconst client = await getClient();\nconst response = await client.put('http://localhost:3003/users/1', {\n body: Body.form({\n file: {\n file: '/home/tauri/avatar.png',\n mime: 'image/png',\n fileName: 'avatar.png'\n }\n })\n});\n```"}]}]},"sources":[{"fileName":"http.ts","line":443,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L443"}],"typeParameter":[{"id":297,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":298,"name":"url","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":299,"name":"body","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":254,"name":"Body","package":"@tauri-apps/api"}},{"id":300,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":244,"name":"RequestOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":311,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Response","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":280,"name":"request","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"http.ts","line":340,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L340"}],"signatures":[{"id":281,"name":"request","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Makes an HTTP request."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient } from '@tauri-apps/api/http';\nconst client = await getClient();\nconst response = await client.request({\n method: 'GET',\n url: 'http://localhost:3003/users',\n});\n```"}]}]},"sources":[{"fileName":"http.ts","line":340,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L340"}],"typeParameter":[{"id":282,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":283,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":236,"name":"HttpOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":311,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Response","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Properties","children":[277]},{"title":"Methods","children":[306,278,284,301,289,295,280]}],"sources":[{"fileName":"http.ts","line":302,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L302"}]},{"id":311,"name":"Response","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"Response object."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":321,"name":"data","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The response data."}]},"sources":[{"fileName":"http.ts","line":286,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L286"}],"type":{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}},{"id":319,"name":"headers","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The response headers."}]},"sources":[{"fileName":"http.ts","line":282,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L282"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"string"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}},{"id":318,"name":"ok","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"A boolean indicating whether the response was successful (status in the range 200–299) or not."}]},"sources":[{"fileName":"http.ts","line":280,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L280"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":320,"name":"rawHeaders","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The response raw headers."}]},"sources":[{"fileName":"http.ts","line":284,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L284"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"array","elementType":{"type":"intrinsic","name":"string"}}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}},{"id":317,"name":"status","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The response status code."}]},"sources":[{"fileName":"http.ts","line":278,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L278"}],"type":{"type":"intrinsic","name":"number"}},{"id":316,"name":"url","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The request URL."}]},"sources":[{"fileName":"http.ts","line":276,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L276"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[321,319,318,320,317,316]}],"sources":[{"fileName":"http.ts","line":274,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L274"}],"typeParameters":[{"id":322,"name":"T","variant":"typeParam","kind":131072,"flags":{}}]},{"id":231,"name":"ClientOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":233,"name":"connectTimeout","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":65,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L65"}],"type":{"type":"union","types":[{"type":"intrinsic","name":"number"},{"type":"reference","target":228,"name":"Duration","package":"@tauri-apps/api"}]}},{"id":232,"name":"maxRedirections","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Defines the maximum number of redirects the client should follow.\nIf set to 0, no redirects will be followed."}]},"sources":[{"fileName":"http.ts","line":64,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L64"}],"type":{"type":"intrinsic","name":"number"}}],"groups":[{"title":"Properties","children":[233,232]}],"sources":[{"fileName":"http.ts","line":59,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L59"}]},{"id":228,"name":"Duration","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":230,"name":"nanos","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":53,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L53"}],"type":{"type":"intrinsic","name":"number"}},{"id":229,"name":"secs","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":52,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L52"}],"type":{"type":"intrinsic","name":"number"}}],"groups":[{"title":"Properties","children":[230,229]}],"sources":[{"fileName":"http.ts","line":51,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L51"}]},{"id":327,"name":"FilePart","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":328,"name":"file","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":81,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L81"}],"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}]}},{"id":330,"name":"fileName","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":83,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L83"}],"type":{"type":"intrinsic","name":"string"}},{"id":329,"name":"mime","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":82,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L82"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[328,330,329]}],"sources":[{"fileName":"http.ts","line":80,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L80"}],"typeParameters":[{"id":331,"name":"T","variant":"typeParam","kind":131072,"flags":{}}]},{"id":236,"name":"HttpOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Options object sent to the backend."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":241,"name":"body","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":250,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L250"}],"type":{"type":"reference","target":254,"name":"Body","package":"@tauri-apps/api"}},{"id":239,"name":"headers","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":248,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L248"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"any"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}},{"id":237,"name":"method","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":246,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L246"}],"type":{"type":"reference","target":235,"name":"HttpVerb","package":"@tauri-apps/api"}},{"id":240,"name":"query","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":249,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L249"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"any"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}},{"id":243,"name":"responseType","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":252,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L252"}],"type":{"type":"reference","target":323,"name":"ResponseType","package":"@tauri-apps/api"}},{"id":242,"name":"timeout","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":251,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L251"}],"type":{"type":"union","types":[{"type":"intrinsic","name":"number"},{"type":"reference","target":228,"name":"Duration","package":"@tauri-apps/api"}]}},{"id":238,"name":"url","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":247,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L247"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[241,239,237,240,243,242,238]}],"sources":[{"fileName":"http.ts","line":245,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L245"}]},{"id":245,"name":"FetchOptions","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[{"kind":"text","text":"Options for the "},{"kind":"code","text":"`fetch`"},{"kind":"text","text":" API."}]},"sources":[{"fileName":"http.ts","line":258,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L258"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Omit"},"typeArguments":[{"type":"reference","target":236,"name":"HttpOptions","package":"@tauri-apps/api"},{"type":"literal","value":"url"}],"name":"Omit","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#omittype-keys"}},{"id":235,"name":"HttpVerb","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[{"kind":"text","text":"The request HTTP verb."}]},"sources":[{"fileName":"http.ts","line":229,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L229"}],"type":{"type":"union","types":[{"type":"literal","value":"GET"},{"type":"literal","value":"POST"},{"type":"literal","value":"PUT"},{"type":"literal","value":"DELETE"},{"type":"literal","value":"PATCH"},{"type":"literal","value":"HEAD"},{"type":"literal","value":"OPTIONS"},{"type":"literal","value":"CONNECT"},{"type":"literal","value":"TRACE"}]}},{"id":234,"name":"Part","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"http.ts","line":86,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L86"}],"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Uint8Array"},"name":"Uint8Array","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array"},{"type":"reference","target":327,"typeArguments":[{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Uint8Array"},"name":"Uint8Array","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array"}],"name":"FilePart","package":"@tauri-apps/api"}]}},{"id":244,"name":"RequestOptions","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[{"kind":"text","text":"Request options."}]},"sources":[{"fileName":"http.ts","line":256,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L256"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Omit"},"typeArguments":[{"type":"reference","target":236,"name":"HttpOptions","package":"@tauri-apps/api"},{"type":"union","types":[{"type":"literal","value":"method"},{"type":"literal","value":"url"}]}],"name":"Omit","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#omittype-keys"}},{"id":249,"name":"fetch","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"http.ts","line":531,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L531"}],"signatures":[{"id":250,"name":"fetch","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Perform an HTTP request using the default client."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { fetch } from '@tauri-apps/api/http';\nconst response = await fetch('http://localhost:3003/users/2', {\n method: 'GET',\n timeout: 30,\n});\n```"}]}]},"sources":[{"fileName":"http.ts","line":531,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L531"}],"typeParameter":[{"id":251,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":252,"name":"url","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":253,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":245,"name":"FetchOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":311,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Response","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":246,"name":"getClient","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"http.ts","line":507,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L507"}],"signatures":[{"id":247,"name":"getClient","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a new client using the specified options."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient } from '@tauri-apps/api/http';\nconst client = await getClient();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to the client instance."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"http.ts","line":507,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L507"}],"parameters":[{"id":248,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Client configuration."}]},"type":{"type":"reference","target":231,"name":"ClientOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":273,"name":"Client","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Enumerations","children":[323]},{"title":"Classes","children":[254,273,311]},{"title":"Interfaces","children":[231,228,327,236]},{"title":"Type Aliases","children":[245,235,234,244]},{"title":"Functions","children":[249,246]}],"sources":[{"fileName":"http.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/http.ts#L1"}]},{"id":332,"name":"mocks","variant":"declaration","kind":2,"flags":{},"children":[{"id":344,"name":"clearMocks","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"mocks.ts","line":171,"character":16,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/mocks.ts#L171"}],"signatures":[{"id":345,"name":"clearMocks","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Clears mocked functions/data injected by the other functions in this module.\nWhen using a test runner that doesn't provide a fresh window object for each test, calling this function will reset tauri specific properties.\n\n# Example\n\n"},{"kind":"code","text":"```js\nimport { mockWindows, clearMocks } from \"@tauri-apps/api/mocks\"\n\nafterEach(() => {\n clearMocks()\n})\n\ntest(\"mocked windows\", () => {\n mockWindows(\"main\", \"second\", \"third\");\n\n expect(window).toHaveProperty(\"__TAURI_METADATA__\")\n})\n\ntest(\"no mocked windows\", () => {\n expect(window).not.toHaveProperty(\"__TAURI_METADATA__\")\n})\n```"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"mocks.ts","line":171,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/mocks.ts#L171"}],"type":{"type":"intrinsic","name":"void"}}]},{"id":333,"name":"mockIPC","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"mocks.ts","line":65,"character":16,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/mocks.ts#L65"}],"signatures":[{"id":334,"name":"mockIPC","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Intercepts all IPC requests with the given mock handler.\n\nThis function can be used when testing tauri frontend applications or when running the frontend in a Node.js context during static site generation.\n\n# Examples\n\nTesting setup using vitest:\n"},{"kind":"code","text":"```js\nimport { mockIPC, clearMocks } from \"@tauri-apps/api/mocks\"\nimport { invoke } from \"@tauri-apps/api/tauri\"\n\nafterEach(() => {\n clearMocks()\n})\n\ntest(\"mocked command\", () => {\n mockIPC((cmd, args) => {\n switch (cmd) {\n case \"add\":\n return (args.a as number) + (args.b as number);\n default:\n break;\n }\n });\n\n expect(invoke('add', { a: 12, b: 15 })).resolves.toBe(27);\n})\n```"},{"kind":"text","text":"\n\nThe callback function can also return a Promise:\n"},{"kind":"code","text":"```js\nimport { mockIPC, clearMocks } from \"@tauri-apps/api/mocks\"\nimport { invoke } from \"@tauri-apps/api/tauri\"\n\nafterEach(() => {\n clearMocks()\n})\n\ntest(\"mocked command\", () => {\n mockIPC((cmd, args) => {\n if(cmd === \"get_data\") {\n return fetch(\"https://example.com/data.json\")\n .then((response) => response.json())\n }\n });\n\n expect(invoke('get_data')).resolves.toBe({ foo: 'bar' });\n})\n```"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"mocks.ts","line":65,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/mocks.ts#L65"}],"parameters":[{"id":335,"name":"cb","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":336,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"mocks.ts","line":66,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/mocks.ts#L66"}],"signatures":[{"id":337,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"mocks.ts","line":66,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/mocks.ts#L66"}],"parameters":[{"id":338,"name":"cmd","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":339,"name":"args","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"unknown"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}}],"type":{"type":"intrinsic","name":"any"}}]}}}],"type":{"type":"intrinsic","name":"void"}}]},{"id":340,"name":"mockWindows","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"mocks.ts","line":135,"character":16,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/mocks.ts#L135"}],"signatures":[{"id":341,"name":"mockWindows","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Mocks one or many window labels.\nIn non-tauri context it is required to call this function *before* using the "},{"kind":"code","text":"`@tauri-apps/api/window`"},{"kind":"text","text":" module.\n\nThis function only mocks the *presence* of windows,\nwindow properties (e.g. width and height) can be mocked like regular IPC calls using the "},{"kind":"code","text":"`mockIPC`"},{"kind":"text","text":" function.\n\n# Examples\n\n"},{"kind":"code","text":"```js\nimport { mockWindows } from \"@tauri-apps/api/mocks\";\nimport { getCurrent } from \"@tauri-apps/api/window\";\n\nmockWindows(\"main\", \"second\", \"third\");\n\nconst win = getCurrent();\n\nwin.label // \"main\"\n```"},{"kind":"text","text":"\n\n"},{"kind":"code","text":"```js\nimport { mockWindows } from \"@tauri-apps/api/mocks\";\n\nmockWindows(\"main\", \"second\", \"third\");\n\nmockIPC((cmd, args) => {\n if (cmd === \"tauri\") {\n if (\n args?.__tauriModule === \"Window\" &&\n args?.message?.cmd === \"manage\" &&\n args?.message?.data?.cmd?.type === \"close\"\n ) {\n console.log('closing window!');\n }\n }\n});\n\nconst { getCurrent } = await import(\"@tauri-apps/api/window\");\n\nconst win = getCurrent();\nawait win.close(); // this will cause the mocked IPC handler to log to the console.\n```"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"mocks.ts","line":135,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/mocks.ts#L135"}],"parameters":[{"id":342,"name":"current","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Label of window this JavaScript context is running in."}]},"type":{"type":"intrinsic","name":"string"}},{"id":343,"name":"additionalWindows","variant":"param","kind":32768,"flags":{"isRest":true},"comment":{"summary":[{"kind":"text","text":"Label of additional windows the app has."}]},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}}],"type":{"type":"intrinsic","name":"void"}}]}],"groups":[{"title":"Functions","children":[344,333,340]}],"sources":[{"fileName":"mocks.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/mocks.ts#L1"}]},{"id":346,"name":"notification","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Send toast notifications (brief auto-expiring OS window element) to your user.\nCan also be used with the Notification Web API.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.notification`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.notification`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.notification) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"notification\": {\n \"all\": true // enable all notification APIs\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security."}]},"children":[{"id":347,"name":"Options","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Options to send a notification."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":349,"name":"body","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Optional notification body."}]},"sources":[{"fileName":"notification.ts","line":38,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/notification.ts#L38"}],"type":{"type":"intrinsic","name":"string"}},{"id":350,"name":"icon","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Optional notification icon."}]},"sources":[{"fileName":"notification.ts","line":40,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/notification.ts#L40"}],"type":{"type":"intrinsic","name":"string"}},{"id":351,"name":"sound","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Optional notification sound."}]},"sources":[{"fileName":"notification.ts","line":42,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/notification.ts#L42"}],"type":{"type":"intrinsic","name":"string"}},{"id":348,"name":"title","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Notification title."}]},"sources":[{"fileName":"notification.ts","line":36,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/notification.ts#L36"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[349,350,351,348]}],"sources":[{"fileName":"notification.ts","line":34,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/notification.ts#L34"}]},{"id":352,"name":"Permission","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[{"kind":"text","text":"Possible permission values."}]},"sources":[{"fileName":"notification.ts","line":46,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/notification.ts#L46"}],"type":{"type":"union","types":[{"type":"literal","value":"granted"},{"type":"literal","value":"denied"},{"type":"literal","value":"default"}]}},{"id":358,"name":"isPermissionGranted","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"notification.ts","line":58,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/notification.ts#L58"}],"signatures":[{"id":359,"name":"isPermissionGranted","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Checks if the permission to send notifications is granted."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { isPermissionGranted } from '@tauri-apps/api/notification';\nconst permissionGranted = await isPermissionGranted();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"notification.ts","line":58,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/notification.ts#L58"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":356,"name":"requestPermission","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"notification.ts","line":86,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/notification.ts#L86"}],"signatures":[{"id":357,"name":"requestPermission","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Requests the permission to send notifications."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { isPermissionGranted, requestPermission } from '@tauri-apps/api/notification';\nlet permissionGranted = await isPermissionGranted();\nif (!permissionGranted) {\n const permission = await requestPermission();\n permissionGranted = permission === 'granted';\n}\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to whether the user granted the permission or not."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"notification.ts","line":86,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/notification.ts#L86"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":352,"name":"Permission","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":353,"name":"sendNotification","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"notification.ts","line":108,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/notification.ts#L108"}],"signatures":[{"id":354,"name":"sendNotification","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sends a notification to the user."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { isPermissionGranted, requestPermission, sendNotification } from '@tauri-apps/api/notification';\nlet permissionGranted = await isPermissionGranted();\nif (!permissionGranted) {\n const permission = await requestPermission();\n permissionGranted = permission === 'granted';\n}\nif (permissionGranted) {\n sendNotification('Tauri is awesome!');\n sendNotification({ title: 'TAURI', body: 'Tauri is awesome!' });\n}\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"notification.ts","line":108,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/notification.ts#L108"}],"parameters":[{"id":355,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":347,"name":"Options","package":"@tauri-apps/api"}]}}],"type":{"type":"intrinsic","name":"void"}}]}],"groups":[{"title":"Interfaces","children":[347]},{"title":"Type Aliases","children":[352]},{"title":"Functions","children":[358,356,353]}],"sources":[{"fileName":"notification.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/notification.ts#L1"}]},{"id":360,"name":"os","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Provides operating system-related utility methods and properties.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.os`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.os`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.os) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"os\": {\n \"all\": true, // enable all Os APIs\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security."}]},"children":[{"id":376,"name":"Arch","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"os.ts","line":43,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L43"}],"type":{"type":"union","types":[{"type":"literal","value":"x86"},{"type":"literal","value":"x86_64"},{"type":"literal","value":"arm"},{"type":"literal","value":"aarch64"},{"type":"literal","value":"mips"},{"type":"literal","value":"mips64"},{"type":"literal","value":"powerpc"},{"type":"literal","value":"powerpc64"},{"type":"literal","value":"riscv64"},{"type":"literal","value":"s390x"},{"type":"literal","value":"sparc64"}]}},{"id":375,"name":"OsType","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"os.ts","line":41,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L41"}],"type":{"type":"union","types":[{"type":"literal","value":"Linux"},{"type":"literal","value":"Darwin"},{"type":"literal","value":"Windows_NT"}]}},{"id":374,"name":"Platform","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"os.ts","line":29,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L29"}],"type":{"type":"union","types":[{"type":"literal","value":"linux"},{"type":"literal","value":"darwin"},{"type":"literal","value":"ios"},{"type":"literal","value":"freebsd"},{"type":"literal","value":"dragonfly"},{"type":"literal","value":"netbsd"},{"type":"literal","value":"openbsd"},{"type":"literal","value":"solaris"},{"type":"literal","value":"android"},{"type":"literal","value":"win32"}]}},{"id":361,"name":"EOL","variant":"declaration","kind":32,"flags":{"isConst":true},"comment":{"summary":[{"kind":"text","text":"The operating system-specific end-of-line marker.\n- "},{"kind":"code","text":"`\\n`"},{"kind":"text","text":" on POSIX\n- "},{"kind":"code","text":"`\\r\\n`"},{"kind":"text","text":" on Windows"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"os.ts","line":63,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L63"}],"type":{"type":"union","types":[{"type":"literal","value":"\n"},{"type":"literal","value":"\r\n"}]},"defaultValue":"..."},{"id":368,"name":"arch","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"os.ts","line":135,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L135"}],"signatures":[{"id":369,"name":"arch","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the operating system CPU architecture for which the tauri app was compiled.\nPossible values are "},{"kind":"code","text":"`'x86'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'x86_64'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'arm'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'aarch64'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'mips'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'mips64'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'powerpc'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'powerpc64'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'riscv64'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'s390x'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'sparc64'`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { arch } from '@tauri-apps/api/os';\nconst archName = await arch();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"os.ts","line":135,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L135"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":376,"name":"Arch","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":372,"name":"locale","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"os.ts","line":176,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L176"}],"signatures":[{"id":373,"name":"locale","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns a String with a "},{"kind":"code","text":"`BCP-47`"},{"kind":"text","text":" language tag inside. If the locale couldn’t be obtained, "},{"kind":"code","text":"`null`"},{"kind":"text","text":" is returned instead."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { locale } from '@tauri-apps/api/os';\nconst locale = await locale();\nif (locale) {\n // use the locale string here\n}\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.4.0"}]}]},"sources":[{"fileName":"os.ts","line":176,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L176"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"literal","value":null}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":362,"name":"platform","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"os.ts","line":77,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L77"}],"signatures":[{"id":363,"name":"platform","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns a string identifying the operating system platform.\nThe value is set at compile time. Possible values are "},{"kind":"code","text":"`'linux'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'darwin'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'ios'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'freebsd'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'dragonfly'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'netbsd'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'openbsd'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'solaris'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'android'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'win32'`"}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { platform } from '@tauri-apps/api/os';\nconst platformName = await platform();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"os.ts","line":77,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L77"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":374,"name":"Platform","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":370,"name":"tempdir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"os.ts","line":154,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L154"}],"signatures":[{"id":371,"name":"tempdir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the operating system's default directory for temporary files as a string."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { tempdir } from '@tauri-apps/api/os';\nconst tempdirPath = await tempdir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"os.ts","line":154,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L154"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":366,"name":"type","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"os.ts","line":115,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L115"}],"signatures":[{"id":367,"name":"type","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"`'Linux'`"},{"kind":"text","text":" on Linux, "},{"kind":"code","text":"`'Darwin'`"},{"kind":"text","text":" on macOS, and "},{"kind":"code","text":"`'Windows_NT'`"},{"kind":"text","text":" on Windows."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { type } from '@tauri-apps/api/os';\nconst osType = await type();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"os.ts","line":115,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L115"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":375,"name":"OsType","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":364,"name":"version","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"os.ts","line":96,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L96"}],"signatures":[{"id":365,"name":"version","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns a string identifying the kernel version."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { version } from '@tauri-apps/api/os';\nconst osVersion = await version();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"os.ts","line":96,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L96"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Type Aliases","children":[376,375,374]},{"title":"Variables","children":[361]},{"title":"Functions","children":[368,372,362,370,366,364]}],"sources":[{"fileName":"os.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/os.ts#L1"}]},{"id":377,"name":"path","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"The path module provides utilities for working with file and directory paths.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.path`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.path`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.path) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"path\": {\n \"all\": true, // enable all Path APIs\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security."}]},"children":[{"id":1175,"name":"BaseDirectory","variant":"reference","kind":8388608,"flags":{},"sources":[{"fileName":"path.ts","line":839,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L839"}],"target":108},{"id":430,"name":"delimiter","variant":"declaration","kind":32,"flags":{"isConst":true},"comment":{"summary":[{"kind":"text","text":"Provides the platform-specific path segment delimiter:\n- "},{"kind":"code","text":"`;`"},{"kind":"text","text":" on Windows\n- "},{"kind":"code","text":"`:`"},{"kind":"text","text":" on POSIX"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":660,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L660"}],"type":{"type":"union","types":[{"type":"literal","value":";"},{"type":"literal","value":":"}]},"defaultValue":"..."},{"id":429,"name":"sep","variant":"declaration","kind":32,"flags":{"isConst":true},"comment":{"summary":[{"kind":"text","text":"Provides the platform-specific path segment separator:\n- "},{"kind":"code","text":"`\\` on Windows\n- `"},{"kind":"text","text":"/` on POSIX"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":651,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L651"}],"type":{"type":"union","types":[{"type":"literal","value":"\\"},{"type":"literal","value":"/"}]},"defaultValue":"..."},{"id":386,"name":"appCacheDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":117,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L117"}],"signatures":[{"id":387,"name":"appCacheDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app's cache files.\nResolves to "},{"kind":"code","text":"`${cacheDir}/${bundleIdentifier}`"},{"kind":"text","text":", where "},{"kind":"code","text":"`bundleIdentifier`"},{"kind":"text","text":" is the value ["},{"kind":"code","text":"`tauri.bundle.identifier`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appCacheDir } from '@tauri-apps/api/path';\nconst appCacheDirPath = await appCacheDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"path.ts","line":117,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L117"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":380,"name":"appConfigDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":51,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L51"}],"signatures":[{"id":381,"name":"appConfigDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app's config files.\nResolves to "},{"kind":"code","text":"`${configDir}/${bundleIdentifier}`"},{"kind":"text","text":", where "},{"kind":"code","text":"`bundleIdentifier`"},{"kind":"text","text":" is the value ["},{"kind":"code","text":"`tauri.bundle.identifier`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appConfigDir } from '@tauri-apps/api/path';\nconst appConfigDirPath = await appConfigDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"path.ts","line":51,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L51"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":382,"name":"appDataDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":73,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L73"}],"signatures":[{"id":383,"name":"appDataDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app's data files.\nResolves to "},{"kind":"code","text":"`${dataDir}/${bundleIdentifier}`"},{"kind":"text","text":", where "},{"kind":"code","text":"`bundleIdentifier`"},{"kind":"text","text":" is the value ["},{"kind":"code","text":"`tauri.bundle.identifier`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appDataDir } from '@tauri-apps/api/path';\nconst appDataDirPath = await appDataDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"path.ts","line":73,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L73"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":378,"name":"appDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":36,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L36"}],"signatures":[{"id":379,"name":"appDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app config files."}],"blockTags":[{"tag":"@deprecated","content":[{"kind":"text","text":"since 1.2.0: Will be removed in 2.0.0. Use "},{"kind":"inline-tag","tag":"@link","text":"appConfigDir","target":380,"tsLinkText":""},{"kind":"text","text":" or "},{"kind":"inline-tag","tag":"@link","text":"appDataDir","target":382,"tsLinkText":""},{"kind":"text","text":" instead."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":36,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L36"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":384,"name":"appLocalDataDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":95,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L95"}],"signatures":[{"id":385,"name":"appLocalDataDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app's local data files.\nResolves to "},{"kind":"code","text":"`${localDataDir}/${bundleIdentifier}`"},{"kind":"text","text":", where "},{"kind":"code","text":"`bundleIdentifier`"},{"kind":"text","text":" is the value ["},{"kind":"code","text":"`tauri.bundle.identifier`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appLocalDataDir } from '@tauri-apps/api/path';\nconst appLocalDataDirPath = await appLocalDataDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"path.ts","line":95,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L95"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":388,"name":"appLogDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":633,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L633"}],"signatures":[{"id":389,"name":"appLogDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app's log files.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`${configDir}/${bundleIdentifier}/logs`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`${homeDir}/Library/Logs/{bundleIdentifier}`"},{"kind":"text","text":"\n- **Windows:** Resolves to "},{"kind":"code","text":"`${configDir}/${bundleIdentifier}/logs`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appLogDir } from '@tauri-apps/api/path';\nconst appLogDirPath = await appLogDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"path.ts","line":633,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L633"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":390,"name":"audioDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":144,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L144"}],"signatures":[{"id":391,"name":"audioDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's audio directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_MUSIC_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Music`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Music}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { audioDir } from '@tauri-apps/api/path';\nconst audioDirPath = await audioDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":144,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L144"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":446,"name":"basename","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":782,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L782"}],"signatures":[{"id":447,"name":"basename","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the last portion of a "},{"kind":"code","text":"`path`"},{"kind":"text","text":". Trailing directory separators are ignored."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { basename, resolveResource } from '@tauri-apps/api/path';\nconst resourcePath = await resolveResource('app.conf');\nconst base = await basename(resourcePath);\nassert(base === 'app.conf');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":782,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L782"}],"parameters":[{"id":448,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":449,"name":"ext","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"An optional file extension to be removed from the returned path."}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":392,"name":"cacheDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":171,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L171"}],"signatures":[{"id":393,"name":"cacheDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's cache directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_CACHE_HOME`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.cache`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Library/Caches`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_LocalAppData}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { cacheDir } from '@tauri-apps/api/path';\nconst cacheDirPath = await cacheDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":171,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L171"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":394,"name":"configDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":198,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L198"}],"signatures":[{"id":395,"name":"configDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's config directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_CONFIG_HOME`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.config`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Library/Application Support`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_RoamingAppData}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { configDir } from '@tauri-apps/api/path';\nconst configDirPath = await configDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":198,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L198"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":396,"name":"dataDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":225,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L225"}],"signatures":[{"id":397,"name":"dataDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's data directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_DATA_HOME`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.local/share`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Library/Application Support`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_RoamingAppData}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { dataDir } from '@tauri-apps/api/path';\nconst dataDirPath = await dataDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":225,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L225"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":398,"name":"desktopDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":252,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L252"}],"signatures":[{"id":399,"name":"desktopDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's desktop directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_DESKTOP_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Desktop`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Desktop}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { desktopDir } from '@tauri-apps/api/path';\nconst desktopPath = await desktopDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":252,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L252"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":440,"name":"dirname","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":736,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L736"}],"signatures":[{"id":441,"name":"dirname","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the directory name of a "},{"kind":"code","text":"`path`"},{"kind":"text","text":". Trailing directory separators are ignored."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { dirname, appDataDir } from '@tauri-apps/api/path';\nconst appDataDirPath = await appDataDir();\nconst dir = await dirname(appDataDirPath);\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":736,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L736"}],"parameters":[{"id":442,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":400,"name":"documentDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":279,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L279"}],"signatures":[{"id":401,"name":"documentDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's document directory."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { documentDir } from '@tauri-apps/api/path';\nconst documentDirPath = await documentDir();\n```"},{"kind":"text","text":"\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_DOCUMENTS_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Documents`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Documents}`"},{"kind":"text","text":"."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":279,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L279"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":402,"name":"downloadDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":306,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L306"}],"signatures":[{"id":403,"name":"downloadDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's download directory.\n\n#### Platform-specific\n\n- **Linux**: Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_DOWNLOAD_DIR`"},{"kind":"text","text":".\n- **macOS**: Resolves to "},{"kind":"code","text":"`$HOME/Downloads`"},{"kind":"text","text":".\n- **Windows**: Resolves to "},{"kind":"code","text":"`{FOLDERID_Downloads}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { downloadDir } from '@tauri-apps/api/path';\nconst downloadDirPath = await downloadDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":306,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L306"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":404,"name":"executableDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":333,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L333"}],"signatures":[{"id":405,"name":"executableDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's executable directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_BIN_HOME/../bin`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$XDG_DATA_HOME/../bin`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.local/bin`"},{"kind":"text","text":".\n- **macOS:** Not supported.\n- **Windows:** Not supported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { executableDir } from '@tauri-apps/api/path';\nconst executableDirPath = await executableDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":333,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L333"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":443,"name":"extname","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":758,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L758"}],"signatures":[{"id":444,"name":"extname","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the extension of the "},{"kind":"code","text":"`path`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { extname, resolveResource } from '@tauri-apps/api/path';\nconst resourcePath = await resolveResource('app.conf');\nconst ext = await extname(resourcePath);\nassert(ext === 'conf');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":758,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L758"}],"parameters":[{"id":445,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":406,"name":"fontDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":360,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L360"}],"signatures":[{"id":407,"name":"fontDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's font directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_DATA_HOME/fonts`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.local/share/fonts`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Library/Fonts`"},{"kind":"text","text":".\n- **Windows:** Not supported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { fontDir } from '@tauri-apps/api/path';\nconst fontDirPath = await fontDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":360,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L360"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":408,"name":"homeDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":387,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L387"}],"signatures":[{"id":409,"name":"homeDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's home directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$HOME`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Profile}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { homeDir } from '@tauri-apps/api/path';\nconst homeDirPath = await homeDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":387,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L387"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":450,"name":"isAbsolute","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":803,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L803"}],"signatures":[{"id":451,"name":"isAbsolute","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns whether the path is absolute or not."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { isAbsolute } from '@tauri-apps/api/path';\nassert(await isAbsolute('/home/tauri'));\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":803,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L803"}],"parameters":[{"id":452,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":437,"name":"join","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":715,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L715"}],"signatures":[{"id":438,"name":"join","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Joins all given "},{"kind":"code","text":"`path`"},{"kind":"text","text":" segments together using the platform-specific separator as a delimiter, then normalizes the resulting path."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { join, appDataDir } from '@tauri-apps/api/path';\nconst appDataDirPath = await appDataDir();\nconst path = await join(appDataDirPath, 'users', 'tauri', 'avatar.png');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":715,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L715"}],"parameters":[{"id":439,"name":"paths","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":410,"name":"localDataDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":414,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L414"}],"signatures":[{"id":411,"name":"localDataDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's local data directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_DATA_HOME`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.local/share`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Library/Application Support`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_LocalAppData}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { localDataDir } from '@tauri-apps/api/path';\nconst localDataDirPath = await localDataDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":414,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L414"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":427,"name":"logDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":613,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L613"}],"signatures":[{"id":428,"name":"logDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested log directory."}],"blockTags":[{"tag":"@deprecated","content":[{"kind":"text","text":"since 1.2.0: Will be removed in 2.0.0. Use "},{"kind":"inline-tag","tag":"@link","text":"appLogDir","target":388,"tsLinkText":""},{"kind":"text","text":" instead."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":613,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L613"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":434,"name":"normalize","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":694,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L694"}],"signatures":[{"id":435,"name":"normalize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Normalizes the given "},{"kind":"code","text":"`path`"},{"kind":"text","text":", resolving "},{"kind":"code","text":"`'..'`"},{"kind":"text","text":" and "},{"kind":"code","text":"`'.'`"},{"kind":"text","text":" segments and resolve symbolic links."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { normalize, appDataDir } from '@tauri-apps/api/path';\nconst appDataDirPath = await appDataDir();\nconst path = await normalize(appDataDirPath, '..', 'users', 'tauri', 'avatar.png');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":694,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L694"}],"parameters":[{"id":436,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":412,"name":"pictureDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":441,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L441"}],"signatures":[{"id":413,"name":"pictureDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's picture directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_PICTURES_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Pictures`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Pictures}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { pictureDir } from '@tauri-apps/api/path';\nconst pictureDirPath = await pictureDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":441,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L441"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":414,"name":"publicDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":468,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L468"}],"signatures":[{"id":415,"name":"publicDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's public directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_PUBLICSHARE_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Public`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Public}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { publicDir } from '@tauri-apps/api/path';\nconst publicDirPath = await publicDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":468,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L468"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":431,"name":"resolve","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":673,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L673"}],"signatures":[{"id":432,"name":"resolve","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Resolves a sequence of "},{"kind":"code","text":"`paths`"},{"kind":"text","text":" or "},{"kind":"code","text":"`path`"},{"kind":"text","text":" segments into an absolute path."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { resolve, appDataDir } from '@tauri-apps/api/path';\nconst appDataDirPath = await appDataDir();\nconst path = await resolve(appDataDirPath, '..', 'users', 'tauri', 'avatar.png');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":673,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L673"}],"parameters":[{"id":433,"name":"paths","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":418,"name":"resolveResource","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":515,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L515"}],"signatures":[{"id":419,"name":"resolveResource","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Resolve the path to a resource file."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { resolveResource } from '@tauri-apps/api/path';\nconst resourcePath = await resolveResource('script.sh');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The full path to the resource."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":515,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L515"}],"parameters":[{"id":420,"name":"resourcePath","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The path to the resource.\nMust follow the same syntax as defined in "},{"kind":"code","text":"`tauri.conf.json > tauri > bundle > resources`"},{"kind":"text","text":", i.e. keeping subfolders and parent dir components ("},{"kind":"code","text":"`../`"},{"kind":"text","text":")."}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":416,"name":"resourceDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":490,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L490"}],"signatures":[{"id":417,"name":"resourceDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the application's resource directory.\nTo resolve a resource path, see the [[resolveResource | "},{"kind":"code","text":"`resolveResource API`"},{"kind":"text","text":"]]."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { resourceDir } from '@tauri-apps/api/path';\nconst resourceDirPath = await resourceDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":490,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L490"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":421,"name":"runtimeDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":542,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L542"}],"signatures":[{"id":422,"name":"runtimeDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's runtime directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_RUNTIME_DIR`"},{"kind":"text","text":".\n- **macOS:** Not supported.\n- **Windows:** Not supported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { runtimeDir } from '@tauri-apps/api/path';\nconst runtimeDirPath = await runtimeDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":542,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L542"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":423,"name":"templateDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":569,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L569"}],"signatures":[{"id":424,"name":"templateDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's template directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_TEMPLATES_DIR`"},{"kind":"text","text":".\n- **macOS:** Not supported.\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Templates}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { templateDir } from '@tauri-apps/api/path';\nconst templateDirPath = await templateDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":569,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L569"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":425,"name":"videoDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":596,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L596"}],"signatures":[{"id":426,"name":"videoDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's video directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_VIDEOS_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Movies`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Videos}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { videoDir } from '@tauri-apps/api/path';\nconst videoDirPath = await videoDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":596,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L596"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"References","children":[1175]},{"title":"Variables","children":[430,429]},{"title":"Functions","children":[386,380,382,378,384,388,390,446,392,394,396,398,440,400,402,404,443,406,408,450,437,410,427,434,412,414,431,418,416,421,423,425]}],"sources":[{"fileName":"path.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/path.ts#L1"}]},{"id":453,"name":"process","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Perform operations on the current process.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.process`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"children":[{"id":454,"name":"exit","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"process.ts","line":27,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/process.ts#L27"}],"signatures":[{"id":455,"name":"exit","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Exits immediately with the given "},{"kind":"code","text":"`exitCode`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { exit } from '@tauri-apps/api/process';\nawait exit(1);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"process.ts","line":27,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/process.ts#L27"}],"parameters":[{"id":456,"name":"exitCode","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The exit code to use."}]},"type":{"type":"intrinsic","name":"number"},"defaultValue":"0"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":457,"name":"relaunch","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"process.ts","line":49,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/process.ts#L49"}],"signatures":[{"id":458,"name":"relaunch","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Exits the current instance of the app then relaunches it."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { relaunch } from '@tauri-apps/api/process';\nawait relaunch();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"process.ts","line":49,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/process.ts#L49"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Functions","children":[454,457]}],"sources":[{"fileName":"process.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/process.ts#L1"}]},{"id":459,"name":"shell","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Access the system shell.\nAllows you to spawn child processes and manage files and URLs using their default application.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.shell`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.shell`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.shell) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"shell\": {\n \"all\": true, // enable all shell APIs\n \"execute\": true, // enable process spawn APIs\n \"sidecar\": true, // enable spawning sidecars\n \"open\": true // enable opening files/URLs using the default program\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security.\n\n## Security\n\nThis API has a scope configuration that forces you to restrict the programs and arguments that can be used.\n\n### Restricting access to the "},{"kind":"inline-tag","tag":"@link","text":"`open`","target":617},{"kind":"text","text":" API\n\nOn the allowlist, "},{"kind":"code","text":"`open: true`"},{"kind":"text","text":" means that the "},{"kind":"inline-tag","tag":"@link","text":"open","target":617},{"kind":"text","text":" API can be used with any URL,\nas the argument is validated with the "},{"kind":"code","text":"`^((mailto:\\w+)|(tel:\\w+)|(https?://\\w+)).+`"},{"kind":"text","text":" regex.\nYou can change that regex by changing the boolean value to a string, e.g. "},{"kind":"code","text":"`open: ^https://github.com/`"},{"kind":"text","text":".\n\n### Restricting access to the "},{"kind":"inline-tag","tag":"@link","text":"`Command`","target":460},{"kind":"text","text":" APIs\n\nThe "},{"kind":"code","text":"`shell`"},{"kind":"text","text":" allowlist object has a "},{"kind":"code","text":"`scope`"},{"kind":"text","text":" field that defines an array of CLIs that can be used.\nEach CLI is a configuration object "},{"kind":"code","text":"`{ name: string, cmd: string, sidecar?: bool, args?: boolean | Arg[] }`"},{"kind":"text","text":".\n\n- "},{"kind":"code","text":"`name`"},{"kind":"text","text":": the unique identifier of the command, passed to the "},{"kind":"inline-tag","tag":"@link","text":"Command constructor","target":466},{"kind":"text","text":".\nIf it's a sidecar, this must be the value defined on "},{"kind":"code","text":"`tauri.conf.json > tauri > bundle > externalBin`"},{"kind":"text","text":".\n- "},{"kind":"code","text":"`cmd`"},{"kind":"text","text":": the program that is executed on this configuration. If it's a sidecar, this value is ignored.\n- "},{"kind":"code","text":"`sidecar`"},{"kind":"text","text":": whether the object configures a sidecar or a system program.\n- "},{"kind":"code","text":"`args`"},{"kind":"text","text":": the arguments that can be passed to the program. By default no arguments are allowed.\n - "},{"kind":"code","text":"`true`"},{"kind":"text","text":" means that any argument list is allowed.\n - "},{"kind":"code","text":"`false`"},{"kind":"text","text":" means that no arguments are allowed.\n - otherwise an array can be configured. Each item is either a string representing the fixed argument value\n or a "},{"kind":"code","text":"`{ validator: string }`"},{"kind":"text","text":" that defines a regex validating the argument value.\n\n#### Example scope configuration\n\nCLI: "},{"kind":"code","text":"`git commit -m \"the commit message\"`"},{"kind":"text","text":"\n\nConfiguration:\n"},{"kind":"code","text":"```json\n{\n \"scope\": [\n {\n \"name\": \"run-git-commit\",\n \"cmd\": \"git\",\n \"args\": [\"commit\", \"-m\", { \"validator\": \"\\\\S+\" }]\n }\n ]\n}\n```"},{"kind":"text","text":"\nUsage:\n"},{"kind":"code","text":"```typescript\nimport { Command } from '@tauri-apps/api/shell'\nnew Command('run-git-commit', ['commit', '-m', 'the commit message'])\n```"},{"kind":"text","text":"\n\nTrying to execute any API with a program not configured on the scope results in a promise rejection due to denied access."}]},"children":[{"id":539,"name":"Child","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"children":[{"id":540,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"shell.ts","line":325,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L325"}],"signatures":[{"id":541,"name":"new Child","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"shell.ts","line":325,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L325"}],"parameters":[{"id":542,"name":"pid","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":539,"name":"Child","package":"@tauri-apps/api"}}]},{"id":543,"name":"pid","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The child process "},{"kind":"code","text":"`pid`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"shell.ts","line":323,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L323"}],"type":{"type":"intrinsic","name":"number"}},{"id":547,"name":"kill","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":361,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L361"}],"signatures":[{"id":548,"name":"kill","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Kills the child process."}],"blockTags":[{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"shell.ts","line":361,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L361"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":544,"name":"write","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":344,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L344"}],"signatures":[{"id":545,"name":"write","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Writes "},{"kind":"code","text":"`data`"},{"kind":"text","text":" to the "},{"kind":"code","text":"`stdin`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Command } from '@tauri-apps/api/shell';\nconst command = new Command('node');\nconst child = await command.spawn();\nawait child.write('message');\nawait child.write([0, 1, 2, 3, 4, 5]);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"shell.ts","line":344,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L344"}],"parameters":[{"id":546,"name":"data","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The message to write, either a string or a byte array."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Uint8Array"},"name":"Uint8Array","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Constructors","children":[540]},{"title":"Properties","children":[543]},{"title":"Methods","children":[547,544]}],"sources":[{"fileName":"shell.ts","line":321,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L321"}]},{"id":460,"name":"Command","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"The entry point for spawning child processes.\nIt emits the "},{"kind":"code","text":"`close`"},{"kind":"text","text":" and "},{"kind":"code","text":"`error`"},{"kind":"text","text":" events."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Command } from '@tauri-apps/api/shell';\nconst command = new Command('node');\ncommand.on('close', data => {\n console.log(`command finished with code ${data.code} and signal ${data.signal}`)\n});\ncommand.on('error', error => console.error(`command error: \"${error}\"`));\ncommand.stdout.on('data', line => console.log(`command stdout: \"${line}\"`));\ncommand.stderr.on('data', line => console.log(`command stderr: \"${line}\"`));\n\nconst child = await command.spawn();\nconsole.log('pid:', child.pid);\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"children":[{"id":466,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"shell.ts","line":413,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L413"}],"signatures":[{"id":467,"name":"new Command","variant":"signature","kind":16384,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a new "},{"kind":"code","text":"`Command`"},{"kind":"text","text":" instance."}]},"sources":[{"fileName":"shell.ts","line":413,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L413"}],"parameters":[{"id":468,"name":"program","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The program name to execute.\nIt must be configured on "},{"kind":"code","text":"`tauri.conf.json > tauri > allowlist > shell > scope`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":469,"name":"args","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Program arguments."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"array","elementType":{"type":"intrinsic","name":"string"}}]},"defaultValue":"[]"},{"id":470,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Spawn options."}]},"type":{"type":"reference","target":626,"name":"SpawnOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":460,"name":"Command","package":"@tauri-apps/api"},"overwrites":{"type":"reference","target":551,"name":"EventEmitter.constructor"}}],"overwrites":{"type":"reference","target":550,"name":"EventEmitter.constructor"}},{"id":475,"name":"stderr","variant":"declaration","kind":1024,"flags":{"isReadonly":true},"comment":{"summary":[{"kind":"text","text":"Event emitter for the "},{"kind":"code","text":"`stderr`"},{"kind":"text","text":". Emits the "},{"kind":"code","text":"`data`"},{"kind":"text","text":" event."}]},"sources":[{"fileName":"shell.ts","line":403,"character":11,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L403"}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"literal","value":"data"}],"name":"EventEmitter","package":"@tauri-apps/api"},"defaultValue":"..."},{"id":474,"name":"stdout","variant":"declaration","kind":1024,"flags":{"isReadonly":true},"comment":{"summary":[{"kind":"text","text":"Event emitter for the "},{"kind":"code","text":"`stdout`"},{"kind":"text","text":". Emits the "},{"kind":"code","text":"`data`"},{"kind":"text","text":" event."}]},"sources":[{"fileName":"shell.ts","line":401,"character":11,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L401"}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"literal","value":"data"}],"name":"EventEmitter","package":"@tauri-apps/api"},"defaultValue":"..."},{"id":480,"name":"addListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":164,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L164"}],"signatures":[{"id":481,"name":"addListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Alias for "},{"kind":"code","text":"`emitter.on(eventName, listener)`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":164,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L164"}],"parameters":[{"id":482,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}},{"id":483,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":484,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":164,"character":38,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L164"}],"signatures":[{"id":485,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":164,"character":38,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L164"}],"parameters":[{"id":486,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":460,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":558,"name":"EventEmitter.addListener"}}],"inheritedFrom":{"type":"reference","target":557,"name":"EventEmitter.addListener"}},{"id":478,"name":"execute","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":489,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L489"}],"signatures":[{"id":479,"name":"execute","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Executes the command as a child process, waiting for it to finish and collecting all of its output."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Command } from '@tauri-apps/api/shell';\nconst output = await new Command('echo', 'message').execute();\nassert(output.code === 0);\nassert(output.signal === null);\nassert(output.stdout === 'message');\nassert(output.stderr === '');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to the child process output."}]}]},"sources":[{"fileName":"shell.ts","line":489,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L489"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":621,"name":"ChildProcess","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":522,"name":"listenerCount","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":272,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L272"}],"signatures":[{"id":523,"name":"listenerCount","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the number of listeners listening to the event named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":272,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L272"}],"parameters":[{"id":524,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}}],"type":{"type":"intrinsic","name":"number"},"inheritedFrom":{"type":"reference","target":600,"name":"EventEmitter.listenerCount"}}],"inheritedFrom":{"type":"reference","target":599,"name":"EventEmitter.listenerCount"}},{"id":508,"name":"off","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":221,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L221"}],"signatures":[{"id":509,"name":"off","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Removes the all specified listener from the listener array for the event eventName\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":221,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L221"}],"parameters":[{"id":510,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}},{"id":511,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":512,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":221,"character":30,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L221"}],"signatures":[{"id":513,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":221,"character":30,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L221"}],"parameters":[{"id":514,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":460,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":586,"name":"EventEmitter.off"}}],"inheritedFrom":{"type":"reference","target":585,"name":"EventEmitter.off"}},{"id":494,"name":"on","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":187,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L187"}],"signatures":[{"id":495,"name":"on","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function to the end of the listeners array for the\nevent named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":". No checks are made to see if the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" has\nalready been added. Multiple calls passing the same combination of "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":"and "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" will result in the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" being added, and called, multiple\ntimes.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"shell.ts","line":187,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L187"}],"parameters":[{"id":496,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}},{"id":497,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":498,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":187,"character":29,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L187"}],"signatures":[{"id":499,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":187,"character":29,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L187"}],"parameters":[{"id":500,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":460,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":572,"name":"EventEmitter.on"}}],"inheritedFrom":{"type":"reference","target":571,"name":"EventEmitter.on"}},{"id":501,"name":"once","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":206,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L206"}],"signatures":[{"id":502,"name":"once","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds a **one-time**"},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function for the event named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":". The\nnext time "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":" is triggered, this listener is removed and then invoked.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":206,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L206"}],"parameters":[{"id":503,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}},{"id":504,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":505,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":206,"character":31,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L206"}],"signatures":[{"id":506,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":206,"character":31,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L206"}],"parameters":[{"id":507,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":460,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":579,"name":"EventEmitter.once"}}],"inheritedFrom":{"type":"reference","target":578,"name":"EventEmitter.once"}},{"id":525,"name":"prependListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":289,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L289"}],"signatures":[{"id":526,"name":"prependListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function to the _beginning_ of the listeners array for the\nevent named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":". No checks are made to see if the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" has\nalready been added. Multiple calls passing the same combination of "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":"and "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" will result in the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" being added, and called, multiple\ntimes.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":289,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L289"}],"parameters":[{"id":527,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}},{"id":528,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":529,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":289,"character":42,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L289"}],"signatures":[{"id":530,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":289,"character":42,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L289"}],"parameters":[{"id":531,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":460,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":603,"name":"EventEmitter.prependListener"}}],"inheritedFrom":{"type":"reference","target":602,"name":"EventEmitter.prependListener"}},{"id":532,"name":"prependOnceListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":308,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L308"}],"signatures":[{"id":533,"name":"prependOnceListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds a **one-time**"},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function for the event named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":" to the_beginning_ of the listeners array. The next time "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":" is triggered, this\nlistener is removed, and then invoked.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":308,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L308"}],"parameters":[{"id":534,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}},{"id":535,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":536,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":308,"character":46,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L308"}],"signatures":[{"id":537,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":308,"character":46,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L308"}],"parameters":[{"id":538,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":460,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":610,"name":"EventEmitter.prependOnceListener"}}],"inheritedFrom":{"type":"reference","target":609,"name":"EventEmitter.prependOnceListener"}},{"id":515,"name":"removeAllListeners","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":238,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L238"}],"signatures":[{"id":516,"name":"removeAllListeners","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Removes all listeners, or those of the specified eventName.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":238,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L238"}],"parameters":[{"id":517,"name":"event","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}}],"type":{"type":"reference","target":460,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":593,"name":"EventEmitter.removeAllListeners"}}],"inheritedFrom":{"type":"reference","target":592,"name":"EventEmitter.removeAllListeners"}},{"id":487,"name":"removeListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":173,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L173"}],"signatures":[{"id":488,"name":"removeListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Alias for "},{"kind":"code","text":"`emitter.off(eventName, listener)`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":173,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L173"}],"parameters":[{"id":489,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}},{"id":490,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":491,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":173,"character":41,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L173"}],"signatures":[{"id":492,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":173,"character":41,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L173"}],"parameters":[{"id":493,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":460,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":565,"name":"EventEmitter.removeListener"}}],"inheritedFrom":{"type":"reference","target":564,"name":"EventEmitter.removeListener"}},{"id":476,"name":"spawn","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":451,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L451"}],"signatures":[{"id":477,"name":"spawn","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Executes the command as a child process, returning a handle to it."}],"blockTags":[{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to the child process handle."}]}]},"sources":[{"fileName":"shell.ts","line":451,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L451"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":539,"name":"Child","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":461,"name":"sidecar","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"shell.ts","line":436,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L436"}],"signatures":[{"id":462,"name":"sidecar","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a command to execute the given sidecar program."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Command } from '@tauri-apps/api/shell';\nconst command = Command.sidecar('my-sidecar');\nconst output = await command.execute();\n```"}]}]},"sources":[{"fileName":"shell.ts","line":436,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L436"}],"parameters":[{"id":463,"name":"program","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The program to execute.\nIt must be configured on "},{"kind":"code","text":"`tauri.conf.json > tauri > allowlist > shell > scope`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":464,"name":"args","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"array","elementType":{"type":"intrinsic","name":"string"}}]},"defaultValue":"[]"},{"id":465,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":626,"name":"SpawnOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":460,"name":"Command","package":"@tauri-apps/api"}}]}],"groups":[{"title":"Constructors","children":[466]},{"title":"Properties","children":[475,474]},{"title":"Methods","children":[480,478,522,508,494,501,525,532,515,487,476,461]}],"sources":[{"fileName":"shell.ts","line":393,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L393"}],"extendedTypes":[{"type":"reference","target":549,"typeArguments":[{"type":"union","types":[{"type":"literal","value":"close"},{"type":"literal","value":"error"}]}],"name":"EventEmitter","package":"@tauri-apps/api"}]},{"id":549,"name":"EventEmitter","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":550,"name":"constructor","variant":"declaration","kind":512,"flags":{},"signatures":[{"id":551,"name":"new EventEmitter","variant":"signature","kind":16384,"flags":{},"typeParameter":[{"id":552,"name":"E","variant":"typeParam","kind":131072,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":557,"name":"addListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":164,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L164"}],"signatures":[{"id":558,"name":"addListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Alias for "},{"kind":"code","text":"`emitter.on(eventName, listener)`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":164,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L164"}],"parameters":[{"id":559,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}},{"id":560,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":561,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":164,"character":38,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L164"}],"signatures":[{"id":562,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":164,"character":38,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L164"}],"parameters":[{"id":563,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":599,"name":"listenerCount","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":272,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L272"}],"signatures":[{"id":600,"name":"listenerCount","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the number of listeners listening to the event named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":272,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L272"}],"parameters":[{"id":601,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}}],"type":{"type":"intrinsic","name":"number"}}]},{"id":585,"name":"off","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":221,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L221"}],"signatures":[{"id":586,"name":"off","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Removes the all specified listener from the listener array for the event eventName\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":221,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L221"}],"parameters":[{"id":587,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}},{"id":588,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":589,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":221,"character":30,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L221"}],"signatures":[{"id":590,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":221,"character":30,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L221"}],"parameters":[{"id":591,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":571,"name":"on","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":187,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L187"}],"signatures":[{"id":572,"name":"on","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function to the end of the listeners array for the\nevent named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":". No checks are made to see if the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" has\nalready been added. Multiple calls passing the same combination of "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":"and "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" will result in the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" being added, and called, multiple\ntimes.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"shell.ts","line":187,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L187"}],"parameters":[{"id":573,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}},{"id":574,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":575,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":187,"character":29,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L187"}],"signatures":[{"id":576,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":187,"character":29,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L187"}],"parameters":[{"id":577,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":578,"name":"once","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":206,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L206"}],"signatures":[{"id":579,"name":"once","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds a **one-time**"},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function for the event named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":". The\nnext time "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":" is triggered, this listener is removed and then invoked.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":206,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L206"}],"parameters":[{"id":580,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}},{"id":581,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":582,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":206,"character":31,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L206"}],"signatures":[{"id":583,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":206,"character":31,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L206"}],"parameters":[{"id":584,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":602,"name":"prependListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":289,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L289"}],"signatures":[{"id":603,"name":"prependListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function to the _beginning_ of the listeners array for the\nevent named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":". No checks are made to see if the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" has\nalready been added. Multiple calls passing the same combination of "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":"and "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" will result in the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" being added, and called, multiple\ntimes.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":289,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L289"}],"parameters":[{"id":604,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}},{"id":605,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":606,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":289,"character":42,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L289"}],"signatures":[{"id":607,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":289,"character":42,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L289"}],"parameters":[{"id":608,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":609,"name":"prependOnceListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":308,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L308"}],"signatures":[{"id":610,"name":"prependOnceListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds a **one-time**"},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function for the event named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":" to the_beginning_ of the listeners array. The next time "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":" is triggered, this\nlistener is removed, and then invoked.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":308,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L308"}],"parameters":[{"id":611,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}},{"id":612,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":613,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":308,"character":46,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L308"}],"signatures":[{"id":614,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":308,"character":46,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L308"}],"parameters":[{"id":615,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":592,"name":"removeAllListeners","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":238,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L238"}],"signatures":[{"id":593,"name":"removeAllListeners","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Removes all listeners, or those of the specified eventName.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":238,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L238"}],"parameters":[{"id":594,"name":"event","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":564,"name":"removeListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":173,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L173"}],"signatures":[{"id":565,"name":"removeListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Alias for "},{"kind":"code","text":"`emitter.off(eventName, listener)`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":173,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L173"}],"parameters":[{"id":566,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}},{"id":567,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":568,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":173,"character":41,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L173"}],"signatures":[{"id":569,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":173,"character":41,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L173"}],"parameters":[{"id":570,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]}],"groups":[{"title":"Constructors","children":[550]},{"title":"Methods","children":[557,599,585,571,578,602,609,592,564]}],"sources":[{"fileName":"shell.ts","line":153,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L153"}],"typeParameters":[{"id":616,"name":"E","variant":"typeParam","kind":131072,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"extendedBy":[{"type":"reference","target":460,"name":"Command"}]},{"id":621,"name":"ChildProcess","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":622,"name":"code","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Exit code of the process. "},{"kind":"code","text":"`null`"},{"kind":"text","text":" if the process was terminated by a signal on Unix."}]},"sources":[{"fileName":"shell.ts","line":109,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L109"}],"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"intrinsic","name":"number"}]}},{"id":623,"name":"signal","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"If the process was terminated by a signal, represents that signal."}]},"sources":[{"fileName":"shell.ts","line":111,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L111"}],"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"intrinsic","name":"number"}]}},{"id":625,"name":"stderr","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The data that the process wrote to "},{"kind":"code","text":"`stderr`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"shell.ts","line":115,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L115"}],"type":{"type":"intrinsic","name":"string"}},{"id":624,"name":"stdout","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The data that the process wrote to "},{"kind":"code","text":"`stdout`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"shell.ts","line":113,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L113"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[622,623,625,624]}],"sources":[{"fileName":"shell.ts","line":107,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L107"}]},{"id":626,"name":"SpawnOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":627,"name":"cwd","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Current working directory."}]},"sources":[{"fileName":"shell.ts","line":88,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L88"}],"type":{"type":"intrinsic","name":"string"}},{"id":629,"name":"encoding","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Character encoding for stdout/stderr"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":96,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L96"}],"type":{"type":"intrinsic","name":"string"}},{"id":628,"name":"env","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Environment variables. set to "},{"kind":"code","text":"`null`"},{"kind":"text","text":" to clear the process env."}]},"sources":[{"fileName":"shell.ts","line":90,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L90"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"string"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}}],"groups":[{"title":"Properties","children":[627,629,628]}],"sources":[{"fileName":"shell.ts","line":86,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L86"}]},{"id":617,"name":"open","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"shell.ts","line":564,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L564"}],"signatures":[{"id":618,"name":"open","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Opens a path or URL with the system's default app,\nor the one specified with "},{"kind":"code","text":"`openWith`"},{"kind":"text","text":".\n\nThe "},{"kind":"code","text":"`openWith`"},{"kind":"text","text":" value must be one of "},{"kind":"code","text":"`firefox`"},{"kind":"text","text":", "},{"kind":"code","text":"`google chrome`"},{"kind":"text","text":", "},{"kind":"code","text":"`chromium`"},{"kind":"text","text":" "},{"kind":"code","text":"`safari`"},{"kind":"text","text":",\n"},{"kind":"code","text":"`open`"},{"kind":"text","text":", "},{"kind":"code","text":"`start`"},{"kind":"text","text":", "},{"kind":"code","text":"`xdg-open`"},{"kind":"text","text":", "},{"kind":"code","text":"`gio`"},{"kind":"text","text":", "},{"kind":"code","text":"`gnome-open`"},{"kind":"text","text":", "},{"kind":"code","text":"`kde-open`"},{"kind":"text","text":" or "},{"kind":"code","text":"`wslview`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { open } from '@tauri-apps/api/shell';\n// opens the given URL on the default browser:\nawait open('https://github.com/tauri-apps/tauri');\n// opens the given URL using `firefox`:\nawait open('https://github.com/tauri-apps/tauri', 'firefox');\n// opens a file using the default program:\nawait open('/path/to/file');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"shell.ts","line":564,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L564"}],"parameters":[{"id":619,"name":"path","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The path or URL to open.\nThis value is matched against the string regex defined on "},{"kind":"code","text":"`tauri.conf.json > tauri > allowlist > shell > open`"},{"kind":"text","text":",\nwhich defaults to "},{"kind":"code","text":"`^((mailto:\\w+)|(tel:\\w+)|(https?://\\w+)).+`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":620,"name":"openWith","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The app to open the file or URL with.\nDefaults to the system default application for the specified path type."}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Classes","children":[539,460,549]},{"title":"Interfaces","children":[621,626]},{"title":"Functions","children":[617]}],"sources":[{"fileName":"shell.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/shell.ts#L1"}]},{"id":630,"name":"tauri","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Invoke your custom commands.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.tauri`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"children":[{"id":631,"name":"InvokeArgs","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[{"kind":"text","text":"Command arguments."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"tauri.ts","line":63,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/tauri.ts#L63"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"unknown"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}},{"id":644,"name":"convertFileSrc","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"tauri.ts","line":129,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/tauri.ts#L129"}],"signatures":[{"id":645,"name":"convertFileSrc","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Convert a device file path to an URL that can be loaded by the webview.\nNote that "},{"kind":"code","text":"`asset:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`https://asset.localhost`"},{"kind":"text","text":" must be added to ["},{"kind":"code","text":"`tauri.security.csp`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#securityconfig.csp) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":".\nExample CSP value: "},{"kind":"code","text":"`\"csp\": \"default-src 'self'; img-src 'self' asset: https://asset.localhost\"`"},{"kind":"text","text":" to use the asset protocol on image sources.\n\nAdditionally, "},{"kind":"code","text":"`asset`"},{"kind":"text","text":" must be added to ["},{"kind":"code","text":"`tauri.allowlist.protocol`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.protocol)\nin "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" and its access scope must be defined on the "},{"kind":"code","text":"`assetScope`"},{"kind":"text","text":" array on the same "},{"kind":"code","text":"`protocol`"},{"kind":"text","text":" object."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appDataDir, join } from '@tauri-apps/api/path';\nimport { convertFileSrc } from '@tauri-apps/api/tauri';\nconst appDataDirPath = await appDataDir();\nconst filePath = await join(appDataDirPath, 'assets/video.mp4');\nconst assetUrl = convertFileSrc(filePath);\n\nconst video = document.getElementById('my-video');\nconst source = document.createElement('source');\nsource.type = 'video/mp4';\nsource.src = assetUrl;\nvideo.appendChild(source);\nvideo.load();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"the URL that can be used as source on the webview."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"tauri.ts","line":129,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/tauri.ts#L129"}],"parameters":[{"id":646,"name":"filePath","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The file path."}]},"type":{"type":"intrinsic","name":"string"}},{"id":647,"name":"protocol","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The protocol to use. Defaults to "},{"kind":"code","text":"`asset`"},{"kind":"text","text":". You only need to set this when using a custom protocol."}]},"type":{"type":"intrinsic","name":"string"},"defaultValue":"'asset'"}],"type":{"type":"intrinsic","name":"string"}}]},{"id":639,"name":"invoke","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"tauri.ts","line":79,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/tauri.ts#L79"}],"signatures":[{"id":640,"name":"invoke","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sends a message to the backend."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { invoke } from '@tauri-apps/api/tauri';\nawait invoke('login', { user: 'tauri', password: 'poiwe3h4r5ip3yrhtew9ty' });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving or rejecting to the backend response."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"tauri.ts","line":79,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/tauri.ts#L79"}],"typeParameter":[{"id":641,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":642,"name":"cmd","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The command name."}]},"type":{"type":"intrinsic","name":"string"}},{"id":643,"name":"args","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The optional arguments to pass to the command."}]},"type":{"type":"reference","target":631,"name":"InvokeArgs","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":632,"name":"transformCallback","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"tauri.ts","line":36,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/tauri.ts#L36"}],"signatures":[{"id":633,"name":"transformCallback","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Transforms a callback function to a string identifier that can be passed to the backend.\nThe backend uses the identifier to "},{"kind":"code","text":"`eval()`"},{"kind":"text","text":" the callback."}],"blockTags":[{"tag":"@returns","content":[{"kind":"text","text":"A unique identifier associated with the callback function."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"tauri.ts","line":36,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/tauri.ts#L36"}],"parameters":[{"id":634,"name":"callback","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reflection","declaration":{"id":635,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"tauri.ts","line":37,"character":13,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/tauri.ts#L37"}],"signatures":[{"id":636,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"tauri.ts","line":37,"character":13,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/tauri.ts#L37"}],"parameters":[{"id":637,"name":"response","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"void"}}]}}},{"id":638,"name":"once","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"},"defaultValue":"false"}],"type":{"type":"intrinsic","name":"number"}}]}],"groups":[{"title":"Type Aliases","children":[631]},{"title":"Functions","children":[644,639,632]}],"sources":[{"fileName":"tauri.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/tauri.ts#L1"}]},{"id":648,"name":"updater","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Customize the auto updater flow.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.updater`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"children":[{"id":653,"name":"UpdateManifest","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":656,"name":"body","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"updater.ts","line":34,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L34"}],"type":{"type":"intrinsic","name":"string"}},{"id":655,"name":"date","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"updater.ts","line":33,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L33"}],"type":{"type":"intrinsic","name":"string"}},{"id":654,"name":"version","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"updater.ts","line":32,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L32"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[656,655,654]}],"sources":[{"fileName":"updater.ts","line":31,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L31"}]},{"id":657,"name":"UpdateResult","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":658,"name":"manifest","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"updater.ts","line":41,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L41"}],"type":{"type":"reference","target":653,"name":"UpdateManifest","package":"@tauri-apps/api"}},{"id":659,"name":"shouldUpdate","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"updater.ts","line":42,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L42"}],"type":{"type":"intrinsic","name":"boolean"}}],"groups":[{"title":"Properties","children":[658,659]}],"sources":[{"fileName":"updater.ts","line":40,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L40"}]},{"id":650,"name":"UpdateStatusResult","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":651,"name":"error","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"updater.ts","line":24,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L24"}],"type":{"type":"intrinsic","name":"string"}},{"id":652,"name":"status","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"updater.ts","line":25,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L25"}],"type":{"type":"reference","target":649,"name":"UpdateStatus","package":"@tauri-apps/api"}}],"groups":[{"title":"Properties","children":[651,652]}],"sources":[{"fileName":"updater.ts","line":23,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L23"}]},{"id":649,"name":"UpdateStatus","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"updater.ts","line":18,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L18"}],"type":{"type":"union","types":[{"type":"literal","value":"PENDING"},{"type":"literal","value":"ERROR"},{"type":"literal","value":"DONE"},{"type":"literal","value":"UPTODATE"}]}},{"id":668,"name":"checkUpdate","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"updater.ts","line":146,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L146"}],"signatures":[{"id":669,"name":"checkUpdate","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Checks if an update is available."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { checkUpdate } from '@tauri-apps/api/updater';\nconst update = await checkUpdate();\n// now run installUpdate() if needed\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Promise resolving to the update status."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"updater.ts","line":146,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L146"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":657,"name":"UpdateResult","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":666,"name":"installUpdate","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"updater.ts","line":87,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L87"}],"signatures":[{"id":667,"name":"installUpdate","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Install the update if there's one available."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { checkUpdate, installUpdate } from '@tauri-apps/api/updater';\nconst update = await checkUpdate();\nif (update.shouldUpdate) {\n console.log(`Installing update ${update.manifest?.version}, ${update.manifest?.date}, ${update.manifest.body}`);\n await installUpdate();\n}\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"updater.ts","line":87,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L87"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":660,"name":"onUpdaterEvent","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"updater.ts","line":63,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L63"}],"signatures":[{"id":661,"name":"onUpdaterEvent","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to an updater event."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { onUpdaterEvent } from \"@tauri-apps/api/updater\";\nconst unlisten = await onUpdaterEvent(({ error, status }) => {\n console.log('Updater event', error, status);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"updater.ts","line":63,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L63"}],"parameters":[{"id":662,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":663,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"updater.ts","line":64,"character":11,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L64"}],"signatures":[{"id":664,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"updater.ts","line":64,"character":11,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L64"}],"parameters":[{"id":665,"name":"status","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":650,"name":"UpdateStatusResult","package":"@tauri-apps/api"}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Interfaces","children":[653,657,650]},{"title":"Type Aliases","children":[649]},{"title":"Functions","children":[668,666,660]}],"sources":[{"fileName":"updater.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/updater.ts#L1"}]},{"id":670,"name":"window","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Provides APIs to create windows, communicate with other windows and manipulate the current window.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.window`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.window`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.window) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"window\": {\n \"all\": true, // enable all window APIs\n \"create\": true, // enable window creation\n \"center\": true,\n \"requestUserAttention\": true,\n \"setResizable\": true,\n \"setMaximizable\": true,\n \"setMinimizable\": true,\n \"setClosable\": true,\n \"setTitle\": true,\n \"maximize\": true,\n \"unmaximize\": true,\n \"minimize\": true,\n \"unminimize\": true,\n \"show\": true,\n \"hide\": true,\n \"close\": true,\n \"setDecorations\": true,\n \"setAlwaysOnTop\": true,\n \"setContentProtected\": true,\n \"setSize\": true,\n \"setMinSize\": true,\n \"setMaxSize\": true,\n \"setPosition\": true,\n \"setFullscreen\": true,\n \"setFocus\": true,\n \"setIcon\": true,\n \"setSkipTaskbar\": true,\n \"setCursorGrab\": true,\n \"setCursorVisible\": true,\n \"setCursorIcon\": true,\n \"setCursorPosition\": true,\n \"setIgnoreCursorEvents\": true,\n \"startDragging\": true,\n \"print\": true\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security.\n\n## Window events\n\nEvents can be listened to using "},{"kind":"code","text":"`appWindow.listen`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nappWindow.listen(\"my-window-event\", ({ event, payload }) => { });\n```"}]},"children":[{"id":1101,"name":"UserAttentionType","variant":"declaration","kind":8,"flags":{},"comment":{"summary":[{"kind":"text","text":"Attention type to request on a window."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":1102,"name":"Critical","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"#### Platform-specific\n- **macOS:** Bounces the dock icon until the application is in focus.\n- **Windows:** Flashes both the window and the taskbar button until the application is in focus."}]},"sources":[{"fileName":"window.ts","line":228,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L228"}],"type":{"type":"literal","value":1}},{"id":1103,"name":"Informational","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"#### Platform-specific\n- **macOS:** Bounces the dock icon once.\n- **Windows:** Flashes the taskbar button until the application is in focus."}]},"sources":[{"fileName":"window.ts","line":234,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L234"}],"type":{"type":"literal","value":2}}],"groups":[{"title":"Enumeration Members","children":[1102,1103]}],"sources":[{"fileName":"window.ts","line":222,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L222"}]},{"id":1046,"name":"CloseRequestedEvent","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"children":[{"id":1047,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"window.ts","line":2179,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2179"}],"signatures":[{"id":1048,"name":"new CloseRequestedEvent","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"window.ts","line":2179,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2179"}],"parameters":[{"id":1049,"name":"event","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1161,"typeArguments":[{"type":"literal","value":null}],"name":"Event","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":1046,"name":"CloseRequestedEvent","package":"@tauri-apps/api"}}]},{"id":1053,"name":"_preventDefault","variant":"declaration","kind":1024,"flags":{"isPrivate":true},"sources":[{"fileName":"window.ts","line":2177,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2177"}],"type":{"type":"intrinsic","name":"boolean"},"defaultValue":"false"},{"id":1050,"name":"event","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name"}]},"sources":[{"fileName":"window.ts","line":2172,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2172"}],"type":{"type":"reference","target":73,"name":"EventName","package":"@tauri-apps/api"}},{"id":1052,"name":"id","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event identifier used to unlisten"}]},"sources":[{"fileName":"window.ts","line":2176,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2176"}],"type":{"type":"intrinsic","name":"number"}},{"id":1051,"name":"windowLabel","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The label of the window that emitted this event."}]},"sources":[{"fileName":"window.ts","line":2174,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2174"}],"type":{"type":"intrinsic","name":"string"}},{"id":1056,"name":"isPreventDefault","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":2189,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2189"}],"signatures":[{"id":1057,"name":"isPreventDefault","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"window.ts","line":2189,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2189"}],"type":{"type":"intrinsic","name":"boolean"}}]},{"id":1054,"name":"preventDefault","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":2185,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2185"}],"signatures":[{"id":1055,"name":"preventDefault","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"window.ts","line":2185,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2185"}],"type":{"type":"intrinsic","name":"void"}}]}],"groups":[{"title":"Constructors","children":[1047]},{"title":"Properties","children":[1053,1050,1052,1051]},{"title":"Methods","children":[1056,1054]}],"sources":[{"fileName":"window.ts","line":2170,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2170"}]},{"id":1082,"name":"LogicalPosition","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"A position represented in logical pixels."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":1083,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"window.ts","line":166,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L166"}],"signatures":[{"id":1084,"name":"new LogicalPosition","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"window.ts","line":166,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L166"}],"parameters":[{"id":1085,"name":"x","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}},{"id":1086,"name":"y","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":1082,"name":"LogicalPosition","package":"@tauri-apps/api"}}]},{"id":1087,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":162,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L162"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'Logical'"},{"id":1088,"name":"x","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":163,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L163"}],"type":{"type":"intrinsic","name":"number"}},{"id":1089,"name":"y","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":164,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L164"}],"type":{"type":"intrinsic","name":"number"}}],"groups":[{"title":"Constructors","children":[1083]},{"title":"Properties","children":[1087,1088,1089]}],"sources":[{"fileName":"window.ts","line":161,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L161"}]},{"id":1063,"name":"LogicalSize","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"A size represented in logical pixels."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":1064,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"window.ts","line":120,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L120"}],"signatures":[{"id":1065,"name":"new LogicalSize","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"window.ts","line":120,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L120"}],"parameters":[{"id":1066,"name":"width","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}},{"id":1067,"name":"height","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":1063,"name":"LogicalSize","package":"@tauri-apps/api"}}]},{"id":1070,"name":"height","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":118,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L118"}],"type":{"type":"intrinsic","name":"number"}},{"id":1068,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":116,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L116"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'Logical'"},{"id":1069,"name":"width","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":117,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L117"}],"type":{"type":"intrinsic","name":"number"}}],"groups":[{"title":"Constructors","children":[1064]},{"title":"Properties","children":[1070,1068,1069]}],"sources":[{"fileName":"window.ts","line":115,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L115"}]},{"id":1090,"name":"PhysicalPosition","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"A position represented in physical pixels."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":1091,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"window.ts","line":182,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L182"}],"signatures":[{"id":1092,"name":"new PhysicalPosition","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"window.ts","line":182,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L182"}],"parameters":[{"id":1093,"name":"x","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}},{"id":1094,"name":"y","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":1090,"name":"PhysicalPosition","package":"@tauri-apps/api"}}]},{"id":1095,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":178,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L178"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'Physical'"},{"id":1096,"name":"x","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":179,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L179"}],"type":{"type":"intrinsic","name":"number"}},{"id":1097,"name":"y","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":180,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L180"}],"type":{"type":"intrinsic","name":"number"}},{"id":1098,"name":"toLogical","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":197,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L197"}],"signatures":[{"id":1099,"name":"toLogical","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Converts the physical position to a logical one."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst factor = await appWindow.scaleFactor();\nconst position = await appWindow.innerPosition();\nconst logical = position.toLogical(factor);\n```"}]}]},"sources":[{"fileName":"window.ts","line":197,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L197"}],"parameters":[{"id":1100,"name":"scaleFactor","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":1082,"name":"LogicalPosition","package":"@tauri-apps/api"}}]}],"groups":[{"title":"Constructors","children":[1091]},{"title":"Properties","children":[1095,1096,1097]},{"title":"Methods","children":[1098]}],"sources":[{"fileName":"window.ts","line":177,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L177"}]},{"id":1071,"name":"PhysicalSize","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"A size represented in physical pixels."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":1072,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"window.ts","line":136,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L136"}],"signatures":[{"id":1073,"name":"new PhysicalSize","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"window.ts","line":136,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L136"}],"parameters":[{"id":1074,"name":"width","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}},{"id":1075,"name":"height","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":1071,"name":"PhysicalSize","package":"@tauri-apps/api"}}]},{"id":1078,"name":"height","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":134,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L134"}],"type":{"type":"intrinsic","name":"number"}},{"id":1076,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":132,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L132"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'Physical'"},{"id":1077,"name":"width","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":133,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L133"}],"type":{"type":"intrinsic","name":"number"}},{"id":1079,"name":"toLogical","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":151,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L151"}],"signatures":[{"id":1080,"name":"toLogical","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Converts the physical size to a logical one."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst factor = await appWindow.scaleFactor();\nconst size = await appWindow.innerSize();\nconst logical = size.toLogical(factor);\n```"}]}]},"sources":[{"fileName":"window.ts","line":151,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L151"}],"parameters":[{"id":1081,"name":"scaleFactor","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":1063,"name":"LogicalSize","package":"@tauri-apps/api"}}]}],"groups":[{"title":"Constructors","children":[1072]},{"title":"Properties","children":[1078,1076,1077]},{"title":"Methods","children":[1079]}],"sources":[{"fileName":"window.ts","line":131,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L131"}]},{"id":673,"name":"WebviewWindow","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"Create new webview windows and get a handle to existing ones.\n\nWindows are identified by a *label* a unique identifier that can be used to reference it later.\nIt may only contain alphanumeric characters "},{"kind":"code","text":"`a-zA-Z`"},{"kind":"text","text":" plus the following special characters "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\n// loading embedded asset:\nconst webview = new WebviewWindow('theUniqueLabel', {\n url: 'path/to/page.html'\n});\n// alternatively, load a remote URL:\nconst webview = new WebviewWindow('theUniqueLabel', {\n url: 'https://github.com/tauri-apps/tauri'\n});\n\nwebview.once('tauri://created', function () {\n // webview window successfully created\n});\nwebview.once('tauri://error', function (e) {\n // an error happened creating the webview window\n});\n\n// emit an event to the backend\nawait webview.emit(\"some event\", \"data\");\n// listen to an event from the backend\nconst unlisten = await webview.listen(\"event name\", e => {});\nunlisten();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"children":[{"id":679,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"window.ts","line":2247,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2247"}],"signatures":[{"id":680,"name":"new WebviewWindow","variant":"signature","kind":16384,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a new WebviewWindow."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { WebviewWindow } from '@tauri-apps/api/window';\nconst webview = new WebviewWindow('my-label', {\n url: 'https://github.com/tauri-apps/tauri'\n});\nwebview.once('tauri://created', function () {\n // webview window successfully created\n});\nwebview.once('tauri://error', function (e) {\n // an error happened creating the webview window\n});\n```"},{"kind":"text","text":"\n\n*"}]},{"tag":"@returns","content":[{"kind":"text","text":"The WebviewWindow instance to communicate with the webview."}]}]},"sources":[{"fileName":"window.ts","line":2247,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2247"}],"parameters":[{"id":681,"name":"label","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The unique webview window label. Must be alphanumeric: "},{"kind":"code","text":"`a-zA-Z-/:_`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":682,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1129,"name":"WindowOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":673,"name":"WebviewWindow","package":"@tauri-apps/api"},"overwrites":{"type":"reference","target":-1,"name":"WindowManager.constructor"}}],"overwrites":{"type":"reference","target":-1,"name":"WindowManager.constructor"}},{"id":829,"name":"label","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The window label. It is a unique identifier for the window, can be used to reference it later."}]},"sources":[{"fileName":"window.ts","line":318,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L318"}],"type":{"type":"intrinsic","name":"string"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.label"}},{"id":830,"name":"listeners","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Local event listeners."}]},"sources":[{"fileName":"window.ts","line":320,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L320"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"array","elementType":{"type":"reference","target":1167,"typeArguments":[{"type":"intrinsic","name":"any"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.listeners"}},{"id":717,"name":"center","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":926,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L926"}],"signatures":[{"id":718,"name":"center","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Centers the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.center();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":926,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L926"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.center"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.center"}},{"id":751,"name":"close","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1326,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1326"}],"signatures":[{"id":752,"name":"close","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Closes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.close();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1326,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1326"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.close"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.close"}},{"id":841,"name":"emit","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":430,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L430"}],"signatures":[{"id":842,"name":"emit","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Emits an event to the backend and all Tauri windows.\nThe event will have this window's "},{"kind":"inline-tag","tag":"@link","text":"label","target":829,"tsLinkText":"label"},{"kind":"text","text":" as "},{"kind":"inline-tag","tag":"@link","text":"source window label","target":1163,"tsLinkText":"source window label"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.emit('window-loaded', { loggedIn: true, token: 'authToken' });\n```"},{"kind":"text","text":"\n\nThis function can also be used to communicate between windows:\n"},{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.listen('sync-data', (event) => { });\n\n// on another window...\nimport { WebviewWindow } from '@tauri-apps/api/window';\nconst otherWindow = WebviewWindow.getByLabel('other')\nawait otherWindow.emit('sync-data');\n```"},{"kind":"text","text":"\n\nGlobal listeners are also triggered:\n"},{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nimport { listen } from '@tauri-apps/api/event';\nawait listen('ping', (event) => { });\n\nawait appWindow.emit('ping');\n```"}]}]},"sources":[{"fileName":"window.ts","line":430,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L430"}],"parameters":[{"id":843,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":844,"name":"payload","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Event payload."}]},"type":{"type":"intrinsic","name":"unknown"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.emit"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.emit"}},{"id":749,"name":"hide","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1301,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1301"}],"signatures":[{"id":750,"name":"hide","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window visibility to false."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.hide();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1301,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1301"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.hide"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.hide"}},{"id":685,"name":"innerPosition","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":500,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L500"}],"signatures":[{"id":686,"name":"innerPosition","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"The position of the top-left hand corner of the window's client area relative to the top-left hand corner of the desktop."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst position = await appWindow.innerPosition();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window's inner position."}]}]},"sources":[{"fileName":"window.ts","line":500,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L500"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1090,"name":"PhysicalPosition","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.innerPosition"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.innerPosition"}},{"id":689,"name":"innerSize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":551,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L551"}],"signatures":[{"id":690,"name":"innerSize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"The physical size of the window's client area.\nThe client area is the content of the window, excluding the title bar and borders."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst size = await appWindow.innerSize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window's inner size."}]}]},"sources":[{"fileName":"window.ts","line":551,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L551"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1071,"name":"PhysicalSize","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.innerSize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.innerSize"}},{"id":709,"name":"isClosable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":819,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L819"}],"signatures":[{"id":710,"name":"isClosable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window’s native close button state.\n\n#### Platform-specific\n\n- **Linux / iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst closable = await appWindow.isClosable();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window's native close button is enabled or not."}]}]},"sources":[{"fileName":"window.ts","line":819,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L819"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isClosable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isClosable"}},{"id":701,"name":"isDecorated","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":704,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L704"}],"signatures":[{"id":702,"name":"isDecorated","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current decorated state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst decorated = await appWindow.isDecorated();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is decorated or not."}]}]},"sources":[{"fileName":"window.ts","line":704,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L704"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isDecorated"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isDecorated"}},{"id":699,"name":"isFocused","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":679,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L679"}],"signatures":[{"id":700,"name":"isFocused","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current focus state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst focused = await appWindow.isFocused();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is focused or not."}]},{"tag":"@since","content":[{"kind":"text","text":"1.4"}]}]},"sources":[{"fileName":"window.ts","line":679,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L679"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isFocused"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isFocused"}},{"id":693,"name":"isFullscreen","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":602,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L602"}],"signatures":[{"id":694,"name":"isFullscreen","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current fullscreen state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst fullscreen = await appWindow.isFullscreen();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is in fullscreen mode or not."}]}]},"sources":[{"fileName":"window.ts","line":602,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L602"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isFullscreen"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isFullscreen"}},{"id":705,"name":"isMaximizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":759,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L759"}],"signatures":[{"id":706,"name":"isMaximizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window’s native maximize button state.\n\n#### Platform-specific\n\n- **Linux / iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst maximizable = await appWindow.isMaximizable();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window's native maximize button is enabled or not."}]}]},"sources":[{"fileName":"window.ts","line":759,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L759"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMaximizable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMaximizable"}},{"id":697,"name":"isMaximized","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":652,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L652"}],"signatures":[{"id":698,"name":"isMaximized","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current maximized state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst maximized = await appWindow.isMaximized();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is maximized or not."}]}]},"sources":[{"fileName":"window.ts","line":652,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L652"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMaximized"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMaximized"}},{"id":707,"name":"isMinimizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":789,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L789"}],"signatures":[{"id":708,"name":"isMinimizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window’s native minimize button state.\n\n#### Platform-specific\n\n- **Linux / iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst minimizable = await appWindow.isMinimizable();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window's native minimize button is enabled or not."}]}]},"sources":[{"fileName":"window.ts","line":789,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L789"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMinimizable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMinimizable"}},{"id":695,"name":"isMinimized","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":627,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L627"}],"signatures":[{"id":696,"name":"isMinimized","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current minimized state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst minimized = await appWindow.isMinimized();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.3.0"}]}]},"sources":[{"fileName":"window.ts","line":627,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L627"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMinimized"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMinimized"}},{"id":703,"name":"isResizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":729,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L729"}],"signatures":[{"id":704,"name":"isResizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current resizable state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst resizable = await appWindow.isResizable();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is resizable or not."}]}]},"sources":[{"fileName":"window.ts","line":729,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L729"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isResizable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isResizable"}},{"id":711,"name":"isVisible","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":844,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L844"}],"signatures":[{"id":712,"name":"isVisible","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current visible state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst visible = await appWindow.isVisible();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is visible or not."}]}]},"sources":[{"fileName":"window.ts","line":844,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L844"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isVisible"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isVisible"}},{"id":831,"name":"listen","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":351,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L351"}],"signatures":[{"id":832,"name":"listen","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to an event emitted by the backend or webview.\nThe event must either be a global event or an event targetting this window.\n\nSee "},{"kind":"inline-tag","tag":"@link","text":"`emit`","target":841,"tsLinkText":"`emit`"},{"kind":"text","text":" for more information."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst unlisten = await appWindow.listen('state-changed', (event) => {\n console.log(`Got error: ${payload}`);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"},{"kind":"text","text":"\n\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event."}]}]},"sources":[{"fileName":"window.ts","line":351,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L351"}],"typeParameter":[{"id":833,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":834,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"reference","target":73,"name":"EventName","package":"@tauri-apps/api"}},{"id":835,"name":"handler","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event handler."}]},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.listen"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.listen"}},{"id":737,"name":"maximize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1151,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1151"}],"signatures":[{"id":738,"name":"maximize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Maximizes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.maximize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1151,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1151"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.maximize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.maximize"}},{"id":743,"name":"minimize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1226,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1226"}],"signatures":[{"id":744,"name":"minimize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Minimizes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.minimize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1226,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1226"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.minimize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.minimize"}},{"id":808,"name":"onCloseRequested","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1978,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1978"}],"signatures":[{"id":809,"name":"onCloseRequested","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to window close requested. Emitted when the user requests to closes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nimport { confirm } from '@tauri-apps/api/dialog';\nconst unlisten = await appWindow.onCloseRequested(async (event) => {\n const confirmed = await confirm('Are you sure?');\n if (!confirmed) {\n // user did not confirm closing the window; let's prevent it\n event.preventDefault();\n }\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":1978,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1978"}],"parameters":[{"id":810,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":811,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"window.ts","line":1979,"character":13,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1979"}],"signatures":[{"id":812,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"window.ts","line":1979,"character":13,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1979"}],"parameters":[{"id":813,"name":"event","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1046,"name":"CloseRequestedEvent","package":"@tauri-apps/api"}}],"type":{"type":"union","types":[{"type":"intrinsic","name":"void"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}]}}]}}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onCloseRequested"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onCloseRequested"}},{"id":823,"name":"onFileDropEvent","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":2112,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2112"}],"signatures":[{"id":824,"name":"onFileDropEvent","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to a file drop event.\nThe listener is triggered when the user hovers the selected files on the window,\ndrops the files or cancels the operation."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nconst unlisten = await appWindow.onFileDropEvent((event) => {\n if (event.payload.type === 'hover') {\n console.log('User hovering', event.payload.paths);\n } else if (event.payload.type === 'drop') {\n console.log('User dropped', event.payload.paths);\n } else {\n console.log('File drop cancelled');\n }\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":2112,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2112"}],"parameters":[{"id":825,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"reference","target":1120,"name":"FileDropEvent","package":"@tauri-apps/api"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onFileDropEvent"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onFileDropEvent"}},{"id":814,"name":"onFocusChanged","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":2011,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2011"}],"signatures":[{"id":815,"name":"onFocusChanged","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to window focus change."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nconst unlisten = await appWindow.onFocusChanged(({ payload: focused }) => {\n console.log('Focus changed, window is focused? ' + focused);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":2011,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2011"}],"parameters":[{"id":816,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onFocusChanged"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onFocusChanged"}},{"id":820,"name":"onMenuClicked","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":2081,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2081"}],"signatures":[{"id":821,"name":"onMenuClicked","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to the window menu item click. The payload is the item id."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nconst unlisten = await appWindow.onMenuClicked(({ payload: menuId }) => {\n console.log('Menu clicked: ' + menuId);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":2081,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2081"}],"parameters":[{"id":822,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onMenuClicked"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onMenuClicked"}},{"id":805,"name":"onMoved","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1946,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1946"}],"signatures":[{"id":806,"name":"onMoved","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to window move."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nconst unlisten = await appWindow.onMoved(({ payload: position }) => {\n console.log('Window moved', position);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":1946,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1946"}],"parameters":[{"id":807,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"reference","target":1090,"name":"PhysicalPosition","package":"@tauri-apps/api"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onMoved"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onMoved"}},{"id":802,"name":"onResized","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1920,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1920"}],"signatures":[{"id":803,"name":"onResized","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to window resize."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nconst unlisten = await appWindow.onResized(({ payload: size }) => {\n console.log('Window resized', size);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":1920,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1920"}],"parameters":[{"id":804,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"reference","target":1071,"name":"PhysicalSize","package":"@tauri-apps/api"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onResized"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onResized"}},{"id":817,"name":"onScaleChanged","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":2053,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2053"}],"signatures":[{"id":818,"name":"onScaleChanged","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to window scale change. Emitted when the window's scale factor has changed.\nThe following user actions can cause DPI changes:\n- Changing the display's resolution.\n- Changing the display's scale factor (e.g. in Control Panel on Windows).\n- Moving the window to a display with a different scale factor."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nconst unlisten = await appWindow.onScaleChanged(({ payload }) => {\n console.log('Scale changed', payload.scaleFactor, payload.size);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":2053,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2053"}],"parameters":[{"id":819,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"reference","target":1117,"name":"ScaleFactorChanged","package":"@tauri-apps/api"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onScaleChanged"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onScaleChanged"}},{"id":826,"name":"onThemeChanged","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":2162,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2162"}],"signatures":[{"id":827,"name":"onThemeChanged","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to the system theme change."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nconst unlisten = await appWindow.onThemeChanged(({ payload: theme }) => {\n console.log('New theme: ' + theme);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":2162,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2162"}],"parameters":[{"id":828,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"reference","target":1110,"name":"Theme","package":"@tauri-apps/api"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onThemeChanged"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onThemeChanged"}},{"id":836,"name":"once","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":386,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L386"}],"signatures":[{"id":837,"name":"once","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to an one-off event.\nSee "},{"kind":"inline-tag","tag":"@link","text":"`listen`","target":831,"tsLinkText":"`listen`"},{"kind":"text","text":" for more information."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst unlisten = await appWindow.once('initialized', (event) => {\n console.log(`Window initialized!`);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"},{"kind":"text","text":"\n\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event."}]}]},"sources":[{"fileName":"window.ts","line":386,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L386"}],"typeParameter":[{"id":838,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":839,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":840,"name":"handler","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event handler."}]},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.once"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.once"}},{"id":687,"name":"outerPosition","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":525,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L525"}],"signatures":[{"id":688,"name":"outerPosition","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"The position of the top-left hand corner of the window relative to the top-left hand corner of the desktop."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst position = await appWindow.outerPosition();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window's outer position."}]}]},"sources":[{"fileName":"window.ts","line":525,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L525"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1090,"name":"PhysicalPosition","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.outerPosition"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.outerPosition"}},{"id":691,"name":"outerSize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":577,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L577"}],"signatures":[{"id":692,"name":"outerSize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"The physical size of the entire window.\nThese dimensions include the title bar and borders. If you don't want that (and you usually don't), use inner_size instead."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst size = await appWindow.outerSize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window's outer size."}]}]},"sources":[{"fileName":"window.ts","line":577,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L577"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1071,"name":"PhysicalSize","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.outerSize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.outerSize"}},{"id":719,"name":"requestUserAttention","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":962,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L962"}],"signatures":[{"id":720,"name":"requestUserAttention","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Requests user attention to the window, this has no effect if the application\nis already focused. How requesting for user attention manifests is platform dependent,\nsee "},{"kind":"code","text":"`UserAttentionType`"},{"kind":"text","text":" for details.\n\nProviding "},{"kind":"code","text":"`null`"},{"kind":"text","text":" will unset the request for user attention. Unsetting the request for\nuser attention might not be done automatically by the WM when the window receives input.\n\n#### Platform-specific\n\n- **macOS:** "},{"kind":"code","text":"`null`"},{"kind":"text","text":" has no effect.\n- **Linux:** Urgency levels have the same effect."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.requestUserAttention();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":962,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L962"}],"parameters":[{"id":721,"name":"requestType","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"reference","target":1101,"name":"UserAttentionType","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.requestUserAttention"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.requestUserAttention"}},{"id":683,"name":"scaleFactor","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":475,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L475"}],"signatures":[{"id":684,"name":"scaleFactor","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"The scale factor that can be used to map physical pixels to logical pixels."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst factor = await appWindow.scaleFactor();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window's monitor scale factor."}]}]},"sources":[{"fileName":"window.ts","line":475,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L475"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"number"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.scaleFactor"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.scaleFactor"}},{"id":756,"name":"setAlwaysOnTop","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1379,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1379"}],"signatures":[{"id":757,"name":"setAlwaysOnTop","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window should always be on top of other windows."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setAlwaysOnTop(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1379,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1379"}],"parameters":[{"id":758,"name":"alwaysOnTop","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window should always be on top of other windows or not."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setAlwaysOnTop"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setAlwaysOnTop"}},{"id":731,"name":"setClosable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1098,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1098"}],"signatures":[{"id":732,"name":"setClosable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets whether the window's native close button is enabled or not.\n\n#### Platform-specific\n\n- **Linux:** GTK+ will do its best to convince the window manager not to show a close button. Depending on the system, this function may not have any effect when called on a window that is already visible\n- **iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setClosable(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1098,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1098"}],"parameters":[{"id":733,"name":"closable","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setClosable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setClosable"}},{"id":759,"name":"setContentProtected","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1407,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1407"}],"signatures":[{"id":760,"name":"setContentProtected","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Prevents the window contents from being captured by other apps."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setContentProtected(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"window.ts","line":1407,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1407"}],"parameters":[{"id":761,"name":"protected_","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setContentProtected"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setContentProtected"}},{"id":785,"name":"setCursorGrab","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1727,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1727"}],"signatures":[{"id":786,"name":"setCursorGrab","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Grabs the cursor, preventing it from leaving the window.\n\nThere's no guarantee that the cursor will be hidden. You should\nhide it by yourself if you want so.\n\n#### Platform-specific\n\n- **Linux:** Unsupported.\n- **macOS:** This locks the cursor in a fixed location, which looks visually awkward."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setCursorGrab(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1727,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1727"}],"parameters":[{"id":787,"name":"grab","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"code","text":"`true`"},{"kind":"text","text":" to grab the cursor icon, "},{"kind":"code","text":"`false`"},{"kind":"text","text":" to release it."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorGrab"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorGrab"}},{"id":791,"name":"setCursorIcon","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1787,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1787"}],"signatures":[{"id":792,"name":"setCursorIcon","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Modifies the cursor icon of the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setCursorIcon('help');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1787,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1787"}],"parameters":[{"id":793,"name":"icon","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new cursor icon."}]},"type":{"type":"reference","target":671,"name":"CursorIcon","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorIcon"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorIcon"}},{"id":794,"name":"setCursorPosition","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1814,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1814"}],"signatures":[{"id":795,"name":"setCursorPosition","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Changes the position of the cursor in window coordinates."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow, LogicalPosition } from '@tauri-apps/api/window';\nawait appWindow.setCursorPosition(new LogicalPosition(600, 300));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1814,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1814"}],"parameters":[{"id":796,"name":"position","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new cursor position."}]},"type":{"type":"union","types":[{"type":"reference","target":1090,"name":"PhysicalPosition","package":"@tauri-apps/api"},{"type":"reference","target":1082,"name":"LogicalPosition","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorPosition"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorPosition"}},{"id":788,"name":"setCursorVisible","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1760,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1760"}],"signatures":[{"id":789,"name":"setCursorVisible","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Modifies the cursor's visibility.\n\n#### Platform-specific\n\n- **Windows:** The cursor is only hidden within the confines of the window.\n- **macOS:** The cursor is hidden as long as the window has input focus, even if the cursor is\n outside of the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setCursorVisible(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1760,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1760"}],"parameters":[{"id":790,"name":"visible","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"If "},{"kind":"code","text":"`false`"},{"kind":"text","text":", this will hide the cursor. If "},{"kind":"code","text":"`true`"},{"kind":"text","text":", this will show the cursor."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorVisible"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorVisible"}},{"id":753,"name":"setDecorations","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1352,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1352"}],"signatures":[{"id":754,"name":"setDecorations","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window should have borders and bars."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setDecorations(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1352,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1352"}],"parameters":[{"id":755,"name":"decorations","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window should have borders and bars."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setDecorations"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setDecorations"}},{"id":777,"name":"setFocus","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1625,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1625"}],"signatures":[{"id":778,"name":"setFocus","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Bring the window to front and focus."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setFocus();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1625,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1625"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setFocus"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setFocus"}},{"id":774,"name":"setFullscreen","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1599,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1599"}],"signatures":[{"id":775,"name":"setFullscreen","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window fullscreen state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setFullscreen(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1599,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1599"}],"parameters":[{"id":776,"name":"fullscreen","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window should go to fullscreen or not."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setFullscreen"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setFullscreen"}},{"id":779,"name":"setIcon","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1658,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1658"}],"signatures":[{"id":780,"name":"setIcon","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window icon."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setIcon('/tauri/awesome.png');\n```"},{"kind":"text","text":"\n\nNote that you need the "},{"kind":"code","text":"`icon-ico`"},{"kind":"text","text":" or "},{"kind":"code","text":"`icon-png`"},{"kind":"text","text":" Cargo features to use this API.\nTo enable it, change your Cargo.toml file:\n"},{"kind":"code","text":"```toml\n[dependencies]\ntauri = { version = \"...\", features = [\"...\", \"icon-png\"] }\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1658,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1658"}],"parameters":[{"id":781,"name":"icon","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Icon bytes or path to the icon file."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Uint8Array"},"name":"Uint8Array","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setIcon"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setIcon"}},{"id":797,"name":"setIgnoreCursorEvents","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1858,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1858"}],"signatures":[{"id":798,"name":"setIgnoreCursorEvents","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Changes the cursor events behavior."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setIgnoreCursorEvents(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1858,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1858"}],"parameters":[{"id":799,"name":"ignore","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"code","text":"`true`"},{"kind":"text","text":" to ignore the cursor events; "},{"kind":"code","text":"`false`"},{"kind":"text","text":" to process them as usual."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setIgnoreCursorEvents"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setIgnoreCursorEvents"}},{"id":768,"name":"setMaxSize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1514,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1514"}],"signatures":[{"id":769,"name":"setMaxSize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window maximum inner size. If the "},{"kind":"code","text":"`size`"},{"kind":"text","text":" argument is undefined, the constraint is unset."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow, LogicalSize } from '@tauri-apps/api/window';\nawait appWindow.setMaxSize(new LogicalSize(600, 500));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1514,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1514"}],"parameters":[{"id":770,"name":"size","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The logical or physical inner size, or "},{"kind":"code","text":"`null`"},{"kind":"text","text":" to unset the constraint."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"undefined"},{"type":"literal","value":null},{"type":"reference","target":1071,"name":"PhysicalSize","package":"@tauri-apps/api"},{"type":"reference","target":1063,"name":"LogicalSize","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMaxSize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMaxSize"}},{"id":725,"name":"setMaximizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1033,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1033"}],"signatures":[{"id":726,"name":"setMaximizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets whether the window's native maximize button is enabled or not.\nIf resizable is set to false, this setting is ignored.\n\n#### Platform-specific\n\n- **macOS:** Disables the \"zoom\" button in the window titlebar, which is also used to enter fullscreen mode.\n- **Linux / iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setMaximizable(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1033,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1033"}],"parameters":[{"id":727,"name":"maximizable","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMaximizable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMaximizable"}},{"id":765,"name":"setMinSize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1472,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1472"}],"signatures":[{"id":766,"name":"setMinSize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window minimum inner size. If the "},{"kind":"code","text":"`size`"},{"kind":"text","text":" argument is not provided, the constraint is unset."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow, PhysicalSize } from '@tauri-apps/api/window';\nawait appWindow.setMinSize(new PhysicalSize(600, 500));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1472,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1472"}],"parameters":[{"id":767,"name":"size","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The logical or physical inner size, or "},{"kind":"code","text":"`null`"},{"kind":"text","text":" to unset the constraint."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"undefined"},{"type":"literal","value":null},{"type":"reference","target":1071,"name":"PhysicalSize","package":"@tauri-apps/api"},{"type":"reference","target":1063,"name":"LogicalSize","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMinSize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMinSize"}},{"id":728,"name":"setMinimizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1065,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1065"}],"signatures":[{"id":729,"name":"setMinimizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets whether the window's native minimize button is enabled or not.\n\n#### Platform-specific\n\n- **Linux / iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setMinimizable(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1065,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1065"}],"parameters":[{"id":730,"name":"minimizable","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMinimizable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMinimizable"}},{"id":771,"name":"setPosition","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1556,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1556"}],"signatures":[{"id":772,"name":"setPosition","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window outer position."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow, LogicalPosition } from '@tauri-apps/api/window';\nawait appWindow.setPosition(new LogicalPosition(600, 500));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1556,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1556"}],"parameters":[{"id":773,"name":"position","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new position, in logical or physical pixels."}]},"type":{"type":"union","types":[{"type":"reference","target":1090,"name":"PhysicalPosition","package":"@tauri-apps/api"},{"type":"reference","target":1082,"name":"LogicalPosition","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setPosition"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setPosition"}},{"id":722,"name":"setResizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":999,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L999"}],"signatures":[{"id":723,"name":"setResizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Updates the window resizable flag."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setResizable(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":999,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L999"}],"parameters":[{"id":724,"name":"resizable","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setResizable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setResizable"}},{"id":762,"name":"setSize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1434,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1434"}],"signatures":[{"id":763,"name":"setSize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Resizes the window with a new inner size."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow, LogicalSize } from '@tauri-apps/api/window';\nawait appWindow.setSize(new LogicalSize(600, 500));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1434,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1434"}],"parameters":[{"id":764,"name":"size","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The logical or physical inner size."}]},"type":{"type":"union","types":[{"type":"reference","target":1071,"name":"PhysicalSize","package":"@tauri-apps/api"},{"type":"reference","target":1063,"name":"LogicalSize","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setSize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setSize"}},{"id":782,"name":"setSkipTaskbar","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1692,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1692"}],"signatures":[{"id":783,"name":"setSkipTaskbar","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window icon should be hidden from the taskbar or not.\n\n#### Platform-specific\n\n- **macOS:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setSkipTaskbar(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1692,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1692"}],"parameters":[{"id":784,"name":"skip","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"true to hide window icon, false to show it."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setSkipTaskbar"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setSkipTaskbar"}},{"id":734,"name":"setTitle","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1125,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1125"}],"signatures":[{"id":735,"name":"setTitle","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window title."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setTitle('Tauri');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1125,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1125"}],"parameters":[{"id":736,"name":"title","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new title"}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setTitle"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setTitle"}},{"id":747,"name":"show","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1276,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1276"}],"signatures":[{"id":748,"name":"show","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window visibility to true."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.show();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1276,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1276"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.show"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.show"}},{"id":800,"name":"startDragging","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1884,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1884"}],"signatures":[{"id":801,"name":"startDragging","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Starts dragging the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.startDragging();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1884,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1884"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.startDragging"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.startDragging"}},{"id":715,"name":"theme","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":899,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L899"}],"signatures":[{"id":716,"name":"theme","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current theme.\n\n#### Platform-specific\n\n- **macOS:** Theme was introduced on macOS 10.14. Returns "},{"kind":"code","text":"`light`"},{"kind":"text","text":" on macOS 10.13 and below."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst theme = await appWindow.theme();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window theme."}]}]},"sources":[{"fileName":"window.ts","line":899,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L899"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"literal","value":null},{"type":"reference","target":1110,"name":"Theme","package":"@tauri-apps/api"}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.theme"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.theme"}},{"id":713,"name":"title","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":869,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L869"}],"signatures":[{"id":714,"name":"title","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current title."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst title = await appWindow.title();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.3.0"}]}]},"sources":[{"fileName":"window.ts","line":869,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L869"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.title"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.title"}},{"id":741,"name":"toggleMaximize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1201,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1201"}],"signatures":[{"id":742,"name":"toggleMaximize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Toggles the window maximized state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.toggleMaximize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1201,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1201"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.toggleMaximize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.toggleMaximize"}},{"id":739,"name":"unmaximize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1176,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1176"}],"signatures":[{"id":740,"name":"unmaximize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Unmaximizes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.unmaximize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1176,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1176"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.unmaximize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.unmaximize"}},{"id":745,"name":"unminimize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1251,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1251"}],"signatures":[{"id":746,"name":"unminimize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Unminimizes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.unminimize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1251,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1251"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.unminimize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.unminimize"}},{"id":674,"name":"getByLabel","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"window.ts","line":2279,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2279"}],"signatures":[{"id":675,"name":"getByLabel","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the WebviewWindow for the webview associated with the given label."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { WebviewWindow } from '@tauri-apps/api/window';\nconst mainWindow = WebviewWindow.getByLabel('main');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The WebviewWindow instance to communicate with the webview or null if the webview doesn't exist."}]}]},"sources":[{"fileName":"window.ts","line":2279,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2279"}],"parameters":[{"id":676,"name":"label","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The webview window label."}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"reference","target":673,"name":"WebviewWindow","package":"@tauri-apps/api"}]}}]},{"id":677,"name":"getFocusedWindow","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"window.ts","line":2299,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2299"}],"signatures":[{"id":678,"name":"getFocusedWindow","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the focused window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { WebviewWindow } from '@tauri-apps/api/window';\nconst focusedWindow = WebviewWindow.getFocusedWindow();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The WebviewWindow instance to communicate with the webview or "},{"kind":"code","text":"`undefined`"},{"kind":"text","text":" if there is not any focused window."}]},{"tag":"@since","content":[{"kind":"text","text":"1.4"}]}]},"sources":[{"fileName":"window.ts","line":2299,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2299"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"literal","value":null},{"type":"reference","target":673,"name":"WebviewWindow","package":"@tauri-apps/api"}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Constructors","children":[679]},{"title":"Properties","children":[829,830]},{"title":"Methods","children":[717,751,841,749,685,689,709,701,699,693,705,697,707,695,703,711,831,737,743,808,823,814,820,805,802,817,826,836,687,691,719,683,756,731,759,785,791,794,788,753,777,774,779,797,768,725,765,728,771,722,762,782,734,747,800,715,713,741,739,745,674,677]}],"sources":[{"fileName":"window.ts","line":2227,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2227"}],"extendedTypes":[{"type":"reference","target":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager"},"name":"WindowManager","package":"@tauri-apps/api"}]},{"id":1112,"name":"Monitor","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Allows you to retrieve information about a given monitor."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":1113,"name":"name","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Human-readable name of the monitor"}]},"sources":[{"fileName":"window.ts","line":83,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L83"}],"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"intrinsic","name":"string"}]}},{"id":1115,"name":"position","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"the Top-left corner position of the monitor relative to the larger full screen area."}]},"sources":[{"fileName":"window.ts","line":87,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L87"}],"type":{"type":"reference","target":1090,"name":"PhysicalPosition","package":"@tauri-apps/api"}},{"id":1116,"name":"scaleFactor","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The scale factor that can be used to map physical pixels to logical pixels."}]},"sources":[{"fileName":"window.ts","line":89,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L89"}],"type":{"type":"intrinsic","name":"number"}},{"id":1114,"name":"size","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The monitor's resolution."}]},"sources":[{"fileName":"window.ts","line":85,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L85"}],"type":{"type":"reference","target":1071,"name":"PhysicalSize","package":"@tauri-apps/api"}}],"groups":[{"title":"Properties","children":[1113,1115,1116,1114]}],"sources":[{"fileName":"window.ts","line":81,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L81"}]},{"id":1117,"name":"ScaleFactorChanged","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"The payload for the "},{"kind":"code","text":"`scaleChange`"},{"kind":"text","text":" event."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"children":[{"id":1118,"name":"scaleFactor","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new window scale factor."}]},"sources":[{"fileName":"window.ts","line":99,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L99"}],"type":{"type":"intrinsic","name":"number"}},{"id":1119,"name":"size","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new window size"}]},"sources":[{"fileName":"window.ts","line":101,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L101"}],"type":{"type":"reference","target":1071,"name":"PhysicalSize","package":"@tauri-apps/api"}}],"groups":[{"title":"Properties","children":[1118,1119]}],"sources":[{"fileName":"window.ts","line":97,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L97"}]},{"id":1129,"name":"WindowOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Configuration for the window to create."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":1155,"name":"acceptFirstMouse","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether clicking an inactive window also clicks through to the webview on macOS."}]},"sources":[{"fileName":"window.ts","line":2410,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2410"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1148,"name":"alwaysOnTop","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window should always be on top of other windows or not."}]},"sources":[{"fileName":"window.ts","line":2382,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2382"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1131,"name":"center","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Show window in the center of the screen.."}]},"sources":[{"fileName":"window.ts","line":2344,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2344"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1160,"name":"closable","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window's native close button is enabled or not. Defaults to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"window.ts","line":2433,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2433"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1149,"name":"contentProtected","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Prevents the window contents from being captured by other apps."}]},"sources":[{"fileName":"window.ts","line":2384,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2384"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1147,"name":"decorations","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window should have borders and bars or not."}]},"sources":[{"fileName":"window.ts","line":2380,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2380"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1151,"name":"fileDropEnabled","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the file drop is enabled or not on the webview. By default it is enabled.\n\nDisabling it is required to use drag and drop on the frontend on Windows."}]},"sources":[{"fileName":"window.ts","line":2392,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2392"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1143,"name":"focus","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window will be initially focused or not."}]},"sources":[{"fileName":"window.ts","line":2368,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2368"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1142,"name":"fullscreen","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window is in fullscreen mode or not."}]},"sources":[{"fileName":"window.ts","line":2366,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2366"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1135,"name":"height","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The initial height."}]},"sources":[{"fileName":"window.ts","line":2352,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2352"}],"type":{"type":"intrinsic","name":"number"}},{"id":1154,"name":"hiddenTitle","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"If "},{"kind":"code","text":"`true`"},{"kind":"text","text":", sets the window title to be hidden on macOS."}]},"sources":[{"fileName":"window.ts","line":2406,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2406"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1139,"name":"maxHeight","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The maximum height. Only applies if "},{"kind":"code","text":"`maxWidth`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2360,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2360"}],"type":{"type":"intrinsic","name":"number"}},{"id":1138,"name":"maxWidth","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The maximum width. Only applies if "},{"kind":"code","text":"`maxHeight`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2358,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2358"}],"type":{"type":"intrinsic","name":"number"}},{"id":1158,"name":"maximizable","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window's native maximize button is enabled or not. Defaults to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"window.ts","line":2425,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2425"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1145,"name":"maximized","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window should be maximized upon creation or not."}]},"sources":[{"fileName":"window.ts","line":2376,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2376"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1137,"name":"minHeight","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The minimum height. Only applies if "},{"kind":"code","text":"`minWidth`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2356,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2356"}],"type":{"type":"intrinsic","name":"number"}},{"id":1136,"name":"minWidth","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The minimum width. Only applies if "},{"kind":"code","text":"`minHeight`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2354,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2354"}],"type":{"type":"intrinsic","name":"number"}},{"id":1159,"name":"minimizable","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window's native minimize button is enabled or not. Defaults to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"window.ts","line":2429,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2429"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1140,"name":"resizable","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window is resizable or not."}]},"sources":[{"fileName":"window.ts","line":2362,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2362"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1150,"name":"skipTaskbar","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether or not the window icon should be added to the taskbar."}]},"sources":[{"fileName":"window.ts","line":2386,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2386"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1156,"name":"tabbingIdentifier","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Defines the window [tabbing identifier](https://developer.apple.com/documentation/appkit/nswindow/1644704-tabbingidentifier) on macOS.\n\nWindows with the same tabbing identifier will be grouped together.\nIf the tabbing identifier is not set, automatic tabbing will be disabled."}]},"sources":[{"fileName":"window.ts","line":2417,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2417"}],"type":{"type":"intrinsic","name":"string"}},{"id":1152,"name":"theme","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The initial window theme. Defaults to the system theme.\n\nOnly implemented on Windows and macOS 10.14+."}]},"sources":[{"fileName":"window.ts","line":2398,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2398"}],"type":{"type":"reference","target":1110,"name":"Theme","package":"@tauri-apps/api"}},{"id":1141,"name":"title","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Window title."}]},"sources":[{"fileName":"window.ts","line":2364,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2364"}],"type":{"type":"intrinsic","name":"string"}},{"id":1153,"name":"titleBarStyle","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The style of the macOS title bar."}]},"sources":[{"fileName":"window.ts","line":2402,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2402"}],"type":{"type":"reference","target":1111,"name":"TitleBarStyle","package":"@tauri-apps/api"}},{"id":1144,"name":"transparent","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window is transparent or not.\nNote that on "},{"kind":"code","text":"`macOS`"},{"kind":"text","text":" this requires the "},{"kind":"code","text":"`macos-private-api`"},{"kind":"text","text":" feature flag, enabled under "},{"kind":"code","text":"`tauri.conf.json > tauri > macOSPrivateApi`"},{"kind":"text","text":".\nWARNING: Using private APIs on "},{"kind":"code","text":"`macOS`"},{"kind":"text","text":" prevents your application from being accepted to the "},{"kind":"code","text":"`App Store`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"window.ts","line":2374,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2374"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1130,"name":"url","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Remote URL or local file path to open.\n\n- URL such as "},{"kind":"code","text":"`https://github.com/tauri-apps`"},{"kind":"text","text":" is opened directly on a Tauri window.\n- data: URL such as "},{"kind":"code","text":"`data:text/html,...`"},{"kind":"text","text":" is only supported with the "},{"kind":"code","text":"`window-data-url`"},{"kind":"text","text":" Cargo feature for the "},{"kind":"code","text":"`tauri`"},{"kind":"text","text":" dependency.\n- local file path or route such as "},{"kind":"code","text":"`/path/to/page.html`"},{"kind":"text","text":" or "},{"kind":"code","text":"`/users`"},{"kind":"text","text":" is appended to the application URL (the devServer URL on development, or "},{"kind":"code","text":"`tauri://localhost/`"},{"kind":"text","text":" and "},{"kind":"code","text":"`https://tauri.localhost/`"},{"kind":"text","text":" on production)."}]},"sources":[{"fileName":"window.ts","line":2342,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2342"}],"type":{"type":"intrinsic","name":"string"}},{"id":1157,"name":"userAgent","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The user agent for the webview."}]},"sources":[{"fileName":"window.ts","line":2421,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2421"}],"type":{"type":"intrinsic","name":"string"}},{"id":1146,"name":"visible","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window should be immediately visible upon creation or not."}]},"sources":[{"fileName":"window.ts","line":2378,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2378"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1134,"name":"width","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The initial width."}]},"sources":[{"fileName":"window.ts","line":2350,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2350"}],"type":{"type":"intrinsic","name":"number"}},{"id":1132,"name":"x","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The initial vertical position. Only applies if "},{"kind":"code","text":"`y`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2346,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2346"}],"type":{"type":"intrinsic","name":"number"}},{"id":1133,"name":"y","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The initial horizontal position. Only applies if "},{"kind":"code","text":"`x`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2348,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2348"}],"type":{"type":"intrinsic","name":"number"}}],"groups":[{"title":"Properties","children":[1155,1148,1131,1160,1149,1147,1151,1143,1142,1135,1154,1139,1138,1158,1145,1137,1136,1159,1140,1150,1156,1152,1141,1153,1144,1130,1157,1146,1134,1132,1133]}],"sources":[{"fileName":"window.ts","line":2334,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2334"}]},{"id":671,"name":"CursorIcon","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"window.ts","line":237,"character":12,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L237"}],"type":{"type":"union","types":[{"type":"literal","value":"default"},{"type":"literal","value":"crosshair"},{"type":"literal","value":"hand"},{"type":"literal","value":"arrow"},{"type":"literal","value":"move"},{"type":"literal","value":"text"},{"type":"literal","value":"wait"},{"type":"literal","value":"help"},{"type":"literal","value":"progress"},{"type":"literal","value":"notAllowed"},{"type":"literal","value":"contextMenu"},{"type":"literal","value":"cell"},{"type":"literal","value":"verticalText"},{"type":"literal","value":"alias"},{"type":"literal","value":"copy"},{"type":"literal","value":"noDrop"},{"type":"literal","value":"grab"},{"type":"literal","value":"grabbing"},{"type":"literal","value":"allScroll"},{"type":"literal","value":"zoomIn"},{"type":"literal","value":"zoomOut"},{"type":"literal","value":"eResize"},{"type":"literal","value":"nResize"},{"type":"literal","value":"neResize"},{"type":"literal","value":"nwResize"},{"type":"literal","value":"sResize"},{"type":"literal","value":"seResize"},{"type":"literal","value":"swResize"},{"type":"literal","value":"wResize"},{"type":"literal","value":"ewResize"},{"type":"literal","value":"nsResize"},{"type":"literal","value":"neswResize"},{"type":"literal","value":"nwseResize"},{"type":"literal","value":"colResize"},{"type":"literal","value":"rowResize"}]}},{"id":1120,"name":"FileDropEvent","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[{"kind":"text","text":"The file drop event types."}]},"sources":[{"fileName":"window.ts","line":105,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L105"}],"type":{"type":"union","types":[{"type":"reflection","declaration":{"id":1121,"name":"__type","variant":"declaration","kind":65536,"flags":{},"children":[{"id":1123,"name":"paths","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":106,"character":21,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L106"}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}},{"id":1122,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":106,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L106"}],"type":{"type":"literal","value":"hover"}}],"groups":[{"title":"Properties","children":[1123,1122]}],"sources":[{"fileName":"window.ts","line":106,"character":4,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L106"}]}},{"type":"reflection","declaration":{"id":1124,"name":"__type","variant":"declaration","kind":65536,"flags":{},"children":[{"id":1126,"name":"paths","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":107,"character":20,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L107"}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}},{"id":1125,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":107,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L107"}],"type":{"type":"literal","value":"drop"}}],"groups":[{"title":"Properties","children":[1126,1125]}],"sources":[{"fileName":"window.ts","line":107,"character":4,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L107"}]}},{"type":"reflection","declaration":{"id":1127,"name":"__type","variant":"declaration","kind":65536,"flags":{},"children":[{"id":1128,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":108,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L108"}],"type":{"type":"literal","value":"cancel"}}],"groups":[{"title":"Properties","children":[1128]}],"sources":[{"fileName":"window.ts","line":108,"character":4,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L108"}]}}]}},{"id":1110,"name":"Theme","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"window.ts","line":73,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L73"}],"type":{"type":"union","types":[{"type":"literal","value":"light"},{"type":"literal","value":"dark"}]}},{"id":1111,"name":"TitleBarStyle","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"window.ts","line":74,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L74"}],"type":{"type":"union","types":[{"type":"literal","value":"visible"},{"type":"literal","value":"transparent"},{"type":"literal","value":"overlay"}]}},{"id":1062,"name":"appWindow","variant":"declaration","kind":32,"flags":{},"comment":{"summary":[{"kind":"text","text":"The WebviewWindow for the current window."}]},"sources":[{"fileName":"window.ts","line":2310,"character":4,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2310"}],"type":{"type":"reference","target":673,"name":"WebviewWindow","package":"@tauri-apps/api"}},{"id":1108,"name":"availableMonitors","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"window.ts","line":2515,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2515"}],"signatures":[{"id":1109,"name":"availableMonitors","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the list of all the monitors available on the system."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { availableMonitors } from '@tauri-apps/api/window';\nconst monitors = availableMonitors();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"window.ts","line":2515,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2515"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"array","elementType":{"type":"reference","target":1112,"name":"Monitor","package":"@tauri-apps/api"}}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":1104,"name":"currentMonitor","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"window.ts","line":2466,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2466"}],"signatures":[{"id":1105,"name":"currentMonitor","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the monitor on which the window currently resides.\nReturns "},{"kind":"code","text":"`null`"},{"kind":"text","text":" if current monitor can't be detected."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { currentMonitor } from '@tauri-apps/api/window';\nconst monitor = currentMonitor();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"window.ts","line":2466,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2466"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"reference","target":1112,"name":"Monitor","package":"@tauri-apps/api"},{"type":"literal","value":null}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":1060,"name":"getAll","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"window.ts","line":295,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L295"}],"signatures":[{"id":1061,"name":"getAll","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets a list of instances of "},{"kind":"code","text":"`WebviewWindow`"},{"kind":"text","text":" for all available webview windows."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"window.ts","line":295,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L295"}],"type":{"type":"array","elementType":{"type":"reference","target":673,"name":"WebviewWindow","package":"@tauri-apps/api"}}}]},{"id":1058,"name":"getCurrent","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"window.ts","line":283,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L283"}],"signatures":[{"id":1059,"name":"getCurrent","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Get an instance of "},{"kind":"code","text":"`WebviewWindow`"},{"kind":"text","text":" for the current webview window."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"window.ts","line":283,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L283"}],"type":{"type":"reference","target":673,"name":"WebviewWindow","package":"@tauri-apps/api"}}]},{"id":1106,"name":"primaryMonitor","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"window.ts","line":2491,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2491"}],"signatures":[{"id":1107,"name":"primaryMonitor","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the primary monitor of the system.\nReturns "},{"kind":"code","text":"`null`"},{"kind":"text","text":" if it can't identify any monitor as a primary one."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { primaryMonitor } from '@tauri-apps/api/window';\nconst monitor = primaryMonitor();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"window.ts","line":2491,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L2491"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"reference","target":1112,"name":"Monitor","package":"@tauri-apps/api"},{"type":"literal","value":null}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Enumerations","children":[1101]},{"title":"Classes","children":[1046,1082,1063,1090,1071,673]},{"title":"Interfaces","children":[1112,1117,1129]},{"title":"Type Aliases","children":[671,1120,1110,1111]},{"title":"Variables","children":[1062]},{"title":"Functions","children":[1108,1104,1060,1058,1106]}],"sources":[{"fileName":"window.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/1a3dcdb8/tooling/api/src/window.ts#L1"}]}],"groups":[{"title":"Modules","children":[1,12,24,30,72,107,206,227,332,346,360,377,453,459,630,648,670]}],"packageName":"@tauri-apps/api","symbolIdMap":{"1":{"sourceFileName":"src/app.ts","qualifiedName":""},"2":{"sourceFileName":"src/app.ts","qualifiedName":"getName"},"3":{"sourceFileName":"src/app.ts","qualifiedName":"getName"},"4":{"sourceFileName":"src/app.ts","qualifiedName":"getVersion"},"5":{"sourceFileName":"src/app.ts","qualifiedName":"getVersion"},"6":{"sourceFileName":"src/app.ts","qualifiedName":"getTauriVersion"},"7":{"sourceFileName":"src/app.ts","qualifiedName":"getTauriVersion"},"8":{"sourceFileName":"src/app.ts","qualifiedName":"show"},"9":{"sourceFileName":"src/app.ts","qualifiedName":"show"},"10":{"sourceFileName":"src/app.ts","qualifiedName":"hide"},"11":{"sourceFileName":"src/app.ts","qualifiedName":"hide"},"12":{"sourceFileName":"src/cli.ts","qualifiedName":""},"13":{"sourceFileName":"src/cli.ts","qualifiedName":"ArgMatch"},"14":{"sourceFileName":"src/cli.ts","qualifiedName":"ArgMatch.value"},"15":{"sourceFileName":"src/cli.ts","qualifiedName":"ArgMatch.occurrences"},"16":{"sourceFileName":"src/cli.ts","qualifiedName":"SubcommandMatch"},"17":{"sourceFileName":"src/cli.ts","qualifiedName":"SubcommandMatch.name"},"18":{"sourceFileName":"src/cli.ts","qualifiedName":"SubcommandMatch.matches"},"19":{"sourceFileName":"src/cli.ts","qualifiedName":"CliMatches"},"20":{"sourceFileName":"src/cli.ts","qualifiedName":"CliMatches.args"},"21":{"sourceFileName":"src/cli.ts","qualifiedName":"CliMatches.subcommand"},"22":{"sourceFileName":"src/cli.ts","qualifiedName":"getMatches"},"23":{"sourceFileName":"src/cli.ts","qualifiedName":"getMatches"},"24":{"sourceFileName":"src/clipboard.ts","qualifiedName":""},"25":{"sourceFileName":"src/clipboard.ts","qualifiedName":"writeText"},"26":{"sourceFileName":"src/clipboard.ts","qualifiedName":"writeText"},"27":{"sourceFileName":"src/clipboard.ts","qualifiedName":"text"},"28":{"sourceFileName":"src/clipboard.ts","qualifiedName":"readText"},"29":{"sourceFileName":"src/clipboard.ts","qualifiedName":"readText"},"30":{"sourceFileName":"src/dialog.ts","qualifiedName":""},"31":{"sourceFileName":"src/dialog.ts","qualifiedName":"DialogFilter"},"32":{"sourceFileName":"src/dialog.ts","qualifiedName":"DialogFilter.name"},"33":{"sourceFileName":"src/dialog.ts","qualifiedName":"DialogFilter.extensions"},"34":{"sourceFileName":"src/dialog.ts","qualifiedName":"OpenDialogOptions"},"35":{"sourceFileName":"src/dialog.ts","qualifiedName":"OpenDialogOptions.title"},"36":{"sourceFileName":"src/dialog.ts","qualifiedName":"OpenDialogOptions.filters"},"37":{"sourceFileName":"src/dialog.ts","qualifiedName":"OpenDialogOptions.defaultPath"},"38":{"sourceFileName":"src/dialog.ts","qualifiedName":"OpenDialogOptions.multiple"},"39":{"sourceFileName":"src/dialog.ts","qualifiedName":"OpenDialogOptions.directory"},"40":{"sourceFileName":"src/dialog.ts","qualifiedName":"OpenDialogOptions.recursive"},"41":{"sourceFileName":"src/dialog.ts","qualifiedName":"SaveDialogOptions"},"42":{"sourceFileName":"src/dialog.ts","qualifiedName":"SaveDialogOptions.title"},"43":{"sourceFileName":"src/dialog.ts","qualifiedName":"SaveDialogOptions.filters"},"44":{"sourceFileName":"src/dialog.ts","qualifiedName":"SaveDialogOptions.defaultPath"},"45":{"sourceFileName":"src/dialog.ts","qualifiedName":"MessageDialogOptions"},"46":{"sourceFileName":"src/dialog.ts","qualifiedName":"MessageDialogOptions.title"},"47":{"sourceFileName":"src/dialog.ts","qualifiedName":"MessageDialogOptions.type"},"48":{"sourceFileName":"src/dialog.ts","qualifiedName":"MessageDialogOptions.okLabel"},"49":{"sourceFileName":"src/dialog.ts","qualifiedName":"ConfirmDialogOptions"},"50":{"sourceFileName":"src/dialog.ts","qualifiedName":"ConfirmDialogOptions.title"},"51":{"sourceFileName":"src/dialog.ts","qualifiedName":"ConfirmDialogOptions.type"},"52":{"sourceFileName":"src/dialog.ts","qualifiedName":"ConfirmDialogOptions.okLabel"},"53":{"sourceFileName":"src/dialog.ts","qualifiedName":"ConfirmDialogOptions.cancelLabel"},"54":{"sourceFileName":"src/dialog.ts","qualifiedName":"open"},"55":{"sourceFileName":"src/dialog.ts","qualifiedName":"open"},"56":{"sourceFileName":"src/dialog.ts","qualifiedName":"options"},"57":{"sourceFileName":"src/dialog.ts","qualifiedName":"save"},"58":{"sourceFileName":"src/dialog.ts","qualifiedName":"save"},"59":{"sourceFileName":"src/dialog.ts","qualifiedName":"options"},"60":{"sourceFileName":"src/dialog.ts","qualifiedName":"message"},"61":{"sourceFileName":"src/dialog.ts","qualifiedName":"message"},"62":{"sourceFileName":"src/dialog.ts","qualifiedName":"message"},"63":{"sourceFileName":"src/dialog.ts","qualifiedName":"options"},"64":{"sourceFileName":"src/dialog.ts","qualifiedName":"ask"},"65":{"sourceFileName":"src/dialog.ts","qualifiedName":"ask"},"66":{"sourceFileName":"src/dialog.ts","qualifiedName":"message"},"67":{"sourceFileName":"src/dialog.ts","qualifiedName":"options"},"68":{"sourceFileName":"src/dialog.ts","qualifiedName":"confirm"},"69":{"sourceFileName":"src/dialog.ts","qualifiedName":"confirm"},"70":{"sourceFileName":"src/dialog.ts","qualifiedName":"message"},"71":{"sourceFileName":"src/dialog.ts","qualifiedName":"options"},"72":{"sourceFileName":"src/event.ts","qualifiedName":""},"73":{"sourceFileName":"src/event.ts","qualifiedName":"EventName"},"74":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent"},"75":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_RESIZED"},"76":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_MOVED"},"77":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_CLOSE_REQUESTED"},"78":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_CREATED"},"79":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_DESTROYED"},"80":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_FOCUS"},"81":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_BLUR"},"82":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_SCALE_FACTOR_CHANGED"},"83":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_THEME_CHANGED"},"84":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_FILE_DROP"},"85":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_FILE_DROP_HOVER"},"86":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_FILE_DROP_CANCELLED"},"87":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.MENU"},"88":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.CHECK_UPDATE"},"89":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.UPDATE_AVAILABLE"},"90":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.INSTALL_UPDATE"},"91":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.STATUS_UPDATE"},"92":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.DOWNLOAD_PROGRESS"},"93":{"sourceFileName":"src/event.ts","qualifiedName":"listen"},"94":{"sourceFileName":"src/event.ts","qualifiedName":"listen"},"95":{"sourceFileName":"src/event.ts","qualifiedName":"T"},"96":{"sourceFileName":"src/event.ts","qualifiedName":"event"},"97":{"sourceFileName":"src/event.ts","qualifiedName":"handler"},"98":{"sourceFileName":"src/event.ts","qualifiedName":"once"},"99":{"sourceFileName":"src/event.ts","qualifiedName":"once"},"100":{"sourceFileName":"src/event.ts","qualifiedName":"T"},"101":{"sourceFileName":"src/event.ts","qualifiedName":"event"},"102":{"sourceFileName":"src/event.ts","qualifiedName":"handler"},"103":{"sourceFileName":"src/event.ts","qualifiedName":"emit"},"104":{"sourceFileName":"src/event.ts","qualifiedName":"emit"},"105":{"sourceFileName":"src/event.ts","qualifiedName":"event"},"106":{"sourceFileName":"src/event.ts","qualifiedName":"payload"},"107":{"sourceFileName":"src/fs.ts","qualifiedName":""},"108":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory"},"109":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Audio"},"110":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Cache"},"111":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Config"},"112":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Data"},"113":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.LocalData"},"114":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Desktop"},"115":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Document"},"116":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Download"},"117":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Executable"},"118":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Font"},"119":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Home"},"120":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Picture"},"121":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Public"},"122":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Runtime"},"123":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Template"},"124":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Video"},"125":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Resource"},"126":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.App"},"127":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Log"},"128":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Temp"},"129":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.AppConfig"},"130":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.AppData"},"131":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.AppLocalData"},"132":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.AppCache"},"133":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.AppLog"},"134":{"sourceFileName":"src/fs.ts","qualifiedName":"FsOptions"},"135":{"sourceFileName":"src/fs.ts","qualifiedName":"FsOptions.dir"},"136":{"sourceFileName":"src/fs.ts","qualifiedName":"FsDirOptions"},"137":{"sourceFileName":"src/fs.ts","qualifiedName":"FsDirOptions.dir"},"138":{"sourceFileName":"src/fs.ts","qualifiedName":"FsDirOptions.recursive"},"139":{"sourceFileName":"src/fs.ts","qualifiedName":"FsTextFileOption"},"140":{"sourceFileName":"src/fs.ts","qualifiedName":"FsTextFileOption.path"},"141":{"sourceFileName":"src/fs.ts","qualifiedName":"FsTextFileOption.contents"},"142":{"sourceFileName":"src/fs.ts","qualifiedName":"BinaryFileContents"},"143":{"sourceFileName":"src/fs.ts","qualifiedName":"FsBinaryFileOption"},"144":{"sourceFileName":"src/fs.ts","qualifiedName":"FsBinaryFileOption.path"},"145":{"sourceFileName":"src/fs.ts","qualifiedName":"FsBinaryFileOption.contents"},"146":{"sourceFileName":"src/fs.ts","qualifiedName":"FileEntry"},"147":{"sourceFileName":"src/fs.ts","qualifiedName":"FileEntry.path"},"148":{"sourceFileName":"src/fs.ts","qualifiedName":"FileEntry.name"},"149":{"sourceFileName":"src/fs.ts","qualifiedName":"FileEntry.children"},"150":{"sourceFileName":"src/fs.ts","qualifiedName":"Dir"},"151":{"sourceFileName":"src/fs.ts","qualifiedName":"readTextFile"},"152":{"sourceFileName":"src/fs.ts","qualifiedName":"readTextFile"},"153":{"sourceFileName":"src/fs.ts","qualifiedName":"filePath"},"154":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"155":{"sourceFileName":"src/fs.ts","qualifiedName":"readBinaryFile"},"156":{"sourceFileName":"src/fs.ts","qualifiedName":"readBinaryFile"},"157":{"sourceFileName":"src/fs.ts","qualifiedName":"filePath"},"158":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"159":{"sourceFileName":"src/fs.ts","qualifiedName":"writeTextFile"},"160":{"sourceFileName":"src/fs.ts","qualifiedName":"writeTextFile"},"161":{"sourceFileName":"src/fs.ts","qualifiedName":"path"},"162":{"sourceFileName":"src/fs.ts","qualifiedName":"contents"},"163":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"164":{"sourceFileName":"src/fs.ts","qualifiedName":"writeTextFile"},"165":{"sourceFileName":"src/fs.ts","qualifiedName":"file"},"166":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"167":{"sourceFileName":"src/fs.ts","qualifiedName":"writeFile"},"168":{"sourceFileName":"src/fs.ts","qualifiedName":"writeBinaryFile"},"169":{"sourceFileName":"src/fs.ts","qualifiedName":"writeBinaryFile"},"170":{"sourceFileName":"src/fs.ts","qualifiedName":"path"},"171":{"sourceFileName":"src/fs.ts","qualifiedName":"contents"},"172":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"173":{"sourceFileName":"src/fs.ts","qualifiedName":"writeBinaryFile"},"174":{"sourceFileName":"src/fs.ts","qualifiedName":"file"},"175":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"176":{"sourceFileName":"src/fs.ts","qualifiedName":"readDir"},"177":{"sourceFileName":"src/fs.ts","qualifiedName":"readDir"},"178":{"sourceFileName":"src/fs.ts","qualifiedName":"dir"},"179":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"180":{"sourceFileName":"src/fs.ts","qualifiedName":"createDir"},"181":{"sourceFileName":"src/fs.ts","qualifiedName":"createDir"},"182":{"sourceFileName":"src/fs.ts","qualifiedName":"dir"},"183":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"184":{"sourceFileName":"src/fs.ts","qualifiedName":"removeDir"},"185":{"sourceFileName":"src/fs.ts","qualifiedName":"removeDir"},"186":{"sourceFileName":"src/fs.ts","qualifiedName":"dir"},"187":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"188":{"sourceFileName":"src/fs.ts","qualifiedName":"copyFile"},"189":{"sourceFileName":"src/fs.ts","qualifiedName":"copyFile"},"190":{"sourceFileName":"src/fs.ts","qualifiedName":"source"},"191":{"sourceFileName":"src/fs.ts","qualifiedName":"destination"},"192":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"193":{"sourceFileName":"src/fs.ts","qualifiedName":"removeFile"},"194":{"sourceFileName":"src/fs.ts","qualifiedName":"removeFile"},"195":{"sourceFileName":"src/fs.ts","qualifiedName":"file"},"196":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"197":{"sourceFileName":"src/fs.ts","qualifiedName":"renameFile"},"198":{"sourceFileName":"src/fs.ts","qualifiedName":"renameFile"},"199":{"sourceFileName":"src/fs.ts","qualifiedName":"oldPath"},"200":{"sourceFileName":"src/fs.ts","qualifiedName":"newPath"},"201":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"202":{"sourceFileName":"src/fs.ts","qualifiedName":"exists"},"203":{"sourceFileName":"src/fs.ts","qualifiedName":"exists"},"204":{"sourceFileName":"src/fs.ts","qualifiedName":"path"},"205":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"206":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":""},"207":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"ShortcutHandler"},"208":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"__type"},"209":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"__type"},"210":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"shortcut"},"211":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"register"},"212":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"register"},"213":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"shortcut"},"214":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"handler"},"215":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"registerAll"},"216":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"registerAll"},"217":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"shortcuts"},"218":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"handler"},"219":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"isRegistered"},"220":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"isRegistered"},"221":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"shortcut"},"222":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"unregister"},"223":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"unregister"},"224":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"shortcut"},"225":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"unregisterAll"},"226":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"unregisterAll"},"227":{"sourceFileName":"src/http.ts","qualifiedName":""},"228":{"sourceFileName":"src/http.ts","qualifiedName":"Duration"},"229":{"sourceFileName":"src/http.ts","qualifiedName":"Duration.secs"},"230":{"sourceFileName":"src/http.ts","qualifiedName":"Duration.nanos"},"231":{"sourceFileName":"src/http.ts","qualifiedName":"ClientOptions"},"232":{"sourceFileName":"src/http.ts","qualifiedName":"ClientOptions.maxRedirections"},"233":{"sourceFileName":"src/http.ts","qualifiedName":"ClientOptions.connectTimeout"},"234":{"sourceFileName":"src/http.ts","qualifiedName":"Part"},"235":{"sourceFileName":"src/http.ts","qualifiedName":"HttpVerb"},"236":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions"},"237":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions.method"},"238":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions.url"},"239":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions.headers"},"240":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions.query"},"241":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions.body"},"242":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions.timeout"},"243":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions.responseType"},"244":{"sourceFileName":"src/http.ts","qualifiedName":"RequestOptions"},"245":{"sourceFileName":"src/http.ts","qualifiedName":"FetchOptions"},"246":{"sourceFileName":"src/http.ts","qualifiedName":"getClient"},"247":{"sourceFileName":"src/http.ts","qualifiedName":"getClient"},"248":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"249":{"sourceFileName":"src/http.ts","qualifiedName":"fetch"},"250":{"sourceFileName":"src/http.ts","qualifiedName":"fetch"},"251":{"sourceFileName":"src/http.ts","qualifiedName":"T"},"252":{"sourceFileName":"src/http.ts","qualifiedName":"url"},"253":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"254":{"sourceFileName":"src/http.ts","qualifiedName":"Body"},"255":{"sourceFileName":"src/http.ts","qualifiedName":"Body.form"},"256":{"sourceFileName":"src/http.ts","qualifiedName":"Body.form"},"257":{"sourceFileName":"src/http.ts","qualifiedName":"data"},"258":{"sourceFileName":"src/http.ts","qualifiedName":"Body.json"},"259":{"sourceFileName":"src/http.ts","qualifiedName":"Body.json"},"260":{"sourceFileName":"src/http.ts","qualifiedName":"data"},"261":{"sourceFileName":"src/http.ts","qualifiedName":"Body.text"},"262":{"sourceFileName":"src/http.ts","qualifiedName":"Body.text"},"263":{"sourceFileName":"src/http.ts","qualifiedName":"value"},"264":{"sourceFileName":"src/http.ts","qualifiedName":"Body.bytes"},"265":{"sourceFileName":"src/http.ts","qualifiedName":"Body.bytes"},"266":{"sourceFileName":"src/http.ts","qualifiedName":"bytes"},"271":{"sourceFileName":"src/http.ts","qualifiedName":"Body.type"},"272":{"sourceFileName":"src/http.ts","qualifiedName":"Body.payload"},"273":{"sourceFileName":"src/http.ts","qualifiedName":"Client"},"277":{"sourceFileName":"src/http.ts","qualifiedName":"Client.id"},"278":{"sourceFileName":"src/http.ts","qualifiedName":"Client.drop"},"279":{"sourceFileName":"src/http.ts","qualifiedName":"Client.drop"},"280":{"sourceFileName":"src/http.ts","qualifiedName":"Client.request"},"281":{"sourceFileName":"src/http.ts","qualifiedName":"Client.request"},"282":{"sourceFileName":"src/http.ts","qualifiedName":"T"},"283":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"284":{"sourceFileName":"src/http.ts","qualifiedName":"Client.get"},"285":{"sourceFileName":"src/http.ts","qualifiedName":"Client.get"},"286":{"sourceFileName":"src/http.ts","qualifiedName":"T"},"287":{"sourceFileName":"src/http.ts","qualifiedName":"url"},"288":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"289":{"sourceFileName":"src/http.ts","qualifiedName":"Client.post"},"290":{"sourceFileName":"src/http.ts","qualifiedName":"Client.post"},"291":{"sourceFileName":"src/http.ts","qualifiedName":"T"},"292":{"sourceFileName":"src/http.ts","qualifiedName":"url"},"293":{"sourceFileName":"src/http.ts","qualifiedName":"body"},"294":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"295":{"sourceFileName":"src/http.ts","qualifiedName":"Client.put"},"296":{"sourceFileName":"src/http.ts","qualifiedName":"Client.put"},"297":{"sourceFileName":"src/http.ts","qualifiedName":"T"},"298":{"sourceFileName":"src/http.ts","qualifiedName":"url"},"299":{"sourceFileName":"src/http.ts","qualifiedName":"body"},"300":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"301":{"sourceFileName":"src/http.ts","qualifiedName":"Client.patch"},"302":{"sourceFileName":"src/http.ts","qualifiedName":"Client.patch"},"303":{"sourceFileName":"src/http.ts","qualifiedName":"T"},"304":{"sourceFileName":"src/http.ts","qualifiedName":"url"},"305":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"306":{"sourceFileName":"src/http.ts","qualifiedName":"Client.delete"},"307":{"sourceFileName":"src/http.ts","qualifiedName":"Client.delete"},"308":{"sourceFileName":"src/http.ts","qualifiedName":"T"},"309":{"sourceFileName":"src/http.ts","qualifiedName":"url"},"310":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"311":{"sourceFileName":"src/http.ts","qualifiedName":"Response"},"316":{"sourceFileName":"src/http.ts","qualifiedName":"Response.url"},"317":{"sourceFileName":"src/http.ts","qualifiedName":"Response.status"},"318":{"sourceFileName":"src/http.ts","qualifiedName":"Response.ok"},"319":{"sourceFileName":"src/http.ts","qualifiedName":"Response.headers"},"320":{"sourceFileName":"src/http.ts","qualifiedName":"Response.rawHeaders"},"321":{"sourceFileName":"src/http.ts","qualifiedName":"Response.data"},"322":{"sourceFileName":"src/http.ts","qualifiedName":"Response.T"},"323":{"sourceFileName":"src/http.ts","qualifiedName":"ResponseType"},"324":{"sourceFileName":"src/http.ts","qualifiedName":"ResponseType.JSON"},"325":{"sourceFileName":"src/http.ts","qualifiedName":"ResponseType.Text"},"326":{"sourceFileName":"src/http.ts","qualifiedName":"ResponseType.Binary"},"327":{"sourceFileName":"src/http.ts","qualifiedName":"FilePart"},"328":{"sourceFileName":"src/http.ts","qualifiedName":"FilePart.file"},"329":{"sourceFileName":"src/http.ts","qualifiedName":"FilePart.mime"},"330":{"sourceFileName":"src/http.ts","qualifiedName":"FilePart.fileName"},"331":{"sourceFileName":"src/http.ts","qualifiedName":"FilePart.T"},"332":{"sourceFileName":"src/mocks.ts","qualifiedName":""},"333":{"sourceFileName":"src/mocks.ts","qualifiedName":"mockIPC"},"334":{"sourceFileName":"src/mocks.ts","qualifiedName":"mockIPC"},"335":{"sourceFileName":"src/mocks.ts","qualifiedName":"cb"},"336":{"sourceFileName":"src/mocks.ts","qualifiedName":"__type"},"337":{"sourceFileName":"src/mocks.ts","qualifiedName":"__type"},"338":{"sourceFileName":"src/mocks.ts","qualifiedName":"cmd"},"339":{"sourceFileName":"src/mocks.ts","qualifiedName":"args"},"340":{"sourceFileName":"src/mocks.ts","qualifiedName":"mockWindows"},"341":{"sourceFileName":"src/mocks.ts","qualifiedName":"mockWindows"},"342":{"sourceFileName":"src/mocks.ts","qualifiedName":"current"},"343":{"sourceFileName":"src/mocks.ts","qualifiedName":"additionalWindows"},"344":{"sourceFileName":"src/mocks.ts","qualifiedName":"clearMocks"},"345":{"sourceFileName":"src/mocks.ts","qualifiedName":"clearMocks"},"346":{"sourceFileName":"src/notification.ts","qualifiedName":""},"347":{"sourceFileName":"src/notification.ts","qualifiedName":"Options"},"348":{"sourceFileName":"src/notification.ts","qualifiedName":"Options.title"},"349":{"sourceFileName":"src/notification.ts","qualifiedName":"Options.body"},"350":{"sourceFileName":"src/notification.ts","qualifiedName":"Options.icon"},"351":{"sourceFileName":"src/notification.ts","qualifiedName":"Options.sound"},"352":{"sourceFileName":"src/notification.ts","qualifiedName":"Permission"},"353":{"sourceFileName":"src/notification.ts","qualifiedName":"sendNotification"},"354":{"sourceFileName":"src/notification.ts","qualifiedName":"sendNotification"},"355":{"sourceFileName":"src/notification.ts","qualifiedName":"options"},"356":{"sourceFileName":"src/notification.ts","qualifiedName":"requestPermission"},"357":{"sourceFileName":"src/notification.ts","qualifiedName":"requestPermission"},"358":{"sourceFileName":"src/notification.ts","qualifiedName":"isPermissionGranted"},"359":{"sourceFileName":"src/notification.ts","qualifiedName":"isPermissionGranted"},"360":{"sourceFileName":"src/os.ts","qualifiedName":""},"361":{"sourceFileName":"src/os.ts","qualifiedName":"EOL"},"362":{"sourceFileName":"src/os.ts","qualifiedName":"platform"},"363":{"sourceFileName":"src/os.ts","qualifiedName":"platform"},"364":{"sourceFileName":"src/os.ts","qualifiedName":"version"},"365":{"sourceFileName":"src/os.ts","qualifiedName":"version"},"366":{"sourceFileName":"src/os.ts","qualifiedName":"type"},"367":{"sourceFileName":"src/os.ts","qualifiedName":"type"},"368":{"sourceFileName":"src/os.ts","qualifiedName":"arch"},"369":{"sourceFileName":"src/os.ts","qualifiedName":"arch"},"370":{"sourceFileName":"src/os.ts","qualifiedName":"tempdir"},"371":{"sourceFileName":"src/os.ts","qualifiedName":"tempdir"},"372":{"sourceFileName":"src/os.ts","qualifiedName":"locale"},"373":{"sourceFileName":"src/os.ts","qualifiedName":"locale"},"374":{"sourceFileName":"src/os.ts","qualifiedName":"Platform"},"375":{"sourceFileName":"src/os.ts","qualifiedName":"OsType"},"376":{"sourceFileName":"src/os.ts","qualifiedName":"Arch"},"377":{"sourceFileName":"src/path.ts","qualifiedName":""},"378":{"sourceFileName":"src/path.ts","qualifiedName":"appDir"},"379":{"sourceFileName":"src/path.ts","qualifiedName":"appDir"},"380":{"sourceFileName":"src/path.ts","qualifiedName":"appConfigDir"},"381":{"sourceFileName":"src/path.ts","qualifiedName":"appConfigDir"},"382":{"sourceFileName":"src/path.ts","qualifiedName":"appDataDir"},"383":{"sourceFileName":"src/path.ts","qualifiedName":"appDataDir"},"384":{"sourceFileName":"src/path.ts","qualifiedName":"appLocalDataDir"},"385":{"sourceFileName":"src/path.ts","qualifiedName":"appLocalDataDir"},"386":{"sourceFileName":"src/path.ts","qualifiedName":"appCacheDir"},"387":{"sourceFileName":"src/path.ts","qualifiedName":"appCacheDir"},"388":{"sourceFileName":"src/path.ts","qualifiedName":"appLogDir"},"389":{"sourceFileName":"src/path.ts","qualifiedName":"appLogDir"},"390":{"sourceFileName":"src/path.ts","qualifiedName":"audioDir"},"391":{"sourceFileName":"src/path.ts","qualifiedName":"audioDir"},"392":{"sourceFileName":"src/path.ts","qualifiedName":"cacheDir"},"393":{"sourceFileName":"src/path.ts","qualifiedName":"cacheDir"},"394":{"sourceFileName":"src/path.ts","qualifiedName":"configDir"},"395":{"sourceFileName":"src/path.ts","qualifiedName":"configDir"},"396":{"sourceFileName":"src/path.ts","qualifiedName":"dataDir"},"397":{"sourceFileName":"src/path.ts","qualifiedName":"dataDir"},"398":{"sourceFileName":"src/path.ts","qualifiedName":"desktopDir"},"399":{"sourceFileName":"src/path.ts","qualifiedName":"desktopDir"},"400":{"sourceFileName":"src/path.ts","qualifiedName":"documentDir"},"401":{"sourceFileName":"src/path.ts","qualifiedName":"documentDir"},"402":{"sourceFileName":"src/path.ts","qualifiedName":"downloadDir"},"403":{"sourceFileName":"src/path.ts","qualifiedName":"downloadDir"},"404":{"sourceFileName":"src/path.ts","qualifiedName":"executableDir"},"405":{"sourceFileName":"src/path.ts","qualifiedName":"executableDir"},"406":{"sourceFileName":"src/path.ts","qualifiedName":"fontDir"},"407":{"sourceFileName":"src/path.ts","qualifiedName":"fontDir"},"408":{"sourceFileName":"src/path.ts","qualifiedName":"homeDir"},"409":{"sourceFileName":"src/path.ts","qualifiedName":"homeDir"},"410":{"sourceFileName":"src/path.ts","qualifiedName":"localDataDir"},"411":{"sourceFileName":"src/path.ts","qualifiedName":"localDataDir"},"412":{"sourceFileName":"src/path.ts","qualifiedName":"pictureDir"},"413":{"sourceFileName":"src/path.ts","qualifiedName":"pictureDir"},"414":{"sourceFileName":"src/path.ts","qualifiedName":"publicDir"},"415":{"sourceFileName":"src/path.ts","qualifiedName":"publicDir"},"416":{"sourceFileName":"src/path.ts","qualifiedName":"resourceDir"},"417":{"sourceFileName":"src/path.ts","qualifiedName":"resourceDir"},"418":{"sourceFileName":"src/path.ts","qualifiedName":"resolveResource"},"419":{"sourceFileName":"src/path.ts","qualifiedName":"resolveResource"},"420":{"sourceFileName":"src/path.ts","qualifiedName":"resourcePath"},"421":{"sourceFileName":"src/path.ts","qualifiedName":"runtimeDir"},"422":{"sourceFileName":"src/path.ts","qualifiedName":"runtimeDir"},"423":{"sourceFileName":"src/path.ts","qualifiedName":"templateDir"},"424":{"sourceFileName":"src/path.ts","qualifiedName":"templateDir"},"425":{"sourceFileName":"src/path.ts","qualifiedName":"videoDir"},"426":{"sourceFileName":"src/path.ts","qualifiedName":"videoDir"},"427":{"sourceFileName":"src/path.ts","qualifiedName":"logDir"},"428":{"sourceFileName":"src/path.ts","qualifiedName":"logDir"},"429":{"sourceFileName":"src/path.ts","qualifiedName":"sep"},"430":{"sourceFileName":"src/path.ts","qualifiedName":"delimiter"},"431":{"sourceFileName":"src/path.ts","qualifiedName":"resolve"},"432":{"sourceFileName":"src/path.ts","qualifiedName":"resolve"},"433":{"sourceFileName":"src/path.ts","qualifiedName":"paths"},"434":{"sourceFileName":"src/path.ts","qualifiedName":"normalize"},"435":{"sourceFileName":"src/path.ts","qualifiedName":"normalize"},"436":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"437":{"sourceFileName":"src/path.ts","qualifiedName":"join"},"438":{"sourceFileName":"src/path.ts","qualifiedName":"join"},"439":{"sourceFileName":"src/path.ts","qualifiedName":"paths"},"440":{"sourceFileName":"src/path.ts","qualifiedName":"dirname"},"441":{"sourceFileName":"src/path.ts","qualifiedName":"dirname"},"442":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"443":{"sourceFileName":"src/path.ts","qualifiedName":"extname"},"444":{"sourceFileName":"src/path.ts","qualifiedName":"extname"},"445":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"446":{"sourceFileName":"src/path.ts","qualifiedName":"basename"},"447":{"sourceFileName":"src/path.ts","qualifiedName":"basename"},"448":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"449":{"sourceFileName":"src/path.ts","qualifiedName":"ext"},"450":{"sourceFileName":"src/path.ts","qualifiedName":"isAbsolute"},"451":{"sourceFileName":"src/path.ts","qualifiedName":"isAbsolute"},"452":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"453":{"sourceFileName":"src/process.ts","qualifiedName":""},"454":{"sourceFileName":"src/process.ts","qualifiedName":"exit"},"455":{"sourceFileName":"src/process.ts","qualifiedName":"exit"},"456":{"sourceFileName":"src/process.ts","qualifiedName":"exitCode"},"457":{"sourceFileName":"src/process.ts","qualifiedName":"relaunch"},"458":{"sourceFileName":"src/process.ts","qualifiedName":"relaunch"},"459":{"sourceFileName":"src/shell.ts","qualifiedName":""},"460":{"sourceFileName":"src/shell.ts","qualifiedName":"Command"},"461":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.sidecar"},"462":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.sidecar"},"463":{"sourceFileName":"src/shell.ts","qualifiedName":"program"},"464":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"465":{"sourceFileName":"src/shell.ts","qualifiedName":"options"},"466":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.__constructor"},"467":{"sourceFileName":"src/shell.ts","qualifiedName":"Command"},"468":{"sourceFileName":"src/shell.ts","qualifiedName":"program"},"469":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"470":{"sourceFileName":"src/shell.ts","qualifiedName":"options"},"474":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.stdout"},"475":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.stderr"},"476":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.spawn"},"477":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.spawn"},"478":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.execute"},"479":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.execute"},"480":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.addListener"},"481":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.addListener"},"482":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"483":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"484":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"485":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"486":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"487":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeListener"},"488":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeListener"},"489":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"490":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"491":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"492":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"493":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"494":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.on"},"495":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.on"},"496":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"497":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"498":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"499":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"500":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"501":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.once"},"502":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.once"},"503":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"504":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"505":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"506":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"507":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"508":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.off"},"509":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.off"},"510":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"511":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"512":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"513":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"514":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"515":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeAllListeners"},"516":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeAllListeners"},"517":{"sourceFileName":"src/shell.ts","qualifiedName":"event"},"522":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.listenerCount"},"523":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.listenerCount"},"524":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"525":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependListener"},"526":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependListener"},"527":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"528":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"529":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"530":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"531":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"532":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependOnceListener"},"533":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependOnceListener"},"534":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"535":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"536":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"537":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"538":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"539":{"sourceFileName":"src/shell.ts","qualifiedName":"Child"},"540":{"sourceFileName":"src/shell.ts","qualifiedName":"Child.__constructor"},"541":{"sourceFileName":"src/shell.ts","qualifiedName":"Child"},"542":{"sourceFileName":"src/shell.ts","qualifiedName":"pid"},"543":{"sourceFileName":"src/shell.ts","qualifiedName":"Child.pid"},"544":{"sourceFileName":"src/shell.ts","qualifiedName":"Child.write"},"545":{"sourceFileName":"src/shell.ts","qualifiedName":"Child.write"},"546":{"sourceFileName":"src/shell.ts","qualifiedName":"data"},"547":{"sourceFileName":"src/shell.ts","qualifiedName":"Child.kill"},"548":{"sourceFileName":"src/shell.ts","qualifiedName":"Child.kill"},"549":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter"},"552":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.E"},"557":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.addListener"},"558":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.addListener"},"559":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"560":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"561":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"562":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"563":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"564":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeListener"},"565":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeListener"},"566":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"567":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"568":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"569":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"570":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"571":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.on"},"572":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.on"},"573":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"574":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"575":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"576":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"577":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"578":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.once"},"579":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.once"},"580":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"581":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"582":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"583":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"584":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"585":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.off"},"586":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.off"},"587":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"588":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"589":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"590":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"591":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"592":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeAllListeners"},"593":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeAllListeners"},"594":{"sourceFileName":"src/shell.ts","qualifiedName":"event"},"599":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.listenerCount"},"600":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.listenerCount"},"601":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"602":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependListener"},"603":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependListener"},"604":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"605":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"606":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"607":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"608":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"609":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependOnceListener"},"610":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependOnceListener"},"611":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"612":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"613":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"614":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"615":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"616":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.E"},"617":{"sourceFileName":"src/shell.ts","qualifiedName":"open"},"618":{"sourceFileName":"src/shell.ts","qualifiedName":"open"},"619":{"sourceFileName":"src/shell.ts","qualifiedName":"path"},"620":{"sourceFileName":"src/shell.ts","qualifiedName":"openWith"},"621":{"sourceFileName":"src/shell.ts","qualifiedName":"ChildProcess"},"622":{"sourceFileName":"src/shell.ts","qualifiedName":"ChildProcess.code"},"623":{"sourceFileName":"src/shell.ts","qualifiedName":"ChildProcess.signal"},"624":{"sourceFileName":"src/shell.ts","qualifiedName":"ChildProcess.stdout"},"625":{"sourceFileName":"src/shell.ts","qualifiedName":"ChildProcess.stderr"},"626":{"sourceFileName":"src/shell.ts","qualifiedName":"SpawnOptions"},"627":{"sourceFileName":"src/shell.ts","qualifiedName":"SpawnOptions.cwd"},"628":{"sourceFileName":"src/shell.ts","qualifiedName":"SpawnOptions.env"},"629":{"sourceFileName":"src/shell.ts","qualifiedName":"SpawnOptions.encoding"},"630":{"sourceFileName":"src/tauri.ts","qualifiedName":""},"631":{"sourceFileName":"src/tauri.ts","qualifiedName":"InvokeArgs"},"632":{"sourceFileName":"src/tauri.ts","qualifiedName":"transformCallback"},"633":{"sourceFileName":"src/tauri.ts","qualifiedName":"transformCallback"},"634":{"sourceFileName":"src/tauri.ts","qualifiedName":"callback"},"635":{"sourceFileName":"src/tauri.ts","qualifiedName":"__type"},"636":{"sourceFileName":"src/tauri.ts","qualifiedName":"__type"},"637":{"sourceFileName":"src/tauri.ts","qualifiedName":"response"},"638":{"sourceFileName":"src/tauri.ts","qualifiedName":"once"},"639":{"sourceFileName":"src/tauri.ts","qualifiedName":"invoke"},"640":{"sourceFileName":"src/tauri.ts","qualifiedName":"invoke"},"641":{"sourceFileName":"src/tauri.ts","qualifiedName":"T"},"642":{"sourceFileName":"src/tauri.ts","qualifiedName":"cmd"},"643":{"sourceFileName":"src/tauri.ts","qualifiedName":"args"},"644":{"sourceFileName":"src/tauri.ts","qualifiedName":"convertFileSrc"},"645":{"sourceFileName":"src/tauri.ts","qualifiedName":"convertFileSrc"},"646":{"sourceFileName":"src/tauri.ts","qualifiedName":"filePath"},"647":{"sourceFileName":"src/tauri.ts","qualifiedName":"protocol"},"648":{"sourceFileName":"src/updater.ts","qualifiedName":""},"649":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateStatus"},"650":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateStatusResult"},"651":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateStatusResult.error"},"652":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateStatusResult.status"},"653":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateManifest"},"654":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateManifest.version"},"655":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateManifest.date"},"656":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateManifest.body"},"657":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateResult"},"658":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateResult.manifest"},"659":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateResult.shouldUpdate"},"660":{"sourceFileName":"src/updater.ts","qualifiedName":"onUpdaterEvent"},"661":{"sourceFileName":"src/updater.ts","qualifiedName":"onUpdaterEvent"},"662":{"sourceFileName":"src/updater.ts","qualifiedName":"handler"},"663":{"sourceFileName":"src/updater.ts","qualifiedName":"__type"},"664":{"sourceFileName":"src/updater.ts","qualifiedName":"__type"},"665":{"sourceFileName":"src/updater.ts","qualifiedName":"status"},"666":{"sourceFileName":"src/updater.ts","qualifiedName":"installUpdate"},"667":{"sourceFileName":"src/updater.ts","qualifiedName":"installUpdate"},"668":{"sourceFileName":"src/updater.ts","qualifiedName":"checkUpdate"},"669":{"sourceFileName":"src/updater.ts","qualifiedName":"checkUpdate"},"670":{"sourceFileName":"src/window.ts","qualifiedName":""},"671":{"sourceFileName":"src/window.ts","qualifiedName":"CursorIcon"},"673":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindow"},"674":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindow.getByLabel"},"675":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindow.getByLabel"},"676":{"sourceFileName":"src/window.ts","qualifiedName":"label"},"677":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindow.getFocusedWindow"},"678":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindow.getFocusedWindow"},"679":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindow.__constructor"},"680":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindow"},"681":{"sourceFileName":"src/window.ts","qualifiedName":"label"},"682":{"sourceFileName":"src/window.ts","qualifiedName":"options"},"683":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.scaleFactor"},"684":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.scaleFactor"},"685":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.innerPosition"},"686":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.innerPosition"},"687":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.outerPosition"},"688":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.outerPosition"},"689":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.innerSize"},"690":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.innerSize"},"691":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.outerSize"},"692":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.outerSize"},"693":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isFullscreen"},"694":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isFullscreen"},"695":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMinimized"},"696":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMinimized"},"697":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMaximized"},"698":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMaximized"},"699":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isFocused"},"700":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isFocused"},"701":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isDecorated"},"702":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isDecorated"},"703":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isResizable"},"704":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isResizable"},"705":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMaximizable"},"706":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMaximizable"},"707":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMinimizable"},"708":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMinimizable"},"709":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isClosable"},"710":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isClosable"},"711":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isVisible"},"712":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isVisible"},"713":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.title"},"714":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.title"},"715":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.theme"},"716":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.theme"},"717":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.center"},"718":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.center"},"719":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.requestUserAttention"},"720":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.requestUserAttention"},"721":{"sourceFileName":"src/window.ts","qualifiedName":"requestType"},"722":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setResizable"},"723":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setResizable"},"724":{"sourceFileName":"src/window.ts","qualifiedName":"resizable"},"725":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMaximizable"},"726":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMaximizable"},"727":{"sourceFileName":"src/window.ts","qualifiedName":"maximizable"},"728":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMinimizable"},"729":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMinimizable"},"730":{"sourceFileName":"src/window.ts","qualifiedName":"minimizable"},"731":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setClosable"},"732":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setClosable"},"733":{"sourceFileName":"src/window.ts","qualifiedName":"closable"},"734":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setTitle"},"735":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setTitle"},"736":{"sourceFileName":"src/window.ts","qualifiedName":"title"},"737":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.maximize"},"738":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.maximize"},"739":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.unmaximize"},"740":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.unmaximize"},"741":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.toggleMaximize"},"742":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.toggleMaximize"},"743":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.minimize"},"744":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.minimize"},"745":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.unminimize"},"746":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.unminimize"},"747":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.show"},"748":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.show"},"749":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.hide"},"750":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.hide"},"751":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.close"},"752":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.close"},"753":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setDecorations"},"754":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setDecorations"},"755":{"sourceFileName":"src/window.ts","qualifiedName":"decorations"},"756":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setAlwaysOnTop"},"757":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setAlwaysOnTop"},"758":{"sourceFileName":"src/window.ts","qualifiedName":"alwaysOnTop"},"759":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setContentProtected"},"760":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setContentProtected"},"761":{"sourceFileName":"src/window.ts","qualifiedName":"protected_"},"762":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setSize"},"763":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setSize"},"764":{"sourceFileName":"src/window.ts","qualifiedName":"size"},"765":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMinSize"},"766":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMinSize"},"767":{"sourceFileName":"src/window.ts","qualifiedName":"size"},"768":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMaxSize"},"769":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMaxSize"},"770":{"sourceFileName":"src/window.ts","qualifiedName":"size"},"771":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setPosition"},"772":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setPosition"},"773":{"sourceFileName":"src/window.ts","qualifiedName":"position"},"774":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setFullscreen"},"775":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setFullscreen"},"776":{"sourceFileName":"src/window.ts","qualifiedName":"fullscreen"},"777":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setFocus"},"778":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setFocus"},"779":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setIcon"},"780":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setIcon"},"781":{"sourceFileName":"src/window.ts","qualifiedName":"icon"},"782":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setSkipTaskbar"},"783":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setSkipTaskbar"},"784":{"sourceFileName":"src/window.ts","qualifiedName":"skip"},"785":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorGrab"},"786":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorGrab"},"787":{"sourceFileName":"src/window.ts","qualifiedName":"grab"},"788":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorVisible"},"789":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorVisible"},"790":{"sourceFileName":"src/window.ts","qualifiedName":"visible"},"791":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorIcon"},"792":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorIcon"},"793":{"sourceFileName":"src/window.ts","qualifiedName":"icon"},"794":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorPosition"},"795":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorPosition"},"796":{"sourceFileName":"src/window.ts","qualifiedName":"position"},"797":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setIgnoreCursorEvents"},"798":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setIgnoreCursorEvents"},"799":{"sourceFileName":"src/window.ts","qualifiedName":"ignore"},"800":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.startDragging"},"801":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.startDragging"},"802":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onResized"},"803":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onResized"},"804":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"805":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onMoved"},"806":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onMoved"},"807":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"808":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onCloseRequested"},"809":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onCloseRequested"},"810":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"811":{"sourceFileName":"src/window.ts","qualifiedName":"__type"},"812":{"sourceFileName":"src/window.ts","qualifiedName":"__type"},"813":{"sourceFileName":"src/window.ts","qualifiedName":"event"},"814":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onFocusChanged"},"815":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onFocusChanged"},"816":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"817":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onScaleChanged"},"818":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onScaleChanged"},"819":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"820":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onMenuClicked"},"821":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onMenuClicked"},"822":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"823":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onFileDropEvent"},"824":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onFileDropEvent"},"825":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"826":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onThemeChanged"},"827":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onThemeChanged"},"828":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"829":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.label"},"830":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.listeners"},"831":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.listen"},"832":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.listen"},"833":{"sourceFileName":"src/window.ts","qualifiedName":"T"},"834":{"sourceFileName":"src/window.ts","qualifiedName":"event"},"835":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"836":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.once"},"837":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.once"},"838":{"sourceFileName":"src/window.ts","qualifiedName":"T"},"839":{"sourceFileName":"src/window.ts","qualifiedName":"event"},"840":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"841":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.emit"},"842":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.emit"},"843":{"sourceFileName":"src/window.ts","qualifiedName":"event"},"844":{"sourceFileName":"src/window.ts","qualifiedName":"payload"},"1046":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent"},"1047":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.__constructor"},"1048":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent"},"1049":{"sourceFileName":"src/window.ts","qualifiedName":"event"},"1050":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.event"},"1051":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.windowLabel"},"1052":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.id"},"1053":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent._preventDefault"},"1054":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.preventDefault"},"1055":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.preventDefault"},"1056":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.isPreventDefault"},"1057":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.isPreventDefault"},"1058":{"sourceFileName":"src/window.ts","qualifiedName":"getCurrent"},"1059":{"sourceFileName":"src/window.ts","qualifiedName":"getCurrent"},"1060":{"sourceFileName":"src/window.ts","qualifiedName":"getAll"},"1061":{"sourceFileName":"src/window.ts","qualifiedName":"getAll"},"1062":{"sourceFileName":"src/window.ts","qualifiedName":"appWindow"},"1063":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalSize"},"1064":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalSize.__constructor"},"1065":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalSize"},"1066":{"sourceFileName":"src/window.ts","qualifiedName":"width"},"1067":{"sourceFileName":"src/window.ts","qualifiedName":"height"},"1068":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalSize.type"},"1069":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalSize.width"},"1070":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalSize.height"},"1071":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize"},"1072":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize.__constructor"},"1073":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize"},"1074":{"sourceFileName":"src/window.ts","qualifiedName":"width"},"1075":{"sourceFileName":"src/window.ts","qualifiedName":"height"},"1076":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize.type"},"1077":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize.width"},"1078":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize.height"},"1079":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize.toLogical"},"1080":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize.toLogical"},"1081":{"sourceFileName":"src/window.ts","qualifiedName":"scaleFactor"},"1082":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalPosition"},"1083":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalPosition.__constructor"},"1084":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalPosition"},"1085":{"sourceFileName":"src/window.ts","qualifiedName":"x"},"1086":{"sourceFileName":"src/window.ts","qualifiedName":"y"},"1087":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalPosition.type"},"1088":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalPosition.x"},"1089":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalPosition.y"},"1090":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition"},"1091":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition.__constructor"},"1092":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition"},"1093":{"sourceFileName":"src/window.ts","qualifiedName":"x"},"1094":{"sourceFileName":"src/window.ts","qualifiedName":"y"},"1095":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition.type"},"1096":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition.x"},"1097":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition.y"},"1098":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition.toLogical"},"1099":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition.toLogical"},"1100":{"sourceFileName":"src/window.ts","qualifiedName":"scaleFactor"},"1101":{"sourceFileName":"src/window.ts","qualifiedName":"UserAttentionType"},"1102":{"sourceFileName":"src/window.ts","qualifiedName":"UserAttentionType.Critical"},"1103":{"sourceFileName":"src/window.ts","qualifiedName":"UserAttentionType.Informational"},"1104":{"sourceFileName":"src/window.ts","qualifiedName":"currentMonitor"},"1105":{"sourceFileName":"src/window.ts","qualifiedName":"currentMonitor"},"1106":{"sourceFileName":"src/window.ts","qualifiedName":"primaryMonitor"},"1107":{"sourceFileName":"src/window.ts","qualifiedName":"primaryMonitor"},"1108":{"sourceFileName":"src/window.ts","qualifiedName":"availableMonitors"},"1109":{"sourceFileName":"src/window.ts","qualifiedName":"availableMonitors"},"1110":{"sourceFileName":"src/window.ts","qualifiedName":"Theme"},"1111":{"sourceFileName":"src/window.ts","qualifiedName":"TitleBarStyle"},"1112":{"sourceFileName":"src/window.ts","qualifiedName":"Monitor"},"1113":{"sourceFileName":"src/window.ts","qualifiedName":"Monitor.name"},"1114":{"sourceFileName":"src/window.ts","qualifiedName":"Monitor.size"},"1115":{"sourceFileName":"src/window.ts","qualifiedName":"Monitor.position"},"1116":{"sourceFileName":"src/window.ts","qualifiedName":"Monitor.scaleFactor"},"1117":{"sourceFileName":"src/window.ts","qualifiedName":"ScaleFactorChanged"},"1118":{"sourceFileName":"src/window.ts","qualifiedName":"ScaleFactorChanged.scaleFactor"},"1119":{"sourceFileName":"src/window.ts","qualifiedName":"ScaleFactorChanged.size"},"1120":{"sourceFileName":"src/window.ts","qualifiedName":"FileDropEvent"},"1121":{"sourceFileName":"src/window.ts","qualifiedName":"__type"},"1122":{"sourceFileName":"src/window.ts","qualifiedName":"__type.type"},"1123":{"sourceFileName":"src/window.ts","qualifiedName":"__type.paths"},"1124":{"sourceFileName":"src/window.ts","qualifiedName":"__type"},"1125":{"sourceFileName":"src/window.ts","qualifiedName":"__type.type"},"1126":{"sourceFileName":"src/window.ts","qualifiedName":"__type.paths"},"1127":{"sourceFileName":"src/window.ts","qualifiedName":"__type"},"1128":{"sourceFileName":"src/window.ts","qualifiedName":"__type.type"},"1129":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions"},"1130":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.url"},"1131":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.center"},"1132":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.x"},"1133":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.y"},"1134":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.width"},"1135":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.height"},"1136":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.minWidth"},"1137":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.minHeight"},"1138":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.maxWidth"},"1139":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.maxHeight"},"1140":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.resizable"},"1141":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.title"},"1142":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.fullscreen"},"1143":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.focus"},"1144":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.transparent"},"1145":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.maximized"},"1146":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.visible"},"1147":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.decorations"},"1148":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.alwaysOnTop"},"1149":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.contentProtected"},"1150":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.skipTaskbar"},"1151":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.fileDropEnabled"},"1152":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.theme"},"1153":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.titleBarStyle"},"1154":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.hiddenTitle"},"1155":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.acceptFirstMouse"},"1156":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.tabbingIdentifier"},"1157":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.userAgent"},"1158":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.maximizable"},"1159":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.minimizable"},"1160":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.closable"},"1161":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"Event"},"1162":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"Event.event"},"1163":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"Event.windowLabel"},"1164":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"Event.id"},"1165":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"Event.payload"},"1166":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"Event.T"},"1167":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"EventCallback"},"1168":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"__type"},"1169":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"__type"},"1170":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"event"},"1171":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"T"},"1172":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"UnlistenFn"},"1173":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"__type"},"1174":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"__type"},"1175":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory"}}} \ No newline at end of file +{"id":0,"name":"@tauri-apps/api","variant":"project","kind":1,"flags":{},"children":[{"id":1,"name":"app","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Get application metadata.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.app`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.app`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.app) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"app\": {\n \"all\": true, // enable all app APIs\n \"show\": true,\n \"hide\": true\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security."}]},"children":[{"id":2,"name":"getName","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"app.ts","line":60,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/app.ts#L60"}],"signatures":[{"id":3,"name":"getName","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the application name."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getName } from '@tauri-apps/api/app';\nconst appName = await getName();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"app.ts","line":60,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/app.ts#L60"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":6,"name":"getTauriVersion","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"app.ts","line":80,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/app.ts#L80"}],"signatures":[{"id":7,"name":"getTauriVersion","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the Tauri version."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getTauriVersion } from '@tauri-apps/api/app';\nconst tauriVersion = await getTauriVersion();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"app.ts","line":80,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/app.ts#L80"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":4,"name":"getVersion","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"app.ts","line":41,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/app.ts#L41"}],"signatures":[{"id":5,"name":"getVersion","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the application version."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getVersion } from '@tauri-apps/api/app';\nconst appVersion = await getVersion();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"app.ts","line":41,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/app.ts#L41"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":10,"name":"hide","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"app.ts","line":120,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/app.ts#L120"}],"signatures":[{"id":11,"name":"hide","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Hides the application on macOS."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { hide } from '@tauri-apps/api/app';\nawait hide();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"app.ts","line":120,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/app.ts#L120"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":8,"name":"show","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"app.ts","line":100,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/app.ts#L100"}],"signatures":[{"id":9,"name":"show","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Shows the application on macOS. This function does not automatically focus any specific app window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { show } from '@tauri-apps/api/app';\nawait show();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"app.ts","line":100,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/app.ts#L100"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Functions","children":[2,6,4,10,8]}],"sources":[{"fileName":"app.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/app.ts#L1"}]},{"id":12,"name":"cli","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Parse arguments from your Command Line Interface.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.cli`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"children":[{"id":13,"name":"ArgMatch","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":15,"name":"occurrences","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Number of occurrences"}]},"sources":[{"fileName":"cli.ts","line":27,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/cli.ts#L27"}],"type":{"type":"intrinsic","name":"number"}},{"id":14,"name":"value","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"string if takes value\nboolean if flag\nstring[] or null if takes multiple values"}]},"sources":[{"fileName":"cli.ts","line":23,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/cli.ts#L23"}],"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"boolean"},{"type":"array","elementType":{"type":"intrinsic","name":"string"}}]}}],"groups":[{"title":"Properties","children":[15,14]}],"sources":[{"fileName":"cli.ts","line":17,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/cli.ts#L17"}]},{"id":19,"name":"CliMatches","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":20,"name":"args","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"cli.ts","line":42,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/cli.ts#L42"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"reference","target":13,"name":"ArgMatch","package":"@tauri-apps/api"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}},{"id":21,"name":"subcommand","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"cli.ts","line":43,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/cli.ts#L43"}],"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"reference","target":16,"name":"SubcommandMatch","package":"@tauri-apps/api"}]}}],"groups":[{"title":"Properties","children":[20,21]}],"sources":[{"fileName":"cli.ts","line":41,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/cli.ts#L41"}]},{"id":16,"name":"SubcommandMatch","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":18,"name":"matches","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"cli.ts","line":35,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/cli.ts#L35"}],"type":{"type":"reference","target":19,"name":"CliMatches","package":"@tauri-apps/api"}},{"id":17,"name":"name","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"cli.ts","line":34,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/cli.ts#L34"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[18,17]}],"sources":[{"fileName":"cli.ts","line":33,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/cli.ts#L33"}]},{"id":22,"name":"getMatches","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"cli.ts","line":66,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/cli.ts#L66"}],"signatures":[{"id":23,"name":"getMatches","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Parse the arguments provided to the current process and get the matches using the configuration defined ["},{"kind":"code","text":"`tauri.cli`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#tauriconfig.cli) in "},{"kind":"code","text":"`tauri.conf.json`"}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getMatches } from '@tauri-apps/api/cli';\nconst matches = await getMatches();\nif (matches.subcommand?.name === 'run') {\n // `./your-app run $ARGS` was executed\n const args = matches.subcommand?.matches.args\n if ('debug' in args) {\n // `./your-app run --debug` was executed\n }\n} else {\n const args = matches.args\n // `./your-app $ARGS` was executed\n}\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"cli.ts","line":66,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/cli.ts#L66"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":19,"name":"CliMatches","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Interfaces","children":[13,19,16]},{"title":"Functions","children":[22]}],"sources":[{"fileName":"cli.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/cli.ts#L1"}]},{"id":24,"name":"clipboard","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Read and write to the system clipboard.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.clipboard`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.clipboard`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.clipboard) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"clipboard\": {\n \"all\": true, // enable all Clipboard APIs\n \"writeText\": true,\n \"readText\": true\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security."}]},"children":[{"id":28,"name":"readText","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"clipboard.ts","line":63,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/clipboard.ts#L63"}],"signatures":[{"id":29,"name":"readText","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the clipboard content as plain text."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { readText } from '@tauri-apps/api/clipboard';\nconst clipboardText = await readText();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0."}]}]},"sources":[{"fileName":"clipboard.ts","line":63,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/clipboard.ts#L63"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"literal","value":null}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":25,"name":"writeText","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"clipboard.ts","line":44,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/clipboard.ts#L44"}],"signatures":[{"id":26,"name":"writeText","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Writes plain text to the clipboard."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { writeText, readText } from '@tauri-apps/api/clipboard';\nawait writeText('Tauri is awesome!');\nassert(await readText(), 'Tauri is awesome!');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0."}]}]},"sources":[{"fileName":"clipboard.ts","line":44,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/clipboard.ts#L44"}],"parameters":[{"id":27,"name":"text","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Functions","children":[28,25]}],"sources":[{"fileName":"clipboard.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/clipboard.ts#L1"}]},{"id":30,"name":"dialog","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Native system dialogs for opening and saving files.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.dialog`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.dialog`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.dialog) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"dialog\": {\n \"all\": true, // enable all dialog APIs\n \"ask\": true, // enable dialog ask API\n \"confirm\": true, // enable dialog confirm API\n \"message\": true, // enable dialog message API\n \"open\": true, // enable file open API\n \"save\": true // enable file save API\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security."}]},"children":[{"id":49,"name":"ConfirmDialogOptions","variant":"declaration","kind":256,"flags":{},"children":[{"id":53,"name":"cancelLabel","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The label of the cancel button."}]},"sources":[{"fileName":"dialog.ts","line":112,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L112"}],"type":{"type":"intrinsic","name":"string"}},{"id":52,"name":"okLabel","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The label of the confirm button."}]},"sources":[{"fileName":"dialog.ts","line":110,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L110"}],"type":{"type":"intrinsic","name":"string"}},{"id":50,"name":"title","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The title of the dialog. Defaults to the app name."}]},"sources":[{"fileName":"dialog.ts","line":106,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L106"}],"type":{"type":"intrinsic","name":"string"}},{"id":51,"name":"type","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The type of the dialog. Defaults to "},{"kind":"code","text":"`info`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"dialog.ts","line":108,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L108"}],"type":{"type":"union","types":[{"type":"literal","value":"info"},{"type":"literal","value":"warning"},{"type":"literal","value":"error"}]}}],"groups":[{"title":"Properties","children":[53,52,50,51]}],"sources":[{"fileName":"dialog.ts","line":104,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L104"}]},{"id":31,"name":"DialogFilter","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Extension filters for the file dialog."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":33,"name":"extensions","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Extensions to filter, without a "},{"kind":"code","text":"`.`"},{"kind":"text","text":" prefix."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nextensions: ['svg', 'png']\n```"}]}]},"sources":[{"fileName":"dialog.ts","line":48,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L48"}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}},{"id":32,"name":"name","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Filter name."}]},"sources":[{"fileName":"dialog.ts","line":40,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L40"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[33,32]}],"sources":[{"fileName":"dialog.ts","line":38,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L38"}]},{"id":45,"name":"MessageDialogOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":48,"name":"okLabel","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The label of the confirm button."}]},"sources":[{"fileName":"dialog.ts","line":101,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L101"}],"type":{"type":"intrinsic","name":"string"}},{"id":46,"name":"title","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The title of the dialog. Defaults to the app name."}]},"sources":[{"fileName":"dialog.ts","line":97,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L97"}],"type":{"type":"intrinsic","name":"string"}},{"id":47,"name":"type","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The type of the dialog. Defaults to "},{"kind":"code","text":"`info`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"dialog.ts","line":99,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L99"}],"type":{"type":"union","types":[{"type":"literal","value":"info"},{"type":"literal","value":"warning"},{"type":"literal","value":"error"}]}}],"groups":[{"title":"Properties","children":[48,46,47]}],"sources":[{"fileName":"dialog.ts","line":95,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L95"}]},{"id":34,"name":"OpenDialogOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Options for the open dialog."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":37,"name":"defaultPath","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Initial directory or file path."}]},"sources":[{"fileName":"dialog.ts","line":62,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L62"}],"type":{"type":"intrinsic","name":"string"}},{"id":39,"name":"directory","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the dialog is a directory selection or not."}]},"sources":[{"fileName":"dialog.ts","line":66,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L66"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":36,"name":"filters","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The filters of the dialog."}]},"sources":[{"fileName":"dialog.ts","line":60,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L60"}],"type":{"type":"array","elementType":{"type":"reference","target":31,"name":"DialogFilter","package":"@tauri-apps/api"}}},{"id":38,"name":"multiple","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the dialog allows multiple selection or not."}]},"sources":[{"fileName":"dialog.ts","line":64,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L64"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":40,"name":"recursive","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"If "},{"kind":"code","text":"`directory`"},{"kind":"text","text":" is true, indicates that it will be read recursively later.\nDefines whether subdirectories will be allowed on the scope or not."}]},"sources":[{"fileName":"dialog.ts","line":71,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L71"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":35,"name":"title","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The title of the dialog window."}]},"sources":[{"fileName":"dialog.ts","line":58,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L58"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[37,39,36,38,40,35]}],"sources":[{"fileName":"dialog.ts","line":56,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L56"}]},{"id":41,"name":"SaveDialogOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Options for the save dialog."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":44,"name":"defaultPath","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Initial directory or file path.\nIf it's a directory path, the dialog interface will change to that folder.\nIf it's not an existing directory, the file name will be set to the dialog's file name input and the dialog will be set to the parent folder."}]},"sources":[{"fileName":"dialog.ts","line":89,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L89"}],"type":{"type":"intrinsic","name":"string"}},{"id":43,"name":"filters","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The filters of the dialog."}]},"sources":[{"fileName":"dialog.ts","line":83,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L83"}],"type":{"type":"array","elementType":{"type":"reference","target":31,"name":"DialogFilter","package":"@tauri-apps/api"}}},{"id":42,"name":"title","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The title of the dialog window."}]},"sources":[{"fileName":"dialog.ts","line":81,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L81"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[44,43,42]}],"sources":[{"fileName":"dialog.ts","line":79,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L79"}]},{"id":64,"name":"ask","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"dialog.ts","line":271,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L271"}],"signatures":[{"id":65,"name":"ask","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Shows a question dialog with "},{"kind":"code","text":"`Yes`"},{"kind":"text","text":" and "},{"kind":"code","text":"`No`"},{"kind":"text","text":" buttons."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { ask } from '@tauri-apps/api/dialog';\nconst yes = await ask('Are you sure?', 'Tauri');\nconst yes2 = await ask('This action cannot be reverted. Are you sure?', { title: 'Tauri', type: 'warning' });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a boolean indicating whether "},{"kind":"code","text":"`Yes`"},{"kind":"text","text":" was clicked or not."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"dialog.ts","line":271,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L271"}],"parameters":[{"id":66,"name":"message","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The message to show."}]},"type":{"type":"intrinsic","name":"string"}},{"id":67,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The dialog's options. If a string, it represents the dialog title."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":49,"name":"ConfirmDialogOptions","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":68,"name":"confirm","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"dialog.ts","line":307,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L307"}],"signatures":[{"id":69,"name":"confirm","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Shows a question dialog with "},{"kind":"code","text":"`Ok`"},{"kind":"text","text":" and "},{"kind":"code","text":"`Cancel`"},{"kind":"text","text":" buttons."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { confirm } from '@tauri-apps/api/dialog';\nconst confirmed = await confirm('Are you sure?', 'Tauri');\nconst confirmed2 = await confirm('This action cannot be reverted. Are you sure?', { title: 'Tauri', type: 'warning' });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a boolean indicating whether "},{"kind":"code","text":"`Ok`"},{"kind":"text","text":" was clicked or not."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"dialog.ts","line":307,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L307"}],"parameters":[{"id":70,"name":"message","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The message to show."}]},"type":{"type":"intrinsic","name":"string"}},{"id":71,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The dialog's options. If a string, it represents the dialog title."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":49,"name":"ConfirmDialogOptions","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":60,"name":"message","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"dialog.ts","line":238,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L238"}],"signatures":[{"id":61,"name":"message","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Shows a message dialog with an "},{"kind":"code","text":"`Ok`"},{"kind":"text","text":" button."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { message } from '@tauri-apps/api/dialog';\nawait message('Tauri is awesome', 'Tauri');\nawait message('File not found', { title: 'Tauri', type: 'error' });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"dialog.ts","line":238,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L238"}],"parameters":[{"id":62,"name":"message","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The message to show."}]},"type":{"type":"intrinsic","name":"string"}},{"id":63,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The dialog's options. If a string, it represents the dialog title."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":45,"name":"MessageDialogOptions","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":54,"name":"open","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"dialog.ts","line":167,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L167"}],"signatures":[{"id":55,"name":"open","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Open a file/directory selection dialog.\n\nThe selected paths are added to the filesystem and asset protocol allowlist scopes.\nWhen security is more important than the easy of use of this API,\nprefer writing a dedicated command instead.\n\nNote that the allowlist scope change is not persisted, so the values are cleared when the application is restarted.\nYou can save it to the filesystem using [tauri-plugin-persisted-scope](https://github.com/tauri-apps/tauri-plugin-persisted-scope)."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { open } from '@tauri-apps/api/dialog';\n// Open a selection dialog for image files\nconst selected = await open({\n multiple: true,\n filters: [{\n name: 'Image',\n extensions: ['png', 'jpeg']\n }]\n});\nif (Array.isArray(selected)) {\n // user selected multiple files\n} else if (selected === null) {\n // user cancelled the selection\n} else {\n // user selected a single file\n}\n```"}]},{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { open } from '@tauri-apps/api/dialog';\nimport { appDir } from '@tauri-apps/api/path';\n// Open a selection dialog for directories\nconst selected = await open({\n directory: true,\n multiple: true,\n defaultPath: await appDir(),\n});\nif (Array.isArray(selected)) {\n // user selected multiple directories\n} else if (selected === null) {\n // user cancelled the selection\n} else {\n // user selected a single directory\n}\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to the selected path(s)"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"dialog.ts","line":167,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L167"}],"parameters":[{"id":56,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":34,"name":"OpenDialogOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"literal","value":null},{"type":"intrinsic","name":"string"},{"type":"array","elementType":{"type":"intrinsic","name":"string"}}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":57,"name":"save","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"dialog.ts","line":207,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L207"}],"signatures":[{"id":58,"name":"save","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Open a file/directory save dialog.\n\nThe selected path is added to the filesystem and asset protocol allowlist scopes.\nWhen security is more important than the easy of use of this API,\nprefer writing a dedicated command instead.\n\nNote that the allowlist scope change is not persisted, so the values are cleared when the application is restarted.\nYou can save it to the filesystem using [tauri-plugin-persisted-scope](https://github.com/tauri-apps/tauri-plugin-persisted-scope)."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { save } from '@tauri-apps/api/dialog';\nconst filePath = await save({\n filters: [{\n name: 'Image',\n extensions: ['png', 'jpeg']\n }]\n});\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to the selected path."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"dialog.ts","line":207,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L207"}],"parameters":[{"id":59,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":41,"name":"SaveDialogOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"literal","value":null}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Interfaces","children":[49,31,45,34,41]},{"title":"Functions","children":[64,68,60,54,57]}],"sources":[{"fileName":"dialog.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/dialog.ts#L1"}]},{"id":72,"name":"event","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"The event system allows you to emit events to the backend and listen to events from it.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.event`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"children":[{"id":74,"name":"TauriEvent","variant":"declaration","kind":8,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"children":[{"id":88,"name":"CHECK_UPDATE","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":34,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/event.ts#L34"}],"type":{"type":"literal","value":"tauri://update"}},{"id":92,"name":"DOWNLOAD_PROGRESS","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":38,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/event.ts#L38"}],"type":{"type":"literal","value":"tauri://update-download-progress"}},{"id":90,"name":"INSTALL_UPDATE","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":36,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/event.ts#L36"}],"type":{"type":"literal","value":"tauri://update-install"}},{"id":87,"name":"MENU","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":33,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/event.ts#L33"}],"type":{"type":"literal","value":"tauri://menu"}},{"id":91,"name":"STATUS_UPDATE","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":37,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/event.ts#L37"}],"type":{"type":"literal","value":"tauri://update-status"}},{"id":89,"name":"UPDATE_AVAILABLE","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":35,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/event.ts#L35"}],"type":{"type":"literal","value":"tauri://update-available"}},{"id":81,"name":"WINDOW_BLUR","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":27,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/event.ts#L27"}],"type":{"type":"literal","value":"tauri://blur"}},{"id":77,"name":"WINDOW_CLOSE_REQUESTED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":23,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/event.ts#L23"}],"type":{"type":"literal","value":"tauri://close-requested"}},{"id":78,"name":"WINDOW_CREATED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":24,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/event.ts#L24"}],"type":{"type":"literal","value":"tauri://window-created"}},{"id":79,"name":"WINDOW_DESTROYED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":25,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/event.ts#L25"}],"type":{"type":"literal","value":"tauri://destroyed"}},{"id":84,"name":"WINDOW_FILE_DROP","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":30,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/event.ts#L30"}],"type":{"type":"literal","value":"tauri://file-drop"}},{"id":86,"name":"WINDOW_FILE_DROP_CANCELLED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":32,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/event.ts#L32"}],"type":{"type":"literal","value":"tauri://file-drop-cancelled"}},{"id":85,"name":"WINDOW_FILE_DROP_HOVER","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":31,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/event.ts#L31"}],"type":{"type":"literal","value":"tauri://file-drop-hover"}},{"id":80,"name":"WINDOW_FOCUS","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":26,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/event.ts#L26"}],"type":{"type":"literal","value":"tauri://focus"}},{"id":76,"name":"WINDOW_MOVED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":22,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/event.ts#L22"}],"type":{"type":"literal","value":"tauri://move"}},{"id":75,"name":"WINDOW_RESIZED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":21,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/event.ts#L21"}],"type":{"type":"literal","value":"tauri://resize"}},{"id":82,"name":"WINDOW_SCALE_FACTOR_CHANGED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":28,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/event.ts#L28"}],"type":{"type":"literal","value":"tauri://scale-change"}},{"id":83,"name":"WINDOW_THEME_CHANGED","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"event.ts","line":29,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/event.ts#L29"}],"type":{"type":"literal","value":"tauri://theme-changed"}}],"groups":[{"title":"Enumeration Members","children":[88,92,90,87,91,89,81,77,78,79,84,86,85,80,76,75,82,83]}],"sources":[{"fileName":"event.ts","line":20,"character":12,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/event.ts#L20"}]},{"id":1161,"name":"Event","variant":"declaration","kind":256,"flags":{},"children":[{"id":1162,"name":"event","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name"}]},"sources":[{"fileName":"helpers/event.ts","line":12,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/helpers/event.ts#L12"}],"type":{"type":"reference","target":73,"name":"EventName","package":"@tauri-apps/api"}},{"id":1164,"name":"id","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event identifier used to unlisten"}]},"sources":[{"fileName":"helpers/event.ts","line":16,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/helpers/event.ts#L16"}],"type":{"type":"intrinsic","name":"number"}},{"id":1165,"name":"payload","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event payload"}]},"sources":[{"fileName":"helpers/event.ts","line":18,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/helpers/event.ts#L18"}],"type":{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}},{"id":1163,"name":"windowLabel","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The label of the window that emitted this event."}]},"sources":[{"fileName":"helpers/event.ts","line":14,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/helpers/event.ts#L14"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[1162,1164,1165,1163]}],"sources":[{"fileName":"helpers/event.ts","line":10,"character":17,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/helpers/event.ts#L10"}],"typeParameters":[{"id":1166,"name":"T","variant":"typeParam","kind":131072,"flags":{}}]},{"id":1167,"name":"EventCallback","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"helpers/event.ts","line":21,"character":12,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/helpers/event.ts#L21"}],"typeParameters":[{"id":1171,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"type":{"type":"reflection","declaration":{"id":1168,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"helpers/event.ts","line":21,"character":31,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/helpers/event.ts#L21"}],"signatures":[{"id":1169,"name":"__type","variant":"signature","kind":4096,"flags":{},"parameters":[{"id":1170,"name":"event","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1161,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Event","package":"@tauri-apps/api"}}],"type":{"type":"intrinsic","name":"void"}}]}}},{"id":73,"name":"EventName","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"event.ts","line":15,"character":12,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/event.ts#L15"}],"type":{"type":"union","types":[{"type":"templateLiteral","head":"","tail":[[{"type":"reference","target":74,"name":"TauriEvent","package":"@tauri-apps/api"},""]]},{"type":"intersection","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"never"},{"type":"intrinsic","name":"never"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}]}]}},{"id":1172,"name":"UnlistenFn","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"helpers/event.ts","line":23,"character":12,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/helpers/event.ts#L23"}],"type":{"type":"reflection","declaration":{"id":1173,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"helpers/event.ts","line":23,"character":25,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/helpers/event.ts#L23"}],"signatures":[{"id":1174,"name":"__type","variant":"signature","kind":4096,"flags":{},"type":{"type":"intrinsic","name":"void"}}]}}},{"id":103,"name":"emit","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"event.ts","line":113,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/event.ts#L113"}],"signatures":[{"id":104,"name":"emit","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Emits an event to the backend and all Tauri windows."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { emit } from '@tauri-apps/api/event';\nawait emit('frontend-loaded', { loggedIn: true, token: 'authToken' });\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"event.ts","line":113,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/event.ts#L113"}],"parameters":[{"id":105,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":106,"name":"payload","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"intrinsic","name":"unknown"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":93,"name":"listen","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"event.ts","line":63,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/event.ts#L63"}],"signatures":[{"id":94,"name":"listen","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to an event. The event can be either global or window-specific.\nSee "},{"kind":"inline-tag","tag":"@link","text":"windowLabel","target":1163,"tsLinkText":""},{"kind":"text","text":" to check the event source."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { listen } from '@tauri-apps/api/event';\nconst unlisten = await listen('error', (event) => {\n console.log(`Got error in window ${event.windowLabel}, payload: ${event.payload}`);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"event.ts","line":63,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/event.ts#L63"}],"typeParameter":[{"id":95,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":96,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"reference","target":73,"name":"EventName","package":"@tauri-apps/api"}},{"id":97,"name":"handler","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event handler callback."}]},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":98,"name":"once","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"event.ts","line":94,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/event.ts#L94"}],"signatures":[{"id":99,"name":"once","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to an one-off event. See "},{"kind":"inline-tag","tag":"@link","text":"listen","target":93,"tsLinkText":""},{"kind":"text","text":" for more information."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { once } from '@tauri-apps/api/event';\ninterface LoadedPayload {\n loggedIn: boolean,\n token: string\n}\nconst unlisten = await once('loaded', (event) => {\n console.log(`App is loaded, loggedIn: ${event.payload.loggedIn}, token: ${event.payload.token}`);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"event.ts","line":94,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/event.ts#L94"}],"typeParameter":[{"id":100,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":101,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"reference","target":73,"name":"EventName","package":"@tauri-apps/api"}},{"id":102,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Enumerations","children":[74]},{"title":"Interfaces","children":[1161]},{"title":"Type Aliases","children":[1167,73,1172]},{"title":"Functions","children":[103,93,98]}],"sources":[{"fileName":"event.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/event.ts#L1"}]},{"id":107,"name":"fs","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Access the file system.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.fs`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.fs`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.fs) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"fs\": {\n \"all\": true, // enable all FS APIs\n \"readFile\": true,\n \"writeFile\": true,\n \"readDir\": true,\n \"copyFile\": true,\n \"createDir\": true,\n \"removeDir\": true,\n \"removeFile\": true,\n \"renameFile\": true,\n \"exists\": true\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security.\n\n## Security\n\nThis module prevents path traversal, not allowing absolute paths or parent dir components\n(i.e. \"/usr/path/to/file\" or \"../path/to/file\" paths are not allowed).\nPaths accessed with this API must be relative to one of the "},{"kind":"inline-tag","tag":"@link","text":"base directories","target":108},{"kind":"text","text":"\nso if you need access to arbitrary filesystem paths, you must write such logic on the core layer instead.\n\nThe API has a scope configuration that forces you to restrict the paths that can be accessed using glob patterns.\n\nThe scope configuration is an array of glob patterns describing folder paths that are allowed.\nFor instance, this scope configuration only allows accessing files on the\n*databases* folder of the "},{"kind":"inline-tag","tag":"@link","text":"$APPDATA directory","target":382},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"fs\": {\n \"scope\": [\"$APPDATA/databases/*\"]\n }\n }\n }\n}\n```"},{"kind":"text","text":"\n\nNotice the use of the "},{"kind":"code","text":"`$APPDATA`"},{"kind":"text","text":" variable. The value is injected at runtime, resolving to the "},{"kind":"inline-tag","tag":"@link","text":"app data directory","target":382},{"kind":"text","text":".\nThe available variables are:\n"},{"kind":"inline-tag","tag":"@link","text":"`$APPCONFIG`","target":380},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$APPDATA`","target":382},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$APPLOCALDATA`","target":384},{"kind":"text","text":",\n"},{"kind":"inline-tag","tag":"@link","text":"`$APPCACHE`","target":386},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$APPLOG`","target":388},{"kind":"text","text":",\n"},{"kind":"inline-tag","tag":"@link","text":"`$AUDIO`","target":390},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$CACHE`","target":392},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$CONFIG`","target":394},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$DATA`","target":396},{"kind":"text","text":",\n"},{"kind":"inline-tag","tag":"@link","text":"`$LOCALDATA`","target":410},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$DESKTOP`","target":398},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$DOCUMENT`","target":400},{"kind":"text","text":",\n"},{"kind":"inline-tag","tag":"@link","text":"`$DOWNLOAD`","target":402},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$EXE`","target":404},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$FONT`","target":406},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$HOME`","target":408},{"kind":"text","text":",\n"},{"kind":"inline-tag","tag":"@link","text":"`$PICTURE`","target":412},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$PUBLIC`","target":414},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$RUNTIME`","target":421},{"kind":"text","text":",\n"},{"kind":"inline-tag","tag":"@link","text":"`$TEMPLATE`","target":423},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$VIDEO`","target":425},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$RESOURCE`","target":416},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$APP`","target":378},{"kind":"text","text":",\n"},{"kind":"inline-tag","tag":"@link","text":"`$LOG`","target":427},{"kind":"text","text":", "},{"kind":"inline-tag","tag":"@link","text":"`$TEMP`","target":370},{"kind":"text","text":".\n\nTrying to execute any API with a URL not configured on the scope results in a promise rejection due to denied access.\n\nNote that this scope applies to **all** APIs on this module."}]},"children":[{"id":150,"name":"Dir","variant":"reference","kind":8388608,"flags":{},"sources":[{"fileName":"fs.ts","line":593,"character":19,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L593"}],"target":108},{"id":167,"name":"writeFile","variant":"reference","kind":8388608,"flags":{},"sources":[{"fileName":"fs.ts","line":597,"character":19,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L597"}],"target":159},{"id":108,"name":"BaseDirectory","variant":"declaration","kind":8,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":126,"name":"App","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":98,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L98"}],"type":{"type":"literal","value":18}},{"id":132,"name":"AppCache","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":104,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L104"}],"type":{"type":"literal","value":24}},{"id":129,"name":"AppConfig","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":101,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L101"}],"type":{"type":"literal","value":21}},{"id":130,"name":"AppData","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":102,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L102"}],"type":{"type":"literal","value":22}},{"id":131,"name":"AppLocalData","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":103,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L103"}],"type":{"type":"literal","value":23}},{"id":133,"name":"AppLog","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":105,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L105"}],"type":{"type":"literal","value":25}},{"id":109,"name":"Audio","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":81,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L81"}],"type":{"type":"literal","value":1}},{"id":110,"name":"Cache","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":82,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L82"}],"type":{"type":"literal","value":2}},{"id":111,"name":"Config","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":83,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L83"}],"type":{"type":"literal","value":3}},{"id":112,"name":"Data","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":84,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L84"}],"type":{"type":"literal","value":4}},{"id":114,"name":"Desktop","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":86,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L86"}],"type":{"type":"literal","value":6}},{"id":115,"name":"Document","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":87,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L87"}],"type":{"type":"literal","value":7}},{"id":116,"name":"Download","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":88,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L88"}],"type":{"type":"literal","value":8}},{"id":117,"name":"Executable","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":89,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L89"}],"type":{"type":"literal","value":9}},{"id":118,"name":"Font","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":90,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L90"}],"type":{"type":"literal","value":10}},{"id":119,"name":"Home","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":91,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L91"}],"type":{"type":"literal","value":11}},{"id":113,"name":"LocalData","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":85,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L85"}],"type":{"type":"literal","value":5}},{"id":127,"name":"Log","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":99,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L99"}],"type":{"type":"literal","value":19}},{"id":120,"name":"Picture","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":92,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L92"}],"type":{"type":"literal","value":12}},{"id":121,"name":"Public","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":93,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L93"}],"type":{"type":"literal","value":13}},{"id":125,"name":"Resource","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":97,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L97"}],"type":{"type":"literal","value":17}},{"id":122,"name":"Runtime","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":94,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L94"}],"type":{"type":"literal","value":14}},{"id":128,"name":"Temp","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":100,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L100"}],"type":{"type":"literal","value":20}},{"id":123,"name":"Template","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":95,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L95"}],"type":{"type":"literal","value":15}},{"id":124,"name":"Video","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"fs.ts","line":96,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L96"}],"type":{"type":"literal","value":16}}],"groups":[{"title":"Enumeration Members","children":[126,132,129,130,131,133,109,110,111,112,114,115,116,117,118,119,113,127,120,121,125,122,128,123,124]}],"sources":[{"fileName":"fs.ts","line":80,"character":12,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L80"}]},{"id":146,"name":"FileEntry","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":149,"name":"children","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Children of this entry if it's a directory; null otherwise"}]},"sources":[{"fileName":"fs.ts","line":161,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L161"}],"type":{"type":"array","elementType":{"type":"reference","target":146,"name":"FileEntry","package":"@tauri-apps/api"}}},{"id":148,"name":"name","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Name of the directory/file\ncan be null if the path terminates with "},{"kind":"code","text":"`..`"}]},"sources":[{"fileName":"fs.ts","line":159,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L159"}],"type":{"type":"intrinsic","name":"string"}},{"id":147,"name":"path","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"fs.ts","line":154,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L154"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[149,148,147]}],"sources":[{"fileName":"fs.ts","line":153,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L153"}]},{"id":143,"name":"FsBinaryFileOption","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Options object used to write a binary data to a file."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":145,"name":"contents","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The byte array contents."}]},"sources":[{"fileName":"fs.ts","line":147,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L147"}],"type":{"type":"reference","target":142,"name":"BinaryFileContents","package":"@tauri-apps/api"}},{"id":144,"name":"path","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Path to the file to write."}]},"sources":[{"fileName":"fs.ts","line":145,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L145"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[145,144]}],"sources":[{"fileName":"fs.ts","line":143,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L143"}]},{"id":136,"name":"FsDirOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":137,"name":"dir","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"fs.ts","line":120,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L120"}],"type":{"type":"reference","target":108,"name":"BaseDirectory","package":"@tauri-apps/api"}},{"id":138,"name":"recursive","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"fs.ts","line":121,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L121"}],"type":{"type":"intrinsic","name":"boolean"}}],"groups":[{"title":"Properties","children":[137,138]}],"sources":[{"fileName":"fs.ts","line":119,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L119"}]},{"id":134,"name":"FsOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":135,"name":"dir","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"fs.ts","line":112,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L112"}],"type":{"type":"reference","target":108,"name":"BaseDirectory","package":"@tauri-apps/api"}}],"groups":[{"title":"Properties","children":[135]}],"sources":[{"fileName":"fs.ts","line":111,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L111"}]},{"id":139,"name":"FsTextFileOption","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Options object used to write a UTF-8 string to a file."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":141,"name":"contents","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The UTF-8 string to write to the file."}]},"sources":[{"fileName":"fs.ts","line":133,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L133"}],"type":{"type":"intrinsic","name":"string"}},{"id":140,"name":"path","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Path to the file to write."}]},"sources":[{"fileName":"fs.ts","line":131,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L131"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[141,140]}],"sources":[{"fileName":"fs.ts","line":129,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L129"}]},{"id":142,"name":"BinaryFileContents","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"fs.ts","line":136,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L136"}],"type":{"type":"union","types":[{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es2015.iterable.d.ts","qualifiedName":"Iterable"},"typeArguments":[{"type":"intrinsic","name":"number"}],"name":"Iterable","package":"typescript"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"ArrayLike"},"typeArguments":[{"type":"intrinsic","name":"number"}],"name":"ArrayLike","package":"typescript"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"ArrayBuffer"},"name":"ArrayBuffer","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer"}]}},{"id":188,"name":"copyFile","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":489,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L489"}],"signatures":[{"id":189,"name":"copyFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Copies a file to a destination."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { copyFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Copy the `$APPCONFIG/app.conf` file to `$APPCONFIG/app.conf.bk`\nawait copyFile('app.conf', 'app.conf.bk', { dir: BaseDirectory.AppConfig });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":489,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L489"}],"parameters":[{"id":190,"name":"source","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":191,"name":"destination","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":192,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":180,"name":"createDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":434,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L434"}],"signatures":[{"id":181,"name":"createDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a directory.\nIf one of the path's parent components doesn't exist\nand the "},{"kind":"code","text":"`recursive`"},{"kind":"text","text":" option isn't set to true, the promise will be rejected."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { createDir, BaseDirectory } from '@tauri-apps/api/fs';\n// Create the `$APPDATA/users` directory\nawait createDir('users', { dir: BaseDirectory.AppData, recursive: true });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":434,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L434"}],"parameters":[{"id":182,"name":"dir","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":183,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":136,"name":"FsDirOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":202,"name":"exists","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":572,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L572"}],"signatures":[{"id":203,"name":"exists","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Check if a path exists."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { exists, BaseDirectory } from '@tauri-apps/api/fs';\n// Check if the `$APPDATA/avatar.png` file exists\nawait exists('avatar.png', { dir: BaseDirectory.AppData });\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"fs.ts","line":572,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L572"}],"parameters":[{"id":204,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":205,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":155,"name":"readBinaryFile","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":200,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L200"}],"signatures":[{"id":156,"name":"readBinaryFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Reads a file as byte array."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { readBinaryFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Read the image file in the `$RESOURCEDIR/avatar.png` path\nconst contents = await readBinaryFile('avatar.png', { dir: BaseDirectory.Resource });\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":200,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L200"}],"parameters":[{"id":157,"name":"filePath","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":158,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Uint8Array"},"name":"Uint8Array","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":176,"name":"readDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":405,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L405"}],"signatures":[{"id":177,"name":"readDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"List directory files."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { readDir, BaseDirectory } from '@tauri-apps/api/fs';\n// Reads the `$APPDATA/users` directory recursively\nconst entries = await readDir('users', { dir: BaseDirectory.AppData, recursive: true });\n\nfunction processEntries(entries) {\n for (const entry of entries) {\n console.log(`Entry: ${entry.path}`);\n if (entry.children) {\n processEntries(entry.children)\n }\n }\n}\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":405,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L405"}],"parameters":[{"id":178,"name":"dir","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":179,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":136,"name":"FsDirOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"array","elementType":{"type":"reference","target":146,"name":"FileEntry","package":"@tauri-apps/api"}}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":151,"name":"readTextFile","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":175,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L175"}],"signatures":[{"id":152,"name":"readTextFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Reads a file as an UTF-8 encoded string."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { readTextFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Read the text file in the `$APPCONFIG/app.conf` path\nconst contents = await readTextFile('app.conf', { dir: BaseDirectory.AppConfig });\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":175,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L175"}],"parameters":[{"id":153,"name":"filePath","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":154,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":184,"name":"removeDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":462,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L462"}],"signatures":[{"id":185,"name":"removeDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Removes a directory.\nIf the directory is not empty and the "},{"kind":"code","text":"`recursive`"},{"kind":"text","text":" option isn't set to true, the promise will be rejected."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { removeDir, BaseDirectory } from '@tauri-apps/api/fs';\n// Remove the directory `$APPDATA/users`\nawait removeDir('users', { dir: BaseDirectory.AppData });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":462,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L462"}],"parameters":[{"id":186,"name":"dir","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":187,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":136,"name":"FsDirOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":193,"name":"removeFile","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":518,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L518"}],"signatures":[{"id":194,"name":"removeFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Removes a file."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { removeFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Remove the `$APPConfig/app.conf` file\nawait removeFile('app.conf', { dir: BaseDirectory.AppConfig });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":518,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L518"}],"parameters":[{"id":195,"name":"file","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":196,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":197,"name":"renameFile","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":545,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L545"}],"signatures":[{"id":198,"name":"renameFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Renames a file."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { renameFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Rename the `$APPDATA/avatar.png` file\nawait renameFile('avatar.png', 'deleted.png', { dir: BaseDirectory.AppData });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":545,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L545"}],"parameters":[{"id":199,"name":"oldPath","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":200,"name":"newPath","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":201,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":168,"name":"writeBinaryFile","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":309,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L309"},{"fileName":"fs.ts","line":330,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L330"},{"fileName":"fs.ts","line":342,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L342"}],"signatures":[{"id":169,"name":"writeBinaryFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Writes a byte array content to a file."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { writeBinaryFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Write a binary file to the `$APPDATA/avatar.png` path\nawait writeBinaryFile('avatar.png', new Uint8Array([]), { dir: BaseDirectory.AppData });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":309,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L309"}],"parameters":[{"id":170,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":171,"name":"contents","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":142,"name":"BinaryFileContents","package":"@tauri-apps/api"}},{"id":172,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Configuration object."}]},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}},{"id":173,"name":"writeBinaryFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Writes a byte array content to a file."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { writeBinaryFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Write a binary file to the `$APPDATA/avatar.png` path\nawait writeBinaryFile({ path: 'avatar.png', contents: new Uint8Array([]) }, { dir: BaseDirectory.AppData });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":330,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L330"}],"parameters":[{"id":174,"name":"file","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The object containing the file path and contents."}]},"type":{"type":"reference","target":143,"name":"FsBinaryFileOption","package":"@tauri-apps/api"}},{"id":175,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Configuration object."}]},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":159,"name":"writeTextFile","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"fs.ts","line":227,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L227"},{"fileName":"fs.ts","line":245,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L245"},{"fileName":"fs.ts","line":257,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L257"}],"signatures":[{"id":160,"name":"writeTextFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Writes a UTF-8 text file."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { writeTextFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Write a text file to the `$APPCONFIG/app.conf` path\nawait writeTextFile('app.conf', 'file contents', { dir: BaseDirectory.AppConfig });\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":227,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L227"}],"parameters":[{"id":161,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":162,"name":"contents","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":163,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}},{"id":164,"name":"writeTextFile","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Writes a UTF-8 text file."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { writeTextFile, BaseDirectory } from '@tauri-apps/api/fs';\n// Write a text file to the `$APPCONFIG/app.conf` path\nawait writeTextFile({ path: 'app.conf', contents: 'file contents' }, { dir: BaseDirectory.AppConfig });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"fs.ts","line":245,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L245"}],"parameters":[{"id":165,"name":"file","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":139,"name":"FsTextFileOption","package":"@tauri-apps/api"}},{"id":166,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":134,"name":"FsOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"References","children":[150,167]},{"title":"Enumerations","children":[108]},{"title":"Interfaces","children":[146,143,136,134,139]},{"title":"Type Aliases","children":[142]},{"title":"Functions","children":[188,180,202,155,176,151,184,193,197,168,159]}],"sources":[{"fileName":"fs.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/fs.ts#L1"}]},{"id":206,"name":"globalShortcut","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Register global shortcuts.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.globalShortcut`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.globalShortcut`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.globalshortcut) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"globalShortcut\": {\n \"all\": true // enable all global shortcut APIs\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security."}]},"children":[{"id":207,"name":"ShortcutHandler","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"globalShortcut.ts","line":29,"character":12,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/globalShortcut.ts#L29"}],"type":{"type":"reflection","declaration":{"id":208,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"globalShortcut.ts","line":29,"character":30,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/globalShortcut.ts#L29"}],"signatures":[{"id":209,"name":"__type","variant":"signature","kind":4096,"flags":{},"parameters":[{"id":210,"name":"shortcut","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"intrinsic","name":"void"}}]}}},{"id":219,"name":"isRegistered","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"globalShortcut.ts","line":101,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/globalShortcut.ts#L101"}],"signatures":[{"id":220,"name":"isRegistered","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Determines whether the given shortcut is registered by this application or not."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { isRegistered } from '@tauri-apps/api/globalShortcut';\nconst isRegistered = await isRegistered('CommandOrControl+P');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"globalShortcut.ts","line":101,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/globalShortcut.ts#L101"}],"parameters":[{"id":221,"name":"shortcut","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Array of shortcut definitions, modifiers and key separated by \"+\" e.g. CmdOrControl+Q"}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":211,"name":"register","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"globalShortcut.ts","line":46,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/globalShortcut.ts#L46"}],"signatures":[{"id":212,"name":"register","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Register a global shortcut."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { register } from '@tauri-apps/api/globalShortcut';\nawait register('CommandOrControl+Shift+C', () => {\n console.log('Shortcut triggered');\n});\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"globalShortcut.ts","line":46,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/globalShortcut.ts#L46"}],"parameters":[{"id":213,"name":"shortcut","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Shortcut definition, modifiers and key separated by \"+\" e.g. CmdOrControl+Q"}]},"type":{"type":"intrinsic","name":"string"}},{"id":214,"name":"handler","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Shortcut handler callback - takes the triggered shortcut as argument"}]},"type":{"type":"reference","target":207,"name":"ShortcutHandler","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":215,"name":"registerAll","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"globalShortcut.ts","line":75,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/globalShortcut.ts#L75"}],"signatures":[{"id":216,"name":"registerAll","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Register a collection of global shortcuts."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { registerAll } from '@tauri-apps/api/globalShortcut';\nawait registerAll(['CommandOrControl+Shift+C', 'Ctrl+Alt+F12'], (shortcut) => {\n console.log(`Shortcut ${shortcut} triggered`);\n});\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"globalShortcut.ts","line":75,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/globalShortcut.ts#L75"}],"parameters":[{"id":217,"name":"shortcuts","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Array of shortcut definitions, modifiers and key separated by \"+\" e.g. CmdOrControl+Q"}]},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}},{"id":218,"name":"handler","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Shortcut handler callback - takes the triggered shortcut as argument"}]},"type":{"type":"reference","target":207,"name":"ShortcutHandler","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":222,"name":"unregister","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"globalShortcut.ts","line":123,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/globalShortcut.ts#L123"}],"signatures":[{"id":223,"name":"unregister","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Unregister a global shortcut."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { unregister } from '@tauri-apps/api/globalShortcut';\nawait unregister('CmdOrControl+Space');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"globalShortcut.ts","line":123,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/globalShortcut.ts#L123"}],"parameters":[{"id":224,"name":"shortcut","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"shortcut definition, modifiers and key separated by \"+\" e.g. CmdOrControl+Q"}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":225,"name":"unregisterAll","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"globalShortcut.ts","line":143,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/globalShortcut.ts#L143"}],"signatures":[{"id":226,"name":"unregisterAll","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Unregisters all shortcuts registered by the application."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { unregisterAll } from '@tauri-apps/api/globalShortcut';\nawait unregisterAll();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"globalShortcut.ts","line":143,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/globalShortcut.ts#L143"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Type Aliases","children":[207]},{"title":"Functions","children":[219,211,215,222,225]}],"sources":[{"fileName":"globalShortcut.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/globalShortcut.ts#L1"}]},{"id":227,"name":"http","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Access the HTTP client written in Rust.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.http`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be allowlisted on "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"http\": {\n \"all\": true, // enable all http APIs\n \"request\": true // enable HTTP request API\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security.\n\n## Security\n\nThis API has a scope configuration that forces you to restrict the URLs and paths that can be accessed using glob patterns.\n\nFor instance, this scope configuration only allows making HTTP requests to the GitHub API for the "},{"kind":"code","text":"`tauri-apps`"},{"kind":"text","text":" organization:\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"http\": {\n \"scope\": [\"https://api.github.com/repos/tauri-apps/*\"]\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nTrying to execute any API with a URL not configured on the scope results in a promise rejection due to denied access."}]},"children":[{"id":323,"name":"ResponseType","variant":"declaration","kind":8,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":326,"name":"Binary","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"http.ts","line":74,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L74"}],"type":{"type":"literal","value":3}},{"id":324,"name":"JSON","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"http.ts","line":72,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L72"}],"type":{"type":"literal","value":1}},{"id":325,"name":"Text","variant":"declaration","kind":16,"flags":{},"sources":[{"fileName":"http.ts","line":73,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L73"}],"type":{"type":"literal","value":2}}],"groups":[{"title":"Enumeration Members","children":[326,324,325]}],"sources":[{"fileName":"http.ts","line":71,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L71"}]},{"id":254,"name":"Body","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"The body object to be used on POST and PUT requests."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":272,"name":"payload","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":95,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L95"}],"type":{"type":"intrinsic","name":"unknown"}},{"id":271,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":94,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L94"}],"type":{"type":"intrinsic","name":"string"}},{"id":264,"name":"bytes","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"http.ts","line":217,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L217"}],"signatures":[{"id":265,"name":"bytes","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a new byte array body."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Body } from \"@tauri-apps/api/http\"\nBody.bytes(new Uint8Array([1, 2, 3]));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The body object ready to be used on the POST and PUT requests."}]}]},"sources":[{"fileName":"http.ts","line":217,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L217"}],"parameters":[{"id":266,"name":"bytes","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The body byte array."}]},"type":{"type":"union","types":[{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es2015.iterable.d.ts","qualifiedName":"Iterable"},"typeArguments":[{"type":"intrinsic","name":"number"}],"name":"Iterable","package":"typescript"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"ArrayBuffer"},"name":"ArrayBuffer","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"ArrayLike"},"typeArguments":[{"type":"intrinsic","name":"number"}],"name":"ArrayLike","package":"typescript"}]}}],"type":{"type":"reference","target":254,"name":"Body","package":"@tauri-apps/api"}}]},{"id":255,"name":"form","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"http.ts","line":134,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L134"}],"signatures":[{"id":256,"name":"form","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a new form data body. The form data is an object where each key is the entry name,\nand the value is either a string or a file object.\n\nBy default it sets the "},{"kind":"code","text":"`application/x-www-form-urlencoded`"},{"kind":"text","text":" Content-Type header,\nbut you can set it to "},{"kind":"code","text":"`multipart/form-data`"},{"kind":"text","text":" if the Cargo feature "},{"kind":"code","text":"`http-multipart`"},{"kind":"text","text":" is enabled.\n\nNote that a file path must be allowed in the "},{"kind":"code","text":"`fs`"},{"kind":"text","text":" allowlist scope."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Body } from \"@tauri-apps/api/http\"\nconst body = Body.form({\n key: 'value',\n image: {\n file: '/path/to/file', // either a path or an array buffer of the file contents\n mime: 'image/jpeg', // optional\n fileName: 'image.jpg' // optional\n }\n});\n\n// alternatively, use a FormData:\nconst form = new FormData();\nform.append('key', 'value');\nform.append('image', file, 'image.png');\nconst formBody = Body.form(form);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The body object ready to be used on the POST and PUT requests."}]}]},"sources":[{"fileName":"http.ts","line":134,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L134"}],"parameters":[{"id":257,"name":"data","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The body data."}]},"type":{"type":"union","types":[{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"reference","target":234,"name":"Part","package":"@tauri-apps/api"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.dom.d.ts","qualifiedName":"FormData"},"name":"FormData","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/API/FormData"}]}}],"type":{"type":"reference","target":254,"name":"Body","package":"@tauri-apps/api"}}]},{"id":258,"name":"json","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"http.ts","line":185,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L185"}],"signatures":[{"id":259,"name":"json","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a new JSON body."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Body } from \"@tauri-apps/api/http\"\nBody.json({\n registered: true,\n name: 'tauri'\n});\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The body object ready to be used on the POST and PUT requests."}]}]},"sources":[{"fileName":"http.ts","line":185,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L185"}],"parameters":[{"id":260,"name":"data","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The body JSON object."}]},"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"any"},{"type":"intrinsic","name":"any"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}}],"type":{"type":"reference","target":254,"name":"Body","package":"@tauri-apps/api"}}]},{"id":261,"name":"text","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"http.ts","line":201,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L201"}],"signatures":[{"id":262,"name":"text","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a new UTF-8 string body."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Body } from \"@tauri-apps/api/http\"\nBody.text('The body content as a string');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The body object ready to be used on the POST and PUT requests."}]}]},"sources":[{"fileName":"http.ts","line":201,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L201"}],"parameters":[{"id":263,"name":"value","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The body string."}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":254,"name":"Body","package":"@tauri-apps/api"}}]}],"groups":[{"title":"Properties","children":[272,271]},{"title":"Methods","children":[264,255,258,261]}],"sources":[{"fileName":"http.ts","line":93,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L93"}]},{"id":273,"name":"Client","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":277,"name":"id","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":303,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L303"}],"type":{"type":"intrinsic","name":"number"}},{"id":306,"name":"delete","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"http.ts","line":484,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L484"}],"signatures":[{"id":307,"name":"delete","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Makes a DELETE request."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient } from '@tauri-apps/api/http';\nconst client = await getClient();\nconst response = await client.delete('http://localhost:3003/users/1');\n```"}]}]},"sources":[{"fileName":"http.ts","line":484,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L484"}],"typeParameter":[{"id":308,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":309,"name":"url","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":310,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":244,"name":"RequestOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":311,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Response","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":278,"name":"drop","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"http.ts","line":318,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L318"}],"signatures":[{"id":279,"name":"drop","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Drops the client instance."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient } from '@tauri-apps/api/http';\nconst client = await getClient();\nawait client.drop();\n```"}]}]},"sources":[{"fileName":"http.ts","line":318,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L318"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":284,"name":"get","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"http.ts","line":389,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L389"}],"signatures":[{"id":285,"name":"get","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Makes a GET request."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient, ResponseType } from '@tauri-apps/api/http';\nconst client = await getClient();\nconst response = await client.get('http://localhost:3003/users', {\n timeout: 30,\n // the expected response type\n responseType: ResponseType.JSON\n});\n```"}]}]},"sources":[{"fileName":"http.ts","line":389,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L389"}],"typeParameter":[{"id":286,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":287,"name":"url","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":288,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":244,"name":"RequestOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":311,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Response","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":301,"name":"patch","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"http.ts","line":467,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L467"}],"signatures":[{"id":302,"name":"patch","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Makes a PATCH request."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient, Body } from '@tauri-apps/api/http';\nconst client = await getClient();\nconst response = await client.patch('http://localhost:3003/users/1', {\n body: Body.json({ email: 'contact@tauri.app' })\n});\n```"}]}]},"sources":[{"fileName":"http.ts","line":467,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L467"}],"typeParameter":[{"id":303,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":304,"name":"url","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":305,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":244,"name":"RequestOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":311,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Response","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":289,"name":"post","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"http.ts","line":413,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L413"}],"signatures":[{"id":290,"name":"post","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Makes a POST request."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient, Body, ResponseType } from '@tauri-apps/api/http';\nconst client = await getClient();\nconst response = await client.post('http://localhost:3003/users', {\n body: Body.json({\n name: 'tauri',\n password: 'awesome'\n }),\n // in this case the server returns a simple string\n responseType: ResponseType.Text,\n});\n```"}]}]},"sources":[{"fileName":"http.ts","line":413,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L413"}],"typeParameter":[{"id":291,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":292,"name":"url","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":293,"name":"body","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":254,"name":"Body","package":"@tauri-apps/api"}},{"id":294,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":244,"name":"RequestOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":311,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Response","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":295,"name":"put","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"http.ts","line":443,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L443"}],"signatures":[{"id":296,"name":"put","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Makes a PUT request."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient, Body } from '@tauri-apps/api/http';\nconst client = await getClient();\nconst response = await client.put('http://localhost:3003/users/1', {\n body: Body.form({\n file: {\n file: '/home/tauri/avatar.png',\n mime: 'image/png',\n fileName: 'avatar.png'\n }\n })\n});\n```"}]}]},"sources":[{"fileName":"http.ts","line":443,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L443"}],"typeParameter":[{"id":297,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":298,"name":"url","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":299,"name":"body","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":254,"name":"Body","package":"@tauri-apps/api"}},{"id":300,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":244,"name":"RequestOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":311,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Response","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":280,"name":"request","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"http.ts","line":340,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L340"}],"signatures":[{"id":281,"name":"request","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Makes an HTTP request."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient } from '@tauri-apps/api/http';\nconst client = await getClient();\nconst response = await client.request({\n method: 'GET',\n url: 'http://localhost:3003/users',\n});\n```"}]}]},"sources":[{"fileName":"http.ts","line":340,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L340"}],"typeParameter":[{"id":282,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":283,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":236,"name":"HttpOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":311,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Response","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Properties","children":[277]},{"title":"Methods","children":[306,278,284,301,289,295,280]}],"sources":[{"fileName":"http.ts","line":302,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L302"}]},{"id":311,"name":"Response","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"Response object."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":321,"name":"data","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The response data."}]},"sources":[{"fileName":"http.ts","line":286,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L286"}],"type":{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}},{"id":319,"name":"headers","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The response headers."}]},"sources":[{"fileName":"http.ts","line":282,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L282"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"string"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}},{"id":318,"name":"ok","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"A boolean indicating whether the response was successful (status in the range 200–299) or not."}]},"sources":[{"fileName":"http.ts","line":280,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L280"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":320,"name":"rawHeaders","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The response raw headers."}]},"sources":[{"fileName":"http.ts","line":284,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L284"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"array","elementType":{"type":"intrinsic","name":"string"}}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}},{"id":317,"name":"status","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The response status code."}]},"sources":[{"fileName":"http.ts","line":278,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L278"}],"type":{"type":"intrinsic","name":"number"}},{"id":316,"name":"url","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The request URL."}]},"sources":[{"fileName":"http.ts","line":276,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L276"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[321,319,318,320,317,316]}],"sources":[{"fileName":"http.ts","line":274,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L274"}],"typeParameters":[{"id":322,"name":"T","variant":"typeParam","kind":131072,"flags":{}}]},{"id":231,"name":"ClientOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":233,"name":"connectTimeout","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":65,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L65"}],"type":{"type":"union","types":[{"type":"intrinsic","name":"number"},{"type":"reference","target":228,"name":"Duration","package":"@tauri-apps/api"}]}},{"id":232,"name":"maxRedirections","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Defines the maximum number of redirects the client should follow.\nIf set to 0, no redirects will be followed."}]},"sources":[{"fileName":"http.ts","line":64,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L64"}],"type":{"type":"intrinsic","name":"number"}}],"groups":[{"title":"Properties","children":[233,232]}],"sources":[{"fileName":"http.ts","line":59,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L59"}]},{"id":228,"name":"Duration","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":230,"name":"nanos","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":53,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L53"}],"type":{"type":"intrinsic","name":"number"}},{"id":229,"name":"secs","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":52,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L52"}],"type":{"type":"intrinsic","name":"number"}}],"groups":[{"title":"Properties","children":[230,229]}],"sources":[{"fileName":"http.ts","line":51,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L51"}]},{"id":327,"name":"FilePart","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":328,"name":"file","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":81,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L81"}],"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}]}},{"id":330,"name":"fileName","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":83,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L83"}],"type":{"type":"intrinsic","name":"string"}},{"id":329,"name":"mime","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":82,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L82"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[328,330,329]}],"sources":[{"fileName":"http.ts","line":80,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L80"}],"typeParameters":[{"id":331,"name":"T","variant":"typeParam","kind":131072,"flags":{}}]},{"id":236,"name":"HttpOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Options object sent to the backend."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":241,"name":"body","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":250,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L250"}],"type":{"type":"reference","target":254,"name":"Body","package":"@tauri-apps/api"}},{"id":239,"name":"headers","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":248,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L248"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"any"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}},{"id":237,"name":"method","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":246,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L246"}],"type":{"type":"reference","target":235,"name":"HttpVerb","package":"@tauri-apps/api"}},{"id":240,"name":"query","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":249,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L249"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"any"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}},{"id":243,"name":"responseType","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":252,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L252"}],"type":{"type":"reference","target":323,"name":"ResponseType","package":"@tauri-apps/api"}},{"id":242,"name":"timeout","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"http.ts","line":251,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L251"}],"type":{"type":"union","types":[{"type":"intrinsic","name":"number"},{"type":"reference","target":228,"name":"Duration","package":"@tauri-apps/api"}]}},{"id":238,"name":"url","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"http.ts","line":247,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L247"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[241,239,237,240,243,242,238]}],"sources":[{"fileName":"http.ts","line":245,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L245"}]},{"id":245,"name":"FetchOptions","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[{"kind":"text","text":"Options for the "},{"kind":"code","text":"`fetch`"},{"kind":"text","text":" API."}]},"sources":[{"fileName":"http.ts","line":258,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L258"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Omit"},"typeArguments":[{"type":"reference","target":236,"name":"HttpOptions","package":"@tauri-apps/api"},{"type":"literal","value":"url"}],"name":"Omit","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#omittype-keys"}},{"id":235,"name":"HttpVerb","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[{"kind":"text","text":"The request HTTP verb."}]},"sources":[{"fileName":"http.ts","line":229,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L229"}],"type":{"type":"union","types":[{"type":"literal","value":"GET"},{"type":"literal","value":"POST"},{"type":"literal","value":"PUT"},{"type":"literal","value":"DELETE"},{"type":"literal","value":"PATCH"},{"type":"literal","value":"HEAD"},{"type":"literal","value":"OPTIONS"},{"type":"literal","value":"CONNECT"},{"type":"literal","value":"TRACE"}]}},{"id":234,"name":"Part","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"http.ts","line":86,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L86"}],"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Uint8Array"},"name":"Uint8Array","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array"},{"type":"reference","target":327,"typeArguments":[{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Uint8Array"},"name":"Uint8Array","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array"}],"name":"FilePart","package":"@tauri-apps/api"}]}},{"id":244,"name":"RequestOptions","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[{"kind":"text","text":"Request options."}]},"sources":[{"fileName":"http.ts","line":256,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L256"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Omit"},"typeArguments":[{"type":"reference","target":236,"name":"HttpOptions","package":"@tauri-apps/api"},{"type":"union","types":[{"type":"literal","value":"method"},{"type":"literal","value":"url"}]}],"name":"Omit","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#omittype-keys"}},{"id":249,"name":"fetch","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"http.ts","line":531,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L531"}],"signatures":[{"id":250,"name":"fetch","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Perform an HTTP request using the default client."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { fetch } from '@tauri-apps/api/http';\nconst response = await fetch('http://localhost:3003/users/2', {\n method: 'GET',\n timeout: 30,\n});\n```"}]}]},"sources":[{"fileName":"http.ts","line":531,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L531"}],"typeParameter":[{"id":251,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":252,"name":"url","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":253,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":245,"name":"FetchOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":311,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Response","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":246,"name":"getClient","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"http.ts","line":507,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L507"}],"signatures":[{"id":247,"name":"getClient","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a new client using the specified options."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { getClient } from '@tauri-apps/api/http';\nconst client = await getClient();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to the client instance."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"http.ts","line":507,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L507"}],"parameters":[{"id":248,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Client configuration."}]},"type":{"type":"reference","target":231,"name":"ClientOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":273,"name":"Client","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Enumerations","children":[323]},{"title":"Classes","children":[254,273,311]},{"title":"Interfaces","children":[231,228,327,236]},{"title":"Type Aliases","children":[245,235,234,244]},{"title":"Functions","children":[249,246]}],"sources":[{"fileName":"http.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/http.ts#L1"}]},{"id":332,"name":"mocks","variant":"declaration","kind":2,"flags":{},"children":[{"id":344,"name":"clearMocks","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"mocks.ts","line":171,"character":16,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/mocks.ts#L171"}],"signatures":[{"id":345,"name":"clearMocks","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Clears mocked functions/data injected by the other functions in this module.\nWhen using a test runner that doesn't provide a fresh window object for each test, calling this function will reset tauri specific properties.\n\n# Example\n\n"},{"kind":"code","text":"```js\nimport { mockWindows, clearMocks } from \"@tauri-apps/api/mocks\"\n\nafterEach(() => {\n clearMocks()\n})\n\ntest(\"mocked windows\", () => {\n mockWindows(\"main\", \"second\", \"third\");\n\n expect(window).toHaveProperty(\"__TAURI_METADATA__\")\n})\n\ntest(\"no mocked windows\", () => {\n expect(window).not.toHaveProperty(\"__TAURI_METADATA__\")\n})\n```"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"mocks.ts","line":171,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/mocks.ts#L171"}],"type":{"type":"intrinsic","name":"void"}}]},{"id":333,"name":"mockIPC","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"mocks.ts","line":65,"character":16,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/mocks.ts#L65"}],"signatures":[{"id":334,"name":"mockIPC","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Intercepts all IPC requests with the given mock handler.\n\nThis function can be used when testing tauri frontend applications or when running the frontend in a Node.js context during static site generation.\n\n# Examples\n\nTesting setup using vitest:\n"},{"kind":"code","text":"```js\nimport { mockIPC, clearMocks } from \"@tauri-apps/api/mocks\"\nimport { invoke } from \"@tauri-apps/api/tauri\"\n\nafterEach(() => {\n clearMocks()\n})\n\ntest(\"mocked command\", () => {\n mockIPC((cmd, args) => {\n switch (cmd) {\n case \"add\":\n return (args.a as number) + (args.b as number);\n default:\n break;\n }\n });\n\n expect(invoke('add', { a: 12, b: 15 })).resolves.toBe(27);\n})\n```"},{"kind":"text","text":"\n\nThe callback function can also return a Promise:\n"},{"kind":"code","text":"```js\nimport { mockIPC, clearMocks } from \"@tauri-apps/api/mocks\"\nimport { invoke } from \"@tauri-apps/api/tauri\"\n\nafterEach(() => {\n clearMocks()\n})\n\ntest(\"mocked command\", () => {\n mockIPC((cmd, args) => {\n if(cmd === \"get_data\") {\n return fetch(\"https://example.com/data.json\")\n .then((response) => response.json())\n }\n });\n\n expect(invoke('get_data')).resolves.toBe({ foo: 'bar' });\n})\n```"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"mocks.ts","line":65,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/mocks.ts#L65"}],"parameters":[{"id":335,"name":"cb","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":336,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"mocks.ts","line":66,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/mocks.ts#L66"}],"signatures":[{"id":337,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"mocks.ts","line":66,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/mocks.ts#L66"}],"parameters":[{"id":338,"name":"cmd","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":339,"name":"args","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"unknown"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}}],"type":{"type":"intrinsic","name":"any"}}]}}}],"type":{"type":"intrinsic","name":"void"}}]},{"id":340,"name":"mockWindows","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"mocks.ts","line":135,"character":16,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/mocks.ts#L135"}],"signatures":[{"id":341,"name":"mockWindows","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Mocks one or many window labels.\nIn non-tauri context it is required to call this function *before* using the "},{"kind":"code","text":"`@tauri-apps/api/window`"},{"kind":"text","text":" module.\n\nThis function only mocks the *presence* of windows,\nwindow properties (e.g. width and height) can be mocked like regular IPC calls using the "},{"kind":"code","text":"`mockIPC`"},{"kind":"text","text":" function.\n\n# Examples\n\n"},{"kind":"code","text":"```js\nimport { mockWindows } from \"@tauri-apps/api/mocks\";\nimport { getCurrent } from \"@tauri-apps/api/window\";\n\nmockWindows(\"main\", \"second\", \"third\");\n\nconst win = getCurrent();\n\nwin.label // \"main\"\n```"},{"kind":"text","text":"\n\n"},{"kind":"code","text":"```js\nimport { mockWindows } from \"@tauri-apps/api/mocks\";\n\nmockWindows(\"main\", \"second\", \"third\");\n\nmockIPC((cmd, args) => {\n if (cmd === \"tauri\") {\n if (\n args?.__tauriModule === \"Window\" &&\n args?.message?.cmd === \"manage\" &&\n args?.message?.data?.cmd?.type === \"close\"\n ) {\n console.log('closing window!');\n }\n }\n});\n\nconst { getCurrent } = await import(\"@tauri-apps/api/window\");\n\nconst win = getCurrent();\nawait win.close(); // this will cause the mocked IPC handler to log to the console.\n```"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"mocks.ts","line":135,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/mocks.ts#L135"}],"parameters":[{"id":342,"name":"current","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Label of window this JavaScript context is running in."}]},"type":{"type":"intrinsic","name":"string"}},{"id":343,"name":"additionalWindows","variant":"param","kind":32768,"flags":{"isRest":true},"comment":{"summary":[{"kind":"text","text":"Label of additional windows the app has."}]},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}}],"type":{"type":"intrinsic","name":"void"}}]}],"groups":[{"title":"Functions","children":[344,333,340]}],"sources":[{"fileName":"mocks.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/mocks.ts#L1"}]},{"id":346,"name":"notification","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Send toast notifications (brief auto-expiring OS window element) to your user.\nCan also be used with the Notification Web API.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.notification`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.notification`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.notification) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"notification\": {\n \"all\": true // enable all notification APIs\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security."}]},"children":[{"id":347,"name":"Options","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Options to send a notification."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":349,"name":"body","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Optional notification body."}]},"sources":[{"fileName":"notification.ts","line":38,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/notification.ts#L38"}],"type":{"type":"intrinsic","name":"string"}},{"id":350,"name":"icon","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Optional notification icon."}]},"sources":[{"fileName":"notification.ts","line":40,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/notification.ts#L40"}],"type":{"type":"intrinsic","name":"string"}},{"id":351,"name":"sound","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Optional notification sound.\n\n#### Platform-specific\n\nEach OS has a different sound name so you will need to conditionally specify an appropriate sound\nbased on the OS in use, for a list of sounds see:\n- **Linux**: can be one of the sounds listed in "},{"kind":"inline-tag","tag":"@link","text":"https://0pointer.de/public/sound-naming-spec.html","target":"https://0pointer.de/public/sound-naming-spec.html"},{"kind":"text","text":"\n- **Windows**: can be one of the sounds listed in "},{"kind":"inline-tag","tag":"@link","text":"https://learn.microsoft.com/en-us/uwp/schemas/tiles/toastschema/element-audio","target":"https://learn.microsoft.com/en-us/uwp/schemas/tiles/toastschema/element-audio"},{"kind":"text","text":"\n but without the prefix, for example, if "},{"kind":"code","text":"`ms-winsoundevent:Notification.Default`"},{"kind":"text","text":" you would use "},{"kind":"code","text":"`Default`"},{"kind":"text","text":" and\n if "},{"kind":"code","text":"`ms-winsoundevent:Notification.Looping.Alarm2`"},{"kind":"text","text":", you would use "},{"kind":"code","text":"`Alarm2`"},{"kind":"text","text":".\n Windows 7 is not supproted, if a sound is provided, it will play the default sound, otherwise it will be silent.\n- **macOS**: you can specify the name of the sound you'd like to play when the notification is shown\nor use "},{"kind":"code","text":"`NSUserNotificationDefaultSoundName`"},{"kind":"text","text":" to play the default sound.\nAny of the default sounds (under System Preferences > Sound) can be used, in addition to custom sound files.\nBe sure that the sound file is copied under the app bundle (e.g., "},{"kind":"code","text":"`YourApp.app/Contents/Resources`"},{"kind":"text","text":"), or one of the following locations:\n - "},{"kind":"code","text":"`~/Library/Sounds`"},{"kind":"text","text":"\n - "},{"kind":"code","text":"`/Library/Sounds`"},{"kind":"text","text":"\n - "},{"kind":"code","text":"`/Network/Library/Sounds`"},{"kind":"text","text":"\n - "},{"kind":"code","text":"`/System/Library/Sounds`"},{"kind":"text","text":"\n\n See the "},{"kind":"inline-tag","tag":"@link","text":"NSSound","target":"https://developer.apple.com/documentation/appkit/nssound"},{"kind":"text","text":" docs for more information."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.5.0"}]}]},"sources":[{"fileName":"notification.ts","line":66,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/notification.ts#L66"}],"type":{"type":"intrinsic","name":"string"}},{"id":348,"name":"title","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Notification title."}]},"sources":[{"fileName":"notification.ts","line":36,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/notification.ts#L36"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[349,350,351,348]}],"sources":[{"fileName":"notification.ts","line":34,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/notification.ts#L34"}]},{"id":352,"name":"Permission","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[{"kind":"text","text":"Possible permission values."}]},"sources":[{"fileName":"notification.ts","line":70,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/notification.ts#L70"}],"type":{"type":"union","types":[{"type":"literal","value":"granted"},{"type":"literal","value":"denied"},{"type":"literal","value":"default"}]}},{"id":358,"name":"isPermissionGranted","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"notification.ts","line":82,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/notification.ts#L82"}],"signatures":[{"id":359,"name":"isPermissionGranted","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Checks if the permission to send notifications is granted."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { isPermissionGranted } from '@tauri-apps/api/notification';\nconst permissionGranted = await isPermissionGranted();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"notification.ts","line":82,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/notification.ts#L82"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":356,"name":"requestPermission","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"notification.ts","line":110,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/notification.ts#L110"}],"signatures":[{"id":357,"name":"requestPermission","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Requests the permission to send notifications."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { isPermissionGranted, requestPermission } from '@tauri-apps/api/notification';\nlet permissionGranted = await isPermissionGranted();\nif (!permissionGranted) {\n const permission = await requestPermission();\n permissionGranted = permission === 'granted';\n}\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to whether the user granted the permission or not."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"notification.ts","line":110,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/notification.ts#L110"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":352,"name":"Permission","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":353,"name":"sendNotification","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"notification.ts","line":132,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/notification.ts#L132"}],"signatures":[{"id":354,"name":"sendNotification","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sends a notification to the user."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { isPermissionGranted, requestPermission, sendNotification } from '@tauri-apps/api/notification';\nlet permissionGranted = await isPermissionGranted();\nif (!permissionGranted) {\n const permission = await requestPermission();\n permissionGranted = permission === 'granted';\n}\nif (permissionGranted) {\n sendNotification('Tauri is awesome!');\n sendNotification({ title: 'TAURI', body: 'Tauri is awesome!' });\n}\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"notification.ts","line":132,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/notification.ts#L132"}],"parameters":[{"id":355,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":347,"name":"Options","package":"@tauri-apps/api"}]}}],"type":{"type":"intrinsic","name":"void"}}]}],"groups":[{"title":"Interfaces","children":[347]},{"title":"Type Aliases","children":[352]},{"title":"Functions","children":[358,356,353]}],"sources":[{"fileName":"notification.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/notification.ts#L1"}]},{"id":360,"name":"os","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Provides operating system-related utility methods and properties.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.os`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.os`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.os) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"os\": {\n \"all\": true, // enable all Os APIs\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security."}]},"children":[{"id":376,"name":"Arch","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"os.ts","line":43,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/os.ts#L43"}],"type":{"type":"union","types":[{"type":"literal","value":"x86"},{"type":"literal","value":"x86_64"},{"type":"literal","value":"arm"},{"type":"literal","value":"aarch64"},{"type":"literal","value":"mips"},{"type":"literal","value":"mips64"},{"type":"literal","value":"powerpc"},{"type":"literal","value":"powerpc64"},{"type":"literal","value":"riscv64"},{"type":"literal","value":"s390x"},{"type":"literal","value":"sparc64"}]}},{"id":375,"name":"OsType","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"os.ts","line":41,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/os.ts#L41"}],"type":{"type":"union","types":[{"type":"literal","value":"Linux"},{"type":"literal","value":"Darwin"},{"type":"literal","value":"Windows_NT"}]}},{"id":374,"name":"Platform","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"os.ts","line":29,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/os.ts#L29"}],"type":{"type":"union","types":[{"type":"literal","value":"linux"},{"type":"literal","value":"darwin"},{"type":"literal","value":"ios"},{"type":"literal","value":"freebsd"},{"type":"literal","value":"dragonfly"},{"type":"literal","value":"netbsd"},{"type":"literal","value":"openbsd"},{"type":"literal","value":"solaris"},{"type":"literal","value":"android"},{"type":"literal","value":"win32"}]}},{"id":361,"name":"EOL","variant":"declaration","kind":32,"flags":{"isConst":true},"comment":{"summary":[{"kind":"text","text":"The operating system-specific end-of-line marker.\n- "},{"kind":"code","text":"`\\n`"},{"kind":"text","text":" on POSIX\n- "},{"kind":"code","text":"`\\r\\n`"},{"kind":"text","text":" on Windows"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"os.ts","line":63,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/os.ts#L63"}],"type":{"type":"union","types":[{"type":"literal","value":"\n"},{"type":"literal","value":"\r\n"}]},"defaultValue":"..."},{"id":368,"name":"arch","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"os.ts","line":135,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/os.ts#L135"}],"signatures":[{"id":369,"name":"arch","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the operating system CPU architecture for which the tauri app was compiled.\nPossible values are "},{"kind":"code","text":"`'x86'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'x86_64'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'arm'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'aarch64'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'mips'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'mips64'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'powerpc'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'powerpc64'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'riscv64'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'s390x'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'sparc64'`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { arch } from '@tauri-apps/api/os';\nconst archName = await arch();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"os.ts","line":135,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/os.ts#L135"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":376,"name":"Arch","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":372,"name":"locale","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"os.ts","line":176,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/os.ts#L176"}],"signatures":[{"id":373,"name":"locale","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns a String with a "},{"kind":"code","text":"`BCP-47`"},{"kind":"text","text":" language tag inside. If the locale couldn’t be obtained, "},{"kind":"code","text":"`null`"},{"kind":"text","text":" is returned instead."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { locale } from '@tauri-apps/api/os';\nconst locale = await locale();\nif (locale) {\n // use the locale string here\n}\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.4.0"}]}]},"sources":[{"fileName":"os.ts","line":176,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/os.ts#L176"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"literal","value":null}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":362,"name":"platform","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"os.ts","line":77,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/os.ts#L77"}],"signatures":[{"id":363,"name":"platform","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns a string identifying the operating system platform.\nThe value is set at compile time. Possible values are "},{"kind":"code","text":"`'linux'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'darwin'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'ios'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'freebsd'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'dragonfly'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'netbsd'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'openbsd'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'solaris'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'android'`"},{"kind":"text","text":", "},{"kind":"code","text":"`'win32'`"}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { platform } from '@tauri-apps/api/os';\nconst platformName = await platform();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"os.ts","line":77,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/os.ts#L77"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":374,"name":"Platform","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":370,"name":"tempdir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"os.ts","line":154,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/os.ts#L154"}],"signatures":[{"id":371,"name":"tempdir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the operating system's default directory for temporary files as a string."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { tempdir } from '@tauri-apps/api/os';\nconst tempdirPath = await tempdir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"os.ts","line":154,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/os.ts#L154"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":366,"name":"type","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"os.ts","line":115,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/os.ts#L115"}],"signatures":[{"id":367,"name":"type","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns "},{"kind":"code","text":"`'Linux'`"},{"kind":"text","text":" on Linux, "},{"kind":"code","text":"`'Darwin'`"},{"kind":"text","text":" on macOS, and "},{"kind":"code","text":"`'Windows_NT'`"},{"kind":"text","text":" on Windows."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { type } from '@tauri-apps/api/os';\nconst osType = await type();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"os.ts","line":115,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/os.ts#L115"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":375,"name":"OsType","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":364,"name":"version","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"os.ts","line":96,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/os.ts#L96"}],"signatures":[{"id":365,"name":"version","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns a string identifying the kernel version."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { version } from '@tauri-apps/api/os';\nconst osVersion = await version();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"os.ts","line":96,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/os.ts#L96"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Type Aliases","children":[376,375,374]},{"title":"Variables","children":[361]},{"title":"Functions","children":[368,372,362,370,366,364]}],"sources":[{"fileName":"os.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/os.ts#L1"}]},{"id":377,"name":"path","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"The path module provides utilities for working with file and directory paths.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.path`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.path`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.path) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"path\": {\n \"all\": true, // enable all Path APIs\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security."}]},"children":[{"id":1175,"name":"BaseDirectory","variant":"reference","kind":8388608,"flags":{},"sources":[{"fileName":"path.ts","line":839,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L839"}],"target":108},{"id":430,"name":"delimiter","variant":"declaration","kind":32,"flags":{"isConst":true},"comment":{"summary":[{"kind":"text","text":"Provides the platform-specific path segment delimiter:\n- "},{"kind":"code","text":"`;`"},{"kind":"text","text":" on Windows\n- "},{"kind":"code","text":"`:`"},{"kind":"text","text":" on POSIX"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":660,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L660"}],"type":{"type":"union","types":[{"type":"literal","value":";"},{"type":"literal","value":":"}]},"defaultValue":"..."},{"id":429,"name":"sep","variant":"declaration","kind":32,"flags":{"isConst":true},"comment":{"summary":[{"kind":"text","text":"Provides the platform-specific path segment separator:\n- "},{"kind":"code","text":"`\\` on Windows\n- `"},{"kind":"text","text":"/` on POSIX"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":651,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L651"}],"type":{"type":"union","types":[{"type":"literal","value":"\\"},{"type":"literal","value":"/"}]},"defaultValue":"..."},{"id":386,"name":"appCacheDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":117,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L117"}],"signatures":[{"id":387,"name":"appCacheDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app's cache files.\nResolves to "},{"kind":"code","text":"`${cacheDir}/${bundleIdentifier}`"},{"kind":"text","text":", where "},{"kind":"code","text":"`bundleIdentifier`"},{"kind":"text","text":" is the value ["},{"kind":"code","text":"`tauri.bundle.identifier`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appCacheDir } from '@tauri-apps/api/path';\nconst appCacheDirPath = await appCacheDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"path.ts","line":117,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L117"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":380,"name":"appConfigDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":51,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L51"}],"signatures":[{"id":381,"name":"appConfigDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app's config files.\nResolves to "},{"kind":"code","text":"`${configDir}/${bundleIdentifier}`"},{"kind":"text","text":", where "},{"kind":"code","text":"`bundleIdentifier`"},{"kind":"text","text":" is the value ["},{"kind":"code","text":"`tauri.bundle.identifier`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appConfigDir } from '@tauri-apps/api/path';\nconst appConfigDirPath = await appConfigDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"path.ts","line":51,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L51"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":382,"name":"appDataDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":73,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L73"}],"signatures":[{"id":383,"name":"appDataDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app's data files.\nResolves to "},{"kind":"code","text":"`${dataDir}/${bundleIdentifier}`"},{"kind":"text","text":", where "},{"kind":"code","text":"`bundleIdentifier`"},{"kind":"text","text":" is the value ["},{"kind":"code","text":"`tauri.bundle.identifier`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appDataDir } from '@tauri-apps/api/path';\nconst appDataDirPath = await appDataDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"path.ts","line":73,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L73"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":378,"name":"appDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":36,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L36"}],"signatures":[{"id":379,"name":"appDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app config files."}],"blockTags":[{"tag":"@deprecated","content":[{"kind":"text","text":"since 1.2.0: Will be removed in 2.0.0. Use "},{"kind":"inline-tag","tag":"@link","text":"appConfigDir","target":380,"tsLinkText":""},{"kind":"text","text":" or "},{"kind":"inline-tag","tag":"@link","text":"appDataDir","target":382,"tsLinkText":""},{"kind":"text","text":" instead."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":36,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L36"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":384,"name":"appLocalDataDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":95,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L95"}],"signatures":[{"id":385,"name":"appLocalDataDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app's local data files.\nResolves to "},{"kind":"code","text":"`${localDataDir}/${bundleIdentifier}`"},{"kind":"text","text":", where "},{"kind":"code","text":"`bundleIdentifier`"},{"kind":"text","text":" is the value ["},{"kind":"code","text":"`tauri.bundle.identifier`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appLocalDataDir } from '@tauri-apps/api/path';\nconst appLocalDataDirPath = await appLocalDataDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"path.ts","line":95,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L95"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":388,"name":"appLogDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":633,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L633"}],"signatures":[{"id":389,"name":"appLogDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested directory for your app's log files.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`${configDir}/${bundleIdentifier}/logs`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`${homeDir}/Library/Logs/{bundleIdentifier}`"},{"kind":"text","text":"\n- **Windows:** Resolves to "},{"kind":"code","text":"`${configDir}/${bundleIdentifier}/logs`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appLogDir } from '@tauri-apps/api/path';\nconst appLogDirPath = await appLogDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"path.ts","line":633,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L633"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":390,"name":"audioDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":144,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L144"}],"signatures":[{"id":391,"name":"audioDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's audio directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_MUSIC_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Music`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Music}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { audioDir } from '@tauri-apps/api/path';\nconst audioDirPath = await audioDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":144,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L144"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":446,"name":"basename","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":782,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L782"}],"signatures":[{"id":447,"name":"basename","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the last portion of a "},{"kind":"code","text":"`path`"},{"kind":"text","text":". Trailing directory separators are ignored."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { basename, resolveResource } from '@tauri-apps/api/path';\nconst resourcePath = await resolveResource('app.conf');\nconst base = await basename(resourcePath);\nassert(base === 'app.conf');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":782,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L782"}],"parameters":[{"id":448,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}},{"id":449,"name":"ext","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"An optional file extension to be removed from the returned path."}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":392,"name":"cacheDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":171,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L171"}],"signatures":[{"id":393,"name":"cacheDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's cache directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_CACHE_HOME`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.cache`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Library/Caches`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_LocalAppData}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { cacheDir } from '@tauri-apps/api/path';\nconst cacheDirPath = await cacheDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":171,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L171"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":394,"name":"configDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":198,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L198"}],"signatures":[{"id":395,"name":"configDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's config directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_CONFIG_HOME`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.config`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Library/Application Support`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_RoamingAppData}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { configDir } from '@tauri-apps/api/path';\nconst configDirPath = await configDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":198,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L198"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":396,"name":"dataDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":225,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L225"}],"signatures":[{"id":397,"name":"dataDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's data directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_DATA_HOME`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.local/share`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Library/Application Support`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_RoamingAppData}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { dataDir } from '@tauri-apps/api/path';\nconst dataDirPath = await dataDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":225,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L225"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":398,"name":"desktopDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":252,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L252"}],"signatures":[{"id":399,"name":"desktopDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's desktop directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_DESKTOP_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Desktop`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Desktop}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { desktopDir } from '@tauri-apps/api/path';\nconst desktopPath = await desktopDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":252,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L252"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":440,"name":"dirname","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":736,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L736"}],"signatures":[{"id":441,"name":"dirname","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the directory name of a "},{"kind":"code","text":"`path`"},{"kind":"text","text":". Trailing directory separators are ignored."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { dirname, appDataDir } from '@tauri-apps/api/path';\nconst appDataDirPath = await appDataDir();\nconst dir = await dirname(appDataDirPath);\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":736,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L736"}],"parameters":[{"id":442,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":400,"name":"documentDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":279,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L279"}],"signatures":[{"id":401,"name":"documentDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's document directory."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { documentDir } from '@tauri-apps/api/path';\nconst documentDirPath = await documentDir();\n```"},{"kind":"text","text":"\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_DOCUMENTS_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Documents`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Documents}`"},{"kind":"text","text":"."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":279,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L279"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":402,"name":"downloadDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":306,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L306"}],"signatures":[{"id":403,"name":"downloadDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's download directory.\n\n#### Platform-specific\n\n- **Linux**: Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_DOWNLOAD_DIR`"},{"kind":"text","text":".\n- **macOS**: Resolves to "},{"kind":"code","text":"`$HOME/Downloads`"},{"kind":"text","text":".\n- **Windows**: Resolves to "},{"kind":"code","text":"`{FOLDERID_Downloads}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { downloadDir } from '@tauri-apps/api/path';\nconst downloadDirPath = await downloadDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":306,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L306"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":404,"name":"executableDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":333,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L333"}],"signatures":[{"id":405,"name":"executableDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's executable directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_BIN_HOME/../bin`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$XDG_DATA_HOME/../bin`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.local/bin`"},{"kind":"text","text":".\n- **macOS:** Not supported.\n- **Windows:** Not supported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { executableDir } from '@tauri-apps/api/path';\nconst executableDirPath = await executableDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":333,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L333"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":443,"name":"extname","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":758,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L758"}],"signatures":[{"id":444,"name":"extname","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the extension of the "},{"kind":"code","text":"`path`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { extname, resolveResource } from '@tauri-apps/api/path';\nconst resourcePath = await resolveResource('app.conf');\nconst ext = await extname(resourcePath);\nassert(ext === 'conf');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":758,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L758"}],"parameters":[{"id":445,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":406,"name":"fontDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":360,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L360"}],"signatures":[{"id":407,"name":"fontDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's font directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_DATA_HOME/fonts`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.local/share/fonts`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Library/Fonts`"},{"kind":"text","text":".\n- **Windows:** Not supported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { fontDir } from '@tauri-apps/api/path';\nconst fontDirPath = await fontDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":360,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L360"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":408,"name":"homeDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":387,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L387"}],"signatures":[{"id":409,"name":"homeDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's home directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$HOME`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Profile}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { homeDir } from '@tauri-apps/api/path';\nconst homeDirPath = await homeDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":387,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L387"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":450,"name":"isAbsolute","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":803,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L803"}],"signatures":[{"id":451,"name":"isAbsolute","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns whether the path is absolute or not."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { isAbsolute } from '@tauri-apps/api/path';\nassert(await isAbsolute('/home/tauri'));\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":803,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L803"}],"parameters":[{"id":452,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":437,"name":"join","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":715,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L715"}],"signatures":[{"id":438,"name":"join","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Joins all given "},{"kind":"code","text":"`path`"},{"kind":"text","text":" segments together using the platform-specific separator as a delimiter, then normalizes the resulting path."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { join, appDataDir } from '@tauri-apps/api/path';\nconst appDataDirPath = await appDataDir();\nconst path = await join(appDataDirPath, 'users', 'tauri', 'avatar.png');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":715,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L715"}],"parameters":[{"id":439,"name":"paths","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":410,"name":"localDataDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":414,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L414"}],"signatures":[{"id":411,"name":"localDataDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's local data directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_DATA_HOME`"},{"kind":"text","text":" or "},{"kind":"code","text":"`$HOME/.local/share`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Library/Application Support`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_LocalAppData}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { localDataDir } from '@tauri-apps/api/path';\nconst localDataDirPath = await localDataDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":414,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L414"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":427,"name":"logDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":613,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L613"}],"signatures":[{"id":428,"name":"logDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the suggested log directory."}],"blockTags":[{"tag":"@deprecated","content":[{"kind":"text","text":"since 1.2.0: Will be removed in 2.0.0. Use "},{"kind":"inline-tag","tag":"@link","text":"appLogDir","target":388,"tsLinkText":""},{"kind":"text","text":" instead."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":613,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L613"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":434,"name":"normalize","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":694,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L694"}],"signatures":[{"id":435,"name":"normalize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Normalizes the given "},{"kind":"code","text":"`path`"},{"kind":"text","text":", resolving "},{"kind":"code","text":"`'..'`"},{"kind":"text","text":" and "},{"kind":"code","text":"`'.'`"},{"kind":"text","text":" segments and resolve symbolic links."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { normalize, appDataDir } from '@tauri-apps/api/path';\nconst appDataDirPath = await appDataDir();\nconst path = await normalize(appDataDirPath, '..', 'users', 'tauri', 'avatar.png');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":694,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L694"}],"parameters":[{"id":436,"name":"path","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":412,"name":"pictureDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":441,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L441"}],"signatures":[{"id":413,"name":"pictureDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's picture directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_PICTURES_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Pictures`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Pictures}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { pictureDir } from '@tauri-apps/api/path';\nconst pictureDirPath = await pictureDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":441,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L441"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":414,"name":"publicDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":468,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L468"}],"signatures":[{"id":415,"name":"publicDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's public directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_PUBLICSHARE_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Public`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Public}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { publicDir } from '@tauri-apps/api/path';\nconst publicDirPath = await publicDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":468,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L468"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":431,"name":"resolve","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":673,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L673"}],"signatures":[{"id":432,"name":"resolve","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Resolves a sequence of "},{"kind":"code","text":"`paths`"},{"kind":"text","text":" or "},{"kind":"code","text":"`path`"},{"kind":"text","text":" segments into an absolute path."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { resolve, appDataDir } from '@tauri-apps/api/path';\nconst appDataDirPath = await appDataDir();\nconst path = await resolve(appDataDirPath, '..', 'users', 'tauri', 'avatar.png');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":673,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L673"}],"parameters":[{"id":433,"name":"paths","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":418,"name":"resolveResource","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":515,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L515"}],"signatures":[{"id":419,"name":"resolveResource","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Resolve the path to a resource file."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { resolveResource } from '@tauri-apps/api/path';\nconst resourcePath = await resolveResource('script.sh');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The full path to the resource."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":515,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L515"}],"parameters":[{"id":420,"name":"resourcePath","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The path to the resource.\nMust follow the same syntax as defined in "},{"kind":"code","text":"`tauri.conf.json > tauri > bundle > resources`"},{"kind":"text","text":", i.e. keeping subfolders and parent dir components ("},{"kind":"code","text":"`../`"},{"kind":"text","text":")."}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":416,"name":"resourceDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":490,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L490"}],"signatures":[{"id":417,"name":"resourceDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the application's resource directory.\nTo resolve a resource path, see the [[resolveResource | "},{"kind":"code","text":"`resolveResource API`"},{"kind":"text","text":"]]."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { resourceDir } from '@tauri-apps/api/path';\nconst resourceDirPath = await resourceDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":490,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L490"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":421,"name":"runtimeDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":542,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L542"}],"signatures":[{"id":422,"name":"runtimeDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's runtime directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to "},{"kind":"code","text":"`$XDG_RUNTIME_DIR`"},{"kind":"text","text":".\n- **macOS:** Not supported.\n- **Windows:** Not supported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { runtimeDir } from '@tauri-apps/api/path';\nconst runtimeDirPath = await runtimeDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":542,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L542"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":423,"name":"templateDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":569,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L569"}],"signatures":[{"id":424,"name":"templateDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's template directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_TEMPLATES_DIR`"},{"kind":"text","text":".\n- **macOS:** Not supported.\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Templates}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { templateDir } from '@tauri-apps/api/path';\nconst templateDirPath = await templateDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":569,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L569"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":425,"name":"videoDir","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"path.ts","line":596,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L596"}],"signatures":[{"id":426,"name":"videoDir","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the path to the user's video directory.\n\n#### Platform-specific\n\n- **Linux:** Resolves to ["},{"kind":"code","text":"`xdg-user-dirs`"},{"kind":"text","text":"](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/)' "},{"kind":"code","text":"`XDG_VIDEOS_DIR`"},{"kind":"text","text":".\n- **macOS:** Resolves to "},{"kind":"code","text":"`$HOME/Movies`"},{"kind":"text","text":".\n- **Windows:** Resolves to "},{"kind":"code","text":"`{FOLDERID_Videos}`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { videoDir } from '@tauri-apps/api/path';\nconst videoDirPath = await videoDir();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"path.ts","line":596,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L596"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"References","children":[1175]},{"title":"Variables","children":[430,429]},{"title":"Functions","children":[386,380,382,378,384,388,390,446,392,394,396,398,440,400,402,404,443,406,408,450,437,410,427,434,412,414,431,418,416,421,423,425]}],"sources":[{"fileName":"path.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/path.ts#L1"}]},{"id":453,"name":"process","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Perform operations on the current process.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.process`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"children":[{"id":454,"name":"exit","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"process.ts","line":27,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/process.ts#L27"}],"signatures":[{"id":455,"name":"exit","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Exits immediately with the given "},{"kind":"code","text":"`exitCode`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { exit } from '@tauri-apps/api/process';\nawait exit(1);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"process.ts","line":27,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/process.ts#L27"}],"parameters":[{"id":456,"name":"exitCode","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The exit code to use."}]},"type":{"type":"intrinsic","name":"number"},"defaultValue":"0"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":457,"name":"relaunch","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"process.ts","line":49,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/process.ts#L49"}],"signatures":[{"id":458,"name":"relaunch","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Exits the current instance of the app then relaunches it."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { relaunch } from '@tauri-apps/api/process';\nawait relaunch();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"process.ts","line":49,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/process.ts#L49"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Functions","children":[454,457]}],"sources":[{"fileName":"process.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/process.ts#L1"}]},{"id":459,"name":"shell","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Access the system shell.\nAllows you to spawn child processes and manage files and URLs using their default application.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.shell`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.shell`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.shell) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"shell\": {\n \"all\": true, // enable all shell APIs\n \"execute\": true, // enable process spawn APIs\n \"sidecar\": true, // enable spawning sidecars\n \"open\": true // enable opening files/URLs using the default program\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security.\n\n## Security\n\nThis API has a scope configuration that forces you to restrict the programs and arguments that can be used.\n\n### Restricting access to the "},{"kind":"inline-tag","tag":"@link","text":"`open`","target":617},{"kind":"text","text":" API\n\nOn the allowlist, "},{"kind":"code","text":"`open: true`"},{"kind":"text","text":" means that the "},{"kind":"inline-tag","tag":"@link","text":"open","target":617},{"kind":"text","text":" API can be used with any URL,\nas the argument is validated with the "},{"kind":"code","text":"`^((mailto:\\w+)|(tel:\\w+)|(https?://\\w+)).+`"},{"kind":"text","text":" regex.\nYou can change that regex by changing the boolean value to a string, e.g. "},{"kind":"code","text":"`open: ^https://github.com/`"},{"kind":"text","text":".\n\n### Restricting access to the "},{"kind":"inline-tag","tag":"@link","text":"`Command`","target":460},{"kind":"text","text":" APIs\n\nThe "},{"kind":"code","text":"`shell`"},{"kind":"text","text":" allowlist object has a "},{"kind":"code","text":"`scope`"},{"kind":"text","text":" field that defines an array of CLIs that can be used.\nEach CLI is a configuration object "},{"kind":"code","text":"`{ name: string, cmd: string, sidecar?: bool, args?: boolean | Arg[] }`"},{"kind":"text","text":".\n\n- "},{"kind":"code","text":"`name`"},{"kind":"text","text":": the unique identifier of the command, passed to the "},{"kind":"inline-tag","tag":"@link","text":"Command constructor","target":466},{"kind":"text","text":".\nIf it's a sidecar, this must be the value defined on "},{"kind":"code","text":"`tauri.conf.json > tauri > bundle > externalBin`"},{"kind":"text","text":".\n- "},{"kind":"code","text":"`cmd`"},{"kind":"text","text":": the program that is executed on this configuration. If it's a sidecar, this value is ignored.\n- "},{"kind":"code","text":"`sidecar`"},{"kind":"text","text":": whether the object configures a sidecar or a system program.\n- "},{"kind":"code","text":"`args`"},{"kind":"text","text":": the arguments that can be passed to the program. By default no arguments are allowed.\n - "},{"kind":"code","text":"`true`"},{"kind":"text","text":" means that any argument list is allowed.\n - "},{"kind":"code","text":"`false`"},{"kind":"text","text":" means that no arguments are allowed.\n - otherwise an array can be configured. Each item is either a string representing the fixed argument value\n or a "},{"kind":"code","text":"`{ validator: string }`"},{"kind":"text","text":" that defines a regex validating the argument value.\n\n#### Example scope configuration\n\nCLI: "},{"kind":"code","text":"`git commit -m \"the commit message\"`"},{"kind":"text","text":"\n\nConfiguration:\n"},{"kind":"code","text":"```json\n{\n \"scope\": [\n {\n \"name\": \"run-git-commit\",\n \"cmd\": \"git\",\n \"args\": [\"commit\", \"-m\", { \"validator\": \"\\\\S+\" }]\n }\n ]\n}\n```"},{"kind":"text","text":"\nUsage:\n"},{"kind":"code","text":"```typescript\nimport { Command } from '@tauri-apps/api/shell'\nnew Command('run-git-commit', ['commit', '-m', 'the commit message'])\n```"},{"kind":"text","text":"\n\nTrying to execute any API with a program not configured on the scope results in a promise rejection due to denied access."}]},"children":[{"id":539,"name":"Child","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"children":[{"id":540,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"shell.ts","line":325,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L325"}],"signatures":[{"id":541,"name":"new Child","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"shell.ts","line":325,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L325"}],"parameters":[{"id":542,"name":"pid","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":539,"name":"Child","package":"@tauri-apps/api"}}]},{"id":543,"name":"pid","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The child process "},{"kind":"code","text":"`pid`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"shell.ts","line":323,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L323"}],"type":{"type":"intrinsic","name":"number"}},{"id":547,"name":"kill","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":361,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L361"}],"signatures":[{"id":548,"name":"kill","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Kills the child process."}],"blockTags":[{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"shell.ts","line":361,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L361"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":544,"name":"write","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":344,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L344"}],"signatures":[{"id":545,"name":"write","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Writes "},{"kind":"code","text":"`data`"},{"kind":"text","text":" to the "},{"kind":"code","text":"`stdin`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Command } from '@tauri-apps/api/shell';\nconst command = new Command('node');\nconst child = await command.spawn();\nawait child.write('message');\nawait child.write([0, 1, 2, 3, 4, 5]);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"shell.ts","line":344,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L344"}],"parameters":[{"id":546,"name":"data","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The message to write, either a string or a byte array."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Uint8Array"},"name":"Uint8Array","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Constructors","children":[540]},{"title":"Properties","children":[543]},{"title":"Methods","children":[547,544]}],"sources":[{"fileName":"shell.ts","line":321,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L321"}]},{"id":460,"name":"Command","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"The entry point for spawning child processes.\nIt emits the "},{"kind":"code","text":"`close`"},{"kind":"text","text":" and "},{"kind":"code","text":"`error`"},{"kind":"text","text":" events."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Command } from '@tauri-apps/api/shell';\nconst command = new Command('node');\ncommand.on('close', data => {\n console.log(`command finished with code ${data.code} and signal ${data.signal}`)\n});\ncommand.on('error', error => console.error(`command error: \"${error}\"`));\ncommand.stdout.on('data', line => console.log(`command stdout: \"${line}\"`));\ncommand.stderr.on('data', line => console.log(`command stderr: \"${line}\"`));\n\nconst child = await command.spawn();\nconsole.log('pid:', child.pid);\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"children":[{"id":466,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"shell.ts","line":413,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L413"}],"signatures":[{"id":467,"name":"new Command","variant":"signature","kind":16384,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a new "},{"kind":"code","text":"`Command`"},{"kind":"text","text":" instance."}]},"sources":[{"fileName":"shell.ts","line":413,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L413"}],"parameters":[{"id":468,"name":"program","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The program name to execute.\nIt must be configured on "},{"kind":"code","text":"`tauri.conf.json > tauri > allowlist > shell > scope`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":469,"name":"args","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Program arguments."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"array","elementType":{"type":"intrinsic","name":"string"}}]},"defaultValue":"[]"},{"id":470,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Spawn options."}]},"type":{"type":"reference","target":626,"name":"SpawnOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":460,"name":"Command","package":"@tauri-apps/api"},"overwrites":{"type":"reference","target":551,"name":"EventEmitter.constructor"}}],"overwrites":{"type":"reference","target":550,"name":"EventEmitter.constructor"}},{"id":475,"name":"stderr","variant":"declaration","kind":1024,"flags":{"isReadonly":true},"comment":{"summary":[{"kind":"text","text":"Event emitter for the "},{"kind":"code","text":"`stderr`"},{"kind":"text","text":". Emits the "},{"kind":"code","text":"`data`"},{"kind":"text","text":" event."}]},"sources":[{"fileName":"shell.ts","line":403,"character":11,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L403"}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"literal","value":"data"}],"name":"EventEmitter","package":"@tauri-apps/api"},"defaultValue":"..."},{"id":474,"name":"stdout","variant":"declaration","kind":1024,"flags":{"isReadonly":true},"comment":{"summary":[{"kind":"text","text":"Event emitter for the "},{"kind":"code","text":"`stdout`"},{"kind":"text","text":". Emits the "},{"kind":"code","text":"`data`"},{"kind":"text","text":" event."}]},"sources":[{"fileName":"shell.ts","line":401,"character":11,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L401"}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"literal","value":"data"}],"name":"EventEmitter","package":"@tauri-apps/api"},"defaultValue":"..."},{"id":480,"name":"addListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":164,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L164"}],"signatures":[{"id":481,"name":"addListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Alias for "},{"kind":"code","text":"`emitter.on(eventName, listener)`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":164,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L164"}],"parameters":[{"id":482,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}},{"id":483,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":484,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":164,"character":38,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L164"}],"signatures":[{"id":485,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":164,"character":38,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L164"}],"parameters":[{"id":486,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":460,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":558,"name":"EventEmitter.addListener"}}],"inheritedFrom":{"type":"reference","target":557,"name":"EventEmitter.addListener"}},{"id":478,"name":"execute","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":489,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L489"}],"signatures":[{"id":479,"name":"execute","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Executes the command as a child process, waiting for it to finish and collecting all of its output."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Command } from '@tauri-apps/api/shell';\nconst output = await new Command('echo', 'message').execute();\nassert(output.code === 0);\nassert(output.signal === null);\nassert(output.stdout === 'message');\nassert(output.stderr === '');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to the child process output."}]}]},"sources":[{"fileName":"shell.ts","line":489,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L489"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":621,"name":"ChildProcess","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":522,"name":"listenerCount","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":272,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L272"}],"signatures":[{"id":523,"name":"listenerCount","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the number of listeners listening to the event named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":272,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L272"}],"parameters":[{"id":524,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}}],"type":{"type":"intrinsic","name":"number"},"inheritedFrom":{"type":"reference","target":600,"name":"EventEmitter.listenerCount"}}],"inheritedFrom":{"type":"reference","target":599,"name":"EventEmitter.listenerCount"}},{"id":508,"name":"off","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":221,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L221"}],"signatures":[{"id":509,"name":"off","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Removes the all specified listener from the listener array for the event eventName\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":221,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L221"}],"parameters":[{"id":510,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}},{"id":511,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":512,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":221,"character":30,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L221"}],"signatures":[{"id":513,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":221,"character":30,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L221"}],"parameters":[{"id":514,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":460,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":586,"name":"EventEmitter.off"}}],"inheritedFrom":{"type":"reference","target":585,"name":"EventEmitter.off"}},{"id":494,"name":"on","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":187,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L187"}],"signatures":[{"id":495,"name":"on","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function to the end of the listeners array for the\nevent named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":". No checks are made to see if the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" has\nalready been added. Multiple calls passing the same combination of "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":"and "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" will result in the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" being added, and called, multiple\ntimes.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"shell.ts","line":187,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L187"}],"parameters":[{"id":496,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}},{"id":497,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":498,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":187,"character":29,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L187"}],"signatures":[{"id":499,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":187,"character":29,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L187"}],"parameters":[{"id":500,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":460,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":572,"name":"EventEmitter.on"}}],"inheritedFrom":{"type":"reference","target":571,"name":"EventEmitter.on"}},{"id":501,"name":"once","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":206,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L206"}],"signatures":[{"id":502,"name":"once","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds a **one-time**"},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function for the event named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":". The\nnext time "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":" is triggered, this listener is removed and then invoked.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":206,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L206"}],"parameters":[{"id":503,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}},{"id":504,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":505,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":206,"character":31,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L206"}],"signatures":[{"id":506,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":206,"character":31,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L206"}],"parameters":[{"id":507,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":460,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":579,"name":"EventEmitter.once"}}],"inheritedFrom":{"type":"reference","target":578,"name":"EventEmitter.once"}},{"id":525,"name":"prependListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":289,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L289"}],"signatures":[{"id":526,"name":"prependListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function to the _beginning_ of the listeners array for the\nevent named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":". No checks are made to see if the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" has\nalready been added. Multiple calls passing the same combination of "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":"and "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" will result in the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" being added, and called, multiple\ntimes.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":289,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L289"}],"parameters":[{"id":527,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}},{"id":528,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":529,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":289,"character":42,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L289"}],"signatures":[{"id":530,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":289,"character":42,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L289"}],"parameters":[{"id":531,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":460,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":603,"name":"EventEmitter.prependListener"}}],"inheritedFrom":{"type":"reference","target":602,"name":"EventEmitter.prependListener"}},{"id":532,"name":"prependOnceListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":308,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L308"}],"signatures":[{"id":533,"name":"prependOnceListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds a **one-time**"},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function for the event named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":" to the_beginning_ of the listeners array. The next time "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":" is triggered, this\nlistener is removed, and then invoked.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":308,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L308"}],"parameters":[{"id":534,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}},{"id":535,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":536,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":308,"character":46,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L308"}],"signatures":[{"id":537,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":308,"character":46,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L308"}],"parameters":[{"id":538,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":460,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":610,"name":"EventEmitter.prependOnceListener"}}],"inheritedFrom":{"type":"reference","target":609,"name":"EventEmitter.prependOnceListener"}},{"id":515,"name":"removeAllListeners","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":238,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L238"}],"signatures":[{"id":516,"name":"removeAllListeners","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Removes all listeners, or those of the specified eventName.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":238,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L238"}],"parameters":[{"id":517,"name":"event","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}}],"type":{"type":"reference","target":460,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":593,"name":"EventEmitter.removeAllListeners"}}],"inheritedFrom":{"type":"reference","target":592,"name":"EventEmitter.removeAllListeners"}},{"id":487,"name":"removeListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":173,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L173"}],"signatures":[{"id":488,"name":"removeListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Alias for "},{"kind":"code","text":"`emitter.off(eventName, listener)`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":173,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L173"}],"parameters":[{"id":489,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":"error"},{"type":"literal","value":"close"}]}},{"id":490,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":491,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":173,"character":41,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L173"}],"signatures":[{"id":492,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":173,"character":41,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L173"}],"parameters":[{"id":493,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":460,"name":"Command","package":"@tauri-apps/api"},"inheritedFrom":{"type":"reference","target":565,"name":"EventEmitter.removeListener"}}],"inheritedFrom":{"type":"reference","target":564,"name":"EventEmitter.removeListener"}},{"id":476,"name":"spawn","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":451,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L451"}],"signatures":[{"id":477,"name":"spawn","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Executes the command as a child process, returning a handle to it."}],"blockTags":[{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to the child process handle."}]}]},"sources":[{"fileName":"shell.ts","line":451,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L451"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":539,"name":"Child","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":461,"name":"sidecar","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"shell.ts","line":436,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L436"}],"signatures":[{"id":462,"name":"sidecar","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a command to execute the given sidecar program."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { Command } from '@tauri-apps/api/shell';\nconst command = Command.sidecar('my-sidecar');\nconst output = await command.execute();\n```"}]}]},"sources":[{"fileName":"shell.ts","line":436,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L436"}],"parameters":[{"id":463,"name":"program","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The program to execute.\nIt must be configured on "},{"kind":"code","text":"`tauri.conf.json > tauri > allowlist > shell > scope`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":464,"name":"args","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"array","elementType":{"type":"intrinsic","name":"string"}}]},"defaultValue":"[]"},{"id":465,"name":"options","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":626,"name":"SpawnOptions","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":460,"name":"Command","package":"@tauri-apps/api"}}]}],"groups":[{"title":"Constructors","children":[466]},{"title":"Properties","children":[475,474]},{"title":"Methods","children":[480,478,522,508,494,501,525,532,515,487,476,461]}],"sources":[{"fileName":"shell.ts","line":393,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L393"}],"extendedTypes":[{"type":"reference","target":549,"typeArguments":[{"type":"union","types":[{"type":"literal","value":"close"},{"type":"literal","value":"error"}]}],"name":"EventEmitter","package":"@tauri-apps/api"}]},{"id":549,"name":"EventEmitter","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":550,"name":"constructor","variant":"declaration","kind":512,"flags":{},"signatures":[{"id":551,"name":"new EventEmitter","variant":"signature","kind":16384,"flags":{},"typeParameter":[{"id":552,"name":"E","variant":"typeParam","kind":131072,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":557,"name":"addListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":164,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L164"}],"signatures":[{"id":558,"name":"addListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Alias for "},{"kind":"code","text":"`emitter.on(eventName, listener)`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":164,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L164"}],"parameters":[{"id":559,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}},{"id":560,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":561,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":164,"character":38,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L164"}],"signatures":[{"id":562,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":164,"character":38,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L164"}],"parameters":[{"id":563,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":599,"name":"listenerCount","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":272,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L272"}],"signatures":[{"id":600,"name":"listenerCount","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the number of listeners listening to the event named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":272,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L272"}],"parameters":[{"id":601,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}}],"type":{"type":"intrinsic","name":"number"}}]},{"id":585,"name":"off","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":221,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L221"}],"signatures":[{"id":586,"name":"off","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Removes the all specified listener from the listener array for the event eventName\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":221,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L221"}],"parameters":[{"id":587,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}},{"id":588,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":589,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":221,"character":30,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L221"}],"signatures":[{"id":590,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":221,"character":30,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L221"}],"parameters":[{"id":591,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":571,"name":"on","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":187,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L187"}],"signatures":[{"id":572,"name":"on","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function to the end of the listeners array for the\nevent named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":". No checks are made to see if the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" has\nalready been added. Multiple calls passing the same combination of "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":"and "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" will result in the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" being added, and called, multiple\ntimes.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"shell.ts","line":187,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L187"}],"parameters":[{"id":573,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}},{"id":574,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":575,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":187,"character":29,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L187"}],"signatures":[{"id":576,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":187,"character":29,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L187"}],"parameters":[{"id":577,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":578,"name":"once","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":206,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L206"}],"signatures":[{"id":579,"name":"once","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds a **one-time**"},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function for the event named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":". The\nnext time "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":" is triggered, this listener is removed and then invoked.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":206,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L206"}],"parameters":[{"id":580,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}},{"id":581,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":582,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":206,"character":31,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L206"}],"signatures":[{"id":583,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":206,"character":31,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L206"}],"parameters":[{"id":584,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":602,"name":"prependListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":289,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L289"}],"signatures":[{"id":603,"name":"prependListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function to the _beginning_ of the listeners array for the\nevent named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":". No checks are made to see if the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" has\nalready been added. Multiple calls passing the same combination of "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":"and "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" will result in the "},{"kind":"code","text":"`listener`"},{"kind":"text","text":" being added, and called, multiple\ntimes.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":289,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L289"}],"parameters":[{"id":604,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}},{"id":605,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":606,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":289,"character":42,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L289"}],"signatures":[{"id":607,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":289,"character":42,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L289"}],"parameters":[{"id":608,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":609,"name":"prependOnceListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":308,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L308"}],"signatures":[{"id":610,"name":"prependOnceListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Adds a **one-time**"},{"kind":"code","text":"`listener`"},{"kind":"text","text":" function for the event named "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":" to the_beginning_ of the listeners array. The next time "},{"kind":"code","text":"`eventName`"},{"kind":"text","text":" is triggered, this\nlistener is removed, and then invoked.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":308,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L308"}],"parameters":[{"id":611,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}},{"id":612,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":613,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":308,"character":46,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L308"}],"signatures":[{"id":614,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":308,"character":46,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L308"}],"parameters":[{"id":615,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":592,"name":"removeAllListeners","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":238,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L238"}],"signatures":[{"id":593,"name":"removeAllListeners","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Removes all listeners, or those of the specified eventName.\n\nReturns a reference to the "},{"kind":"code","text":"`EventEmitter`"},{"kind":"text","text":", so that calls can be chained."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":238,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L238"}],"parameters":[{"id":594,"name":"event","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]},{"id":564,"name":"removeListener","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"shell.ts","line":173,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L173"}],"signatures":[{"id":565,"name":"removeListener","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Alias for "},{"kind":"code","text":"`emitter.off(eventName, listener)`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":173,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L173"}],"parameters":[{"id":566,"name":"eventName","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}},{"id":567,"name":"listener","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":568,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"shell.ts","line":173,"character":41,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L173"}],"signatures":[{"id":569,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"shell.ts","line":173,"character":41,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L173"}],"parameters":[{"id":570,"name":"args","variant":"param","kind":32768,"flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":549,"typeArguments":[{"type":"reference","target":-1,"name":"E","refersToTypeParameter":true}],"name":"EventEmitter","package":"@tauri-apps/api"}}]}],"groups":[{"title":"Constructors","children":[550]},{"title":"Methods","children":[557,599,585,571,578,602,609,592,564]}],"sources":[{"fileName":"shell.ts","line":153,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L153"}],"typeParameters":[{"id":616,"name":"E","variant":"typeParam","kind":131072,"flags":{},"type":{"type":"intrinsic","name":"string"}}],"extendedBy":[{"type":"reference","target":460,"name":"Command"}]},{"id":621,"name":"ChildProcess","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":622,"name":"code","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Exit code of the process. "},{"kind":"code","text":"`null`"},{"kind":"text","text":" if the process was terminated by a signal on Unix."}]},"sources":[{"fileName":"shell.ts","line":109,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L109"}],"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"intrinsic","name":"number"}]}},{"id":623,"name":"signal","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"If the process was terminated by a signal, represents that signal."}]},"sources":[{"fileName":"shell.ts","line":111,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L111"}],"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"intrinsic","name":"number"}]}},{"id":625,"name":"stderr","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The data that the process wrote to "},{"kind":"code","text":"`stderr`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"shell.ts","line":115,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L115"}],"type":{"type":"intrinsic","name":"string"}},{"id":624,"name":"stdout","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The data that the process wrote to "},{"kind":"code","text":"`stdout`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"shell.ts","line":113,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L113"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[622,623,625,624]}],"sources":[{"fileName":"shell.ts","line":107,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L107"}]},{"id":626,"name":"SpawnOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":627,"name":"cwd","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Current working directory."}]},"sources":[{"fileName":"shell.ts","line":88,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L88"}],"type":{"type":"intrinsic","name":"string"}},{"id":629,"name":"encoding","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Character encoding for stdout/stderr"}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.1.0"}]}]},"sources":[{"fileName":"shell.ts","line":96,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L96"}],"type":{"type":"intrinsic","name":"string"}},{"id":628,"name":"env","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Environment variables. set to "},{"kind":"code","text":"`null`"},{"kind":"text","text":" to clear the process env."}]},"sources":[{"fileName":"shell.ts","line":90,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L90"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"string"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}}],"groups":[{"title":"Properties","children":[627,629,628]}],"sources":[{"fileName":"shell.ts","line":86,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L86"}]},{"id":617,"name":"open","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"shell.ts","line":564,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L564"}],"signatures":[{"id":618,"name":"open","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Opens a path or URL with the system's default app,\nor the one specified with "},{"kind":"code","text":"`openWith`"},{"kind":"text","text":".\n\nThe "},{"kind":"code","text":"`openWith`"},{"kind":"text","text":" value must be one of "},{"kind":"code","text":"`firefox`"},{"kind":"text","text":", "},{"kind":"code","text":"`google chrome`"},{"kind":"text","text":", "},{"kind":"code","text":"`chromium`"},{"kind":"text","text":" "},{"kind":"code","text":"`safari`"},{"kind":"text","text":",\n"},{"kind":"code","text":"`open`"},{"kind":"text","text":", "},{"kind":"code","text":"`start`"},{"kind":"text","text":", "},{"kind":"code","text":"`xdg-open`"},{"kind":"text","text":", "},{"kind":"code","text":"`gio`"},{"kind":"text","text":", "},{"kind":"code","text":"`gnome-open`"},{"kind":"text","text":", "},{"kind":"code","text":"`kde-open`"},{"kind":"text","text":" or "},{"kind":"code","text":"`wslview`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { open } from '@tauri-apps/api/shell';\n// opens the given URL on the default browser:\nawait open('https://github.com/tauri-apps/tauri');\n// opens the given URL using `firefox`:\nawait open('https://github.com/tauri-apps/tauri', 'firefox');\n// opens a file using the default program:\nawait open('/path/to/file');\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"shell.ts","line":564,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L564"}],"parameters":[{"id":619,"name":"path","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The path or URL to open.\nThis value is matched against the string regex defined on "},{"kind":"code","text":"`tauri.conf.json > tauri > allowlist > shell > open`"},{"kind":"text","text":",\nwhich defaults to "},{"kind":"code","text":"`^((mailto:\\w+)|(tel:\\w+)|(https?://\\w+)).+`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":620,"name":"openWith","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The app to open the file or URL with.\nDefaults to the system default application for the specified path type."}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Classes","children":[539,460,549]},{"title":"Interfaces","children":[621,626]},{"title":"Functions","children":[617]}],"sources":[{"fileName":"shell.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/shell.ts#L1"}]},{"id":630,"name":"tauri","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Invoke your custom commands.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.tauri`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"children":[{"id":631,"name":"InvokeArgs","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[{"kind":"text","text":"Command arguments."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"tauri.ts","line":63,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/tauri.ts#L63"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"unknown"}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"}},{"id":644,"name":"convertFileSrc","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"tauri.ts","line":129,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/tauri.ts#L129"}],"signatures":[{"id":645,"name":"convertFileSrc","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Convert a device file path to an URL that can be loaded by the webview.\nNote that "},{"kind":"code","text":"`asset:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`https://asset.localhost`"},{"kind":"text","text":" must be added to ["},{"kind":"code","text":"`tauri.security.csp`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#securityconfig.csp) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":".\nExample CSP value: "},{"kind":"code","text":"`\"csp\": \"default-src 'self'; img-src 'self' asset: https://asset.localhost\"`"},{"kind":"text","text":" to use the asset protocol on image sources.\n\nAdditionally, "},{"kind":"code","text":"`asset`"},{"kind":"text","text":" must be added to ["},{"kind":"code","text":"`tauri.allowlist.protocol`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.protocol)\nin "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" and its access scope must be defined on the "},{"kind":"code","text":"`assetScope`"},{"kind":"text","text":" array on the same "},{"kind":"code","text":"`protocol`"},{"kind":"text","text":" object."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appDataDir, join } from '@tauri-apps/api/path';\nimport { convertFileSrc } from '@tauri-apps/api/tauri';\nconst appDataDirPath = await appDataDir();\nconst filePath = await join(appDataDirPath, 'assets/video.mp4');\nconst assetUrl = convertFileSrc(filePath);\n\nconst video = document.getElementById('my-video');\nconst source = document.createElement('source');\nsource.type = 'video/mp4';\nsource.src = assetUrl;\nvideo.appendChild(source);\nvideo.load();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"the URL that can be used as source on the webview."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"tauri.ts","line":129,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/tauri.ts#L129"}],"parameters":[{"id":646,"name":"filePath","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The file path."}]},"type":{"type":"intrinsic","name":"string"}},{"id":647,"name":"protocol","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The protocol to use. Defaults to "},{"kind":"code","text":"`asset`"},{"kind":"text","text":". You only need to set this when using a custom protocol."}]},"type":{"type":"intrinsic","name":"string"},"defaultValue":"'asset'"}],"type":{"type":"intrinsic","name":"string"}}]},{"id":639,"name":"invoke","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"tauri.ts","line":79,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/tauri.ts#L79"}],"signatures":[{"id":640,"name":"invoke","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sends a message to the backend."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { invoke } from '@tauri-apps/api/tauri';\nawait invoke('login', { user: 'tauri', password: 'poiwe3h4r5ip3yrhtew9ty' });\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving or rejecting to the backend response."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"tauri.ts","line":79,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/tauri.ts#L79"}],"typeParameter":[{"id":641,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":642,"name":"cmd","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The command name."}]},"type":{"type":"intrinsic","name":"string"}},{"id":643,"name":"args","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The optional arguments to pass to the command."}]},"type":{"type":"reference","target":631,"name":"InvokeArgs","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":632,"name":"transformCallback","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"tauri.ts","line":36,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/tauri.ts#L36"}],"signatures":[{"id":633,"name":"transformCallback","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Transforms a callback function to a string identifier that can be passed to the backend.\nThe backend uses the identifier to "},{"kind":"code","text":"`eval()`"},{"kind":"text","text":" the callback."}],"blockTags":[{"tag":"@returns","content":[{"kind":"text","text":"A unique identifier associated with the callback function."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"tauri.ts","line":36,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/tauri.ts#L36"}],"parameters":[{"id":634,"name":"callback","variant":"param","kind":32768,"flags":{"isOptional":true},"type":{"type":"reflection","declaration":{"id":635,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"tauri.ts","line":37,"character":13,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/tauri.ts#L37"}],"signatures":[{"id":636,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"tauri.ts","line":37,"character":13,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/tauri.ts#L37"}],"parameters":[{"id":637,"name":"response","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"void"}}]}}},{"id":638,"name":"once","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"},"defaultValue":"false"}],"type":{"type":"intrinsic","name":"number"}}]}],"groups":[{"title":"Type Aliases","children":[631]},{"title":"Functions","children":[644,639,632]}],"sources":[{"fileName":"tauri.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/tauri.ts#L1"}]},{"id":648,"name":"updater","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Customize the auto updater flow.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.updater`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"children":[{"id":653,"name":"UpdateManifest","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":656,"name":"body","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"updater.ts","line":34,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/updater.ts#L34"}],"type":{"type":"intrinsic","name":"string"}},{"id":655,"name":"date","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"updater.ts","line":33,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/updater.ts#L33"}],"type":{"type":"intrinsic","name":"string"}},{"id":654,"name":"version","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"updater.ts","line":32,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/updater.ts#L32"}],"type":{"type":"intrinsic","name":"string"}}],"groups":[{"title":"Properties","children":[656,655,654]}],"sources":[{"fileName":"updater.ts","line":31,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/updater.ts#L31"}]},{"id":657,"name":"UpdateResult","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":658,"name":"manifest","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"updater.ts","line":41,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/updater.ts#L41"}],"type":{"type":"reference","target":653,"name":"UpdateManifest","package":"@tauri-apps/api"}},{"id":659,"name":"shouldUpdate","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"updater.ts","line":42,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/updater.ts#L42"}],"type":{"type":"intrinsic","name":"boolean"}}],"groups":[{"title":"Properties","children":[658,659]}],"sources":[{"fileName":"updater.ts","line":40,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/updater.ts#L40"}]},{"id":650,"name":"UpdateStatusResult","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":651,"name":"error","variant":"declaration","kind":1024,"flags":{"isOptional":true},"sources":[{"fileName":"updater.ts","line":24,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/updater.ts#L24"}],"type":{"type":"intrinsic","name":"string"}},{"id":652,"name":"status","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"updater.ts","line":25,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/updater.ts#L25"}],"type":{"type":"reference","target":649,"name":"UpdateStatus","package":"@tauri-apps/api"}}],"groups":[{"title":"Properties","children":[651,652]}],"sources":[{"fileName":"updater.ts","line":23,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/updater.ts#L23"}]},{"id":649,"name":"UpdateStatus","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"updater.ts","line":18,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/updater.ts#L18"}],"type":{"type":"union","types":[{"type":"literal","value":"PENDING"},{"type":"literal","value":"ERROR"},{"type":"literal","value":"DONE"},{"type":"literal","value":"UPTODATE"}]}},{"id":668,"name":"checkUpdate","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"updater.ts","line":146,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/updater.ts#L146"}],"signatures":[{"id":669,"name":"checkUpdate","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Checks if an update is available."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { checkUpdate } from '@tauri-apps/api/updater';\nconst update = await checkUpdate();\n// now run installUpdate() if needed\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Promise resolving to the update status."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"updater.ts","line":146,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/updater.ts#L146"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":657,"name":"UpdateResult","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":666,"name":"installUpdate","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"updater.ts","line":87,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/updater.ts#L87"}],"signatures":[{"id":667,"name":"installUpdate","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Install the update if there's one available."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { checkUpdate, installUpdate } from '@tauri-apps/api/updater';\nconst update = await checkUpdate();\nif (update.shouldUpdate) {\n console.log(`Installing update ${update.manifest?.version}, ${update.manifest?.date}, ${update.manifest.body}`);\n await installUpdate();\n}\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"updater.ts","line":87,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/updater.ts#L87"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":660,"name":"onUpdaterEvent","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"updater.ts","line":63,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/updater.ts#L63"}],"signatures":[{"id":661,"name":"onUpdaterEvent","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to an updater event."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { onUpdaterEvent } from \"@tauri-apps/api/updater\";\nconst unlisten = await onUpdaterEvent(({ error, status }) => {\n console.log('Updater event', error, status);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"updater.ts","line":63,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/updater.ts#L63"}],"parameters":[{"id":662,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":663,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"updater.ts","line":64,"character":11,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/updater.ts#L64"}],"signatures":[{"id":664,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"updater.ts","line":64,"character":11,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/updater.ts#L64"}],"parameters":[{"id":665,"name":"status","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":650,"name":"UpdateStatusResult","package":"@tauri-apps/api"}}],"type":{"type":"intrinsic","name":"void"}}]}}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Interfaces","children":[653,657,650]},{"title":"Type Aliases","children":[649]},{"title":"Functions","children":[668,666,660]}],"sources":[{"fileName":"updater.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/updater.ts#L1"}]},{"id":670,"name":"window","variant":"declaration","kind":2,"flags":{},"comment":{"summary":[{"kind":"text","text":"Provides APIs to create windows, communicate with other windows and manipulate the current window.\n\nThis package is also accessible with "},{"kind":"code","text":"`window.__TAURI__.window`"},{"kind":"text","text":" when ["},{"kind":"code","text":"`build.withGlobalTauri`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#buildconfig.withglobaltauri) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":".\n\nThe APIs must be added to ["},{"kind":"code","text":"`tauri.allowlist.window`"},{"kind":"text","text":"](https://tauri.app/v1/api/config/#allowlistconfig.window) in "},{"kind":"code","text":"`tauri.conf.json`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```json\n{\n \"tauri\": {\n \"allowlist\": {\n \"window\": {\n \"all\": true, // enable all window APIs\n \"create\": true, // enable window creation\n \"center\": true,\n \"requestUserAttention\": true,\n \"setResizable\": true,\n \"setMaximizable\": true,\n \"setMinimizable\": true,\n \"setClosable\": true,\n \"setTitle\": true,\n \"maximize\": true,\n \"unmaximize\": true,\n \"minimize\": true,\n \"unminimize\": true,\n \"show\": true,\n \"hide\": true,\n \"close\": true,\n \"setDecorations\": true,\n \"setAlwaysOnTop\": true,\n \"setContentProtected\": true,\n \"setSize\": true,\n \"setMinSize\": true,\n \"setMaxSize\": true,\n \"setPosition\": true,\n \"setFullscreen\": true,\n \"setFocus\": true,\n \"setIcon\": true,\n \"setSkipTaskbar\": true,\n \"setCursorGrab\": true,\n \"setCursorVisible\": true,\n \"setCursorIcon\": true,\n \"setCursorPosition\": true,\n \"setIgnoreCursorEvents\": true,\n \"startDragging\": true,\n \"print\": true\n }\n }\n }\n}\n```"},{"kind":"text","text":"\nIt is recommended to allowlist only the APIs you use for optimal bundle size and security.\n\n## Window events\n\nEvents can be listened to using "},{"kind":"code","text":"`appWindow.listen`"},{"kind":"text","text":":\n"},{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nappWindow.listen(\"my-window-event\", ({ event, payload }) => { });\n```"}]},"children":[{"id":1101,"name":"UserAttentionType","variant":"declaration","kind":8,"flags":{},"comment":{"summary":[{"kind":"text","text":"Attention type to request on a window."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":1102,"name":"Critical","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"#### Platform-specific\n- **macOS:** Bounces the dock icon until the application is in focus.\n- **Windows:** Flashes both the window and the taskbar button until the application is in focus."}]},"sources":[{"fileName":"window.ts","line":228,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L228"}],"type":{"type":"literal","value":1}},{"id":1103,"name":"Informational","variant":"declaration","kind":16,"flags":{},"comment":{"summary":[{"kind":"text","text":"#### Platform-specific\n- **macOS:** Bounces the dock icon once.\n- **Windows:** Flashes the taskbar button until the application is in focus."}]},"sources":[{"fileName":"window.ts","line":234,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L234"}],"type":{"type":"literal","value":2}}],"groups":[{"title":"Enumeration Members","children":[1102,1103]}],"sources":[{"fileName":"window.ts","line":222,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L222"}]},{"id":1046,"name":"CloseRequestedEvent","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"children":[{"id":1047,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"window.ts","line":2179,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2179"}],"signatures":[{"id":1048,"name":"new CloseRequestedEvent","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"window.ts","line":2179,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2179"}],"parameters":[{"id":1049,"name":"event","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1161,"typeArguments":[{"type":"literal","value":null}],"name":"Event","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":1046,"name":"CloseRequestedEvent","package":"@tauri-apps/api"}}]},{"id":1053,"name":"_preventDefault","variant":"declaration","kind":1024,"flags":{"isPrivate":true},"sources":[{"fileName":"window.ts","line":2177,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2177"}],"type":{"type":"intrinsic","name":"boolean"},"defaultValue":"false"},{"id":1050,"name":"event","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name"}]},"sources":[{"fileName":"window.ts","line":2172,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2172"}],"type":{"type":"reference","target":73,"name":"EventName","package":"@tauri-apps/api"}},{"id":1052,"name":"id","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event identifier used to unlisten"}]},"sources":[{"fileName":"window.ts","line":2176,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2176"}],"type":{"type":"intrinsic","name":"number"}},{"id":1051,"name":"windowLabel","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The label of the window that emitted this event."}]},"sources":[{"fileName":"window.ts","line":2174,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2174"}],"type":{"type":"intrinsic","name":"string"}},{"id":1056,"name":"isPreventDefault","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":2189,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2189"}],"signatures":[{"id":1057,"name":"isPreventDefault","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"window.ts","line":2189,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2189"}],"type":{"type":"intrinsic","name":"boolean"}}]},{"id":1054,"name":"preventDefault","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":2185,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2185"}],"signatures":[{"id":1055,"name":"preventDefault","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"window.ts","line":2185,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2185"}],"type":{"type":"intrinsic","name":"void"}}]}],"groups":[{"title":"Constructors","children":[1047]},{"title":"Properties","children":[1053,1050,1052,1051]},{"title":"Methods","children":[1056,1054]}],"sources":[{"fileName":"window.ts","line":2170,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2170"}]},{"id":1082,"name":"LogicalPosition","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"A position represented in logical pixels."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":1083,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"window.ts","line":166,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L166"}],"signatures":[{"id":1084,"name":"new LogicalPosition","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"window.ts","line":166,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L166"}],"parameters":[{"id":1085,"name":"x","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}},{"id":1086,"name":"y","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":1082,"name":"LogicalPosition","package":"@tauri-apps/api"}}]},{"id":1087,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":162,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L162"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'Logical'"},{"id":1088,"name":"x","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":163,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L163"}],"type":{"type":"intrinsic","name":"number"}},{"id":1089,"name":"y","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":164,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L164"}],"type":{"type":"intrinsic","name":"number"}}],"groups":[{"title":"Constructors","children":[1083]},{"title":"Properties","children":[1087,1088,1089]}],"sources":[{"fileName":"window.ts","line":161,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L161"}]},{"id":1063,"name":"LogicalSize","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"A size represented in logical pixels."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":1064,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"window.ts","line":120,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L120"}],"signatures":[{"id":1065,"name":"new LogicalSize","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"window.ts","line":120,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L120"}],"parameters":[{"id":1066,"name":"width","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}},{"id":1067,"name":"height","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":1063,"name":"LogicalSize","package":"@tauri-apps/api"}}]},{"id":1070,"name":"height","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":118,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L118"}],"type":{"type":"intrinsic","name":"number"}},{"id":1068,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":116,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L116"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'Logical'"},{"id":1069,"name":"width","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":117,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L117"}],"type":{"type":"intrinsic","name":"number"}}],"groups":[{"title":"Constructors","children":[1064]},{"title":"Properties","children":[1070,1068,1069]}],"sources":[{"fileName":"window.ts","line":115,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L115"}]},{"id":1090,"name":"PhysicalPosition","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"A position represented in physical pixels."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":1091,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"window.ts","line":182,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L182"}],"signatures":[{"id":1092,"name":"new PhysicalPosition","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"window.ts","line":182,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L182"}],"parameters":[{"id":1093,"name":"x","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}},{"id":1094,"name":"y","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":1090,"name":"PhysicalPosition","package":"@tauri-apps/api"}}]},{"id":1095,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":178,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L178"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'Physical'"},{"id":1096,"name":"x","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":179,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L179"}],"type":{"type":"intrinsic","name":"number"}},{"id":1097,"name":"y","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":180,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L180"}],"type":{"type":"intrinsic","name":"number"}},{"id":1098,"name":"toLogical","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":197,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L197"}],"signatures":[{"id":1099,"name":"toLogical","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Converts the physical position to a logical one."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst factor = await appWindow.scaleFactor();\nconst position = await appWindow.innerPosition();\nconst logical = position.toLogical(factor);\n```"}]}]},"sources":[{"fileName":"window.ts","line":197,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L197"}],"parameters":[{"id":1100,"name":"scaleFactor","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":1082,"name":"LogicalPosition","package":"@tauri-apps/api"}}]}],"groups":[{"title":"Constructors","children":[1091]},{"title":"Properties","children":[1095,1096,1097]},{"title":"Methods","children":[1098]}],"sources":[{"fileName":"window.ts","line":177,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L177"}]},{"id":1071,"name":"PhysicalSize","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"A size represented in physical pixels."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":1072,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"window.ts","line":136,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L136"}],"signatures":[{"id":1073,"name":"new PhysicalSize","variant":"signature","kind":16384,"flags":{},"sources":[{"fileName":"window.ts","line":136,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L136"}],"parameters":[{"id":1074,"name":"width","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}},{"id":1075,"name":"height","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":1071,"name":"PhysicalSize","package":"@tauri-apps/api"}}]},{"id":1078,"name":"height","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":134,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L134"}],"type":{"type":"intrinsic","name":"number"}},{"id":1076,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":132,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L132"}],"type":{"type":"intrinsic","name":"string"},"defaultValue":"'Physical'"},{"id":1077,"name":"width","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":133,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L133"}],"type":{"type":"intrinsic","name":"number"}},{"id":1079,"name":"toLogical","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":151,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L151"}],"signatures":[{"id":1080,"name":"toLogical","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Converts the physical size to a logical one."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst factor = await appWindow.scaleFactor();\nconst size = await appWindow.innerSize();\nconst logical = size.toLogical(factor);\n```"}]}]},"sources":[{"fileName":"window.ts","line":151,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L151"}],"parameters":[{"id":1081,"name":"scaleFactor","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"number"}}],"type":{"type":"reference","target":1063,"name":"LogicalSize","package":"@tauri-apps/api"}}]}],"groups":[{"title":"Constructors","children":[1072]},{"title":"Properties","children":[1078,1076,1077]},{"title":"Methods","children":[1079]}],"sources":[{"fileName":"window.ts","line":131,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L131"}]},{"id":673,"name":"WebviewWindow","variant":"declaration","kind":128,"flags":{},"comment":{"summary":[{"kind":"text","text":"Create new webview windows and get a handle to existing ones.\n\nWindows are identified by a *label* a unique identifier that can be used to reference it later.\nIt may only contain alphanumeric characters "},{"kind":"code","text":"`a-zA-Z`"},{"kind":"text","text":" plus the following special characters "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\n// loading embedded asset:\nconst webview = new WebviewWindow('theUniqueLabel', {\n url: 'path/to/page.html'\n});\n// alternatively, load a remote URL:\nconst webview = new WebviewWindow('theUniqueLabel', {\n url: 'https://github.com/tauri-apps/tauri'\n});\n\nwebview.once('tauri://created', function () {\n // webview window successfully created\n});\nwebview.once('tauri://error', function (e) {\n // an error happened creating the webview window\n});\n\n// emit an event to the backend\nawait webview.emit(\"some event\", \"data\");\n// listen to an event from the backend\nconst unlisten = await webview.listen(\"event name\", e => {});\nunlisten();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"children":[{"id":679,"name":"constructor","variant":"declaration","kind":512,"flags":{},"sources":[{"fileName":"window.ts","line":2247,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2247"}],"signatures":[{"id":680,"name":"new WebviewWindow","variant":"signature","kind":16384,"flags":{},"comment":{"summary":[{"kind":"text","text":"Creates a new WebviewWindow."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { WebviewWindow } from '@tauri-apps/api/window';\nconst webview = new WebviewWindow('my-label', {\n url: 'https://github.com/tauri-apps/tauri'\n});\nwebview.once('tauri://created', function () {\n // webview window successfully created\n});\nwebview.once('tauri://error', function (e) {\n // an error happened creating the webview window\n});\n```"},{"kind":"text","text":"\n\n*"}]},{"tag":"@returns","content":[{"kind":"text","text":"The WebviewWindow instance to communicate with the webview."}]}]},"sources":[{"fileName":"window.ts","line":2247,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2247"}],"parameters":[{"id":681,"name":"label","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The unique webview window label. Must be alphanumeric: "},{"kind":"code","text":"`a-zA-Z-/:_`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":682,"name":"options","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1129,"name":"WindowOptions","package":"@tauri-apps/api"},"defaultValue":"{}"}],"type":{"type":"reference","target":673,"name":"WebviewWindow","package":"@tauri-apps/api"},"overwrites":{"type":"reference","target":-1,"name":"WindowManager.constructor"}}],"overwrites":{"type":"reference","target":-1,"name":"WindowManager.constructor"}},{"id":829,"name":"label","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The window label. It is a unique identifier for the window, can be used to reference it later."}]},"sources":[{"fileName":"window.ts","line":318,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L318"}],"type":{"type":"intrinsic","name":"string"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.label"}},{"id":830,"name":"listeners","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Local event listeners."}]},"sources":[{"fileName":"window.ts","line":320,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L320"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Record"},"typeArguments":[{"type":"intrinsic","name":"string"},{"type":"array","elementType":{"type":"reference","target":1167,"typeArguments":[{"type":"intrinsic","name":"any"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"name":"Record","package":"typescript","externalUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.listeners"}},{"id":717,"name":"center","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":926,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L926"}],"signatures":[{"id":718,"name":"center","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Centers the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.center();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":926,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L926"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.center"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.center"}},{"id":751,"name":"close","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1326,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1326"}],"signatures":[{"id":752,"name":"close","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Closes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.close();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1326,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1326"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.close"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.close"}},{"id":841,"name":"emit","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":430,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L430"}],"signatures":[{"id":842,"name":"emit","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Emits an event to the backend and all Tauri windows.\nThe event will have this window's "},{"kind":"inline-tag","tag":"@link","text":"label","target":829,"tsLinkText":"label"},{"kind":"text","text":" as "},{"kind":"inline-tag","tag":"@link","text":"source window label","target":1163,"tsLinkText":"source window label"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.emit('window-loaded', { loggedIn: true, token: 'authToken' });\n```"},{"kind":"text","text":"\n\nThis function can also be used to communicate between windows:\n"},{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.listen('sync-data', (event) => { });\n\n// on another window...\nimport { WebviewWindow } from '@tauri-apps/api/window';\nconst otherWindow = WebviewWindow.getByLabel('other')\nawait otherWindow.emit('sync-data');\n```"},{"kind":"text","text":"\n\nGlobal listeners are also triggered:\n"},{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nimport { listen } from '@tauri-apps/api/event';\nawait listen('ping', (event) => { });\n\nawait appWindow.emit('ping');\n```"}]}]},"sources":[{"fileName":"window.ts","line":430,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L430"}],"parameters":[{"id":843,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":844,"name":"payload","variant":"param","kind":32768,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Event payload."}]},"type":{"type":"intrinsic","name":"unknown"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.emit"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.emit"}},{"id":749,"name":"hide","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1301,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1301"}],"signatures":[{"id":750,"name":"hide","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window visibility to false."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.hide();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1301,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1301"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.hide"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.hide"}},{"id":685,"name":"innerPosition","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":500,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L500"}],"signatures":[{"id":686,"name":"innerPosition","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"The position of the top-left hand corner of the window's client area relative to the top-left hand corner of the desktop."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst position = await appWindow.innerPosition();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window's inner position."}]}]},"sources":[{"fileName":"window.ts","line":500,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L500"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1090,"name":"PhysicalPosition","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.innerPosition"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.innerPosition"}},{"id":689,"name":"innerSize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":551,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L551"}],"signatures":[{"id":690,"name":"innerSize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"The physical size of the window's client area.\nThe client area is the content of the window, excluding the title bar and borders."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst size = await appWindow.innerSize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window's inner size."}]}]},"sources":[{"fileName":"window.ts","line":551,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L551"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1071,"name":"PhysicalSize","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.innerSize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.innerSize"}},{"id":709,"name":"isClosable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":819,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L819"}],"signatures":[{"id":710,"name":"isClosable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window’s native close button state.\n\n#### Platform-specific\n\n- **Linux / iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst closable = await appWindow.isClosable();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window's native close button is enabled or not."}]}]},"sources":[{"fileName":"window.ts","line":819,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L819"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isClosable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isClosable"}},{"id":701,"name":"isDecorated","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":704,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L704"}],"signatures":[{"id":702,"name":"isDecorated","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current decorated state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst decorated = await appWindow.isDecorated();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is decorated or not."}]}]},"sources":[{"fileName":"window.ts","line":704,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L704"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isDecorated"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isDecorated"}},{"id":699,"name":"isFocused","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":679,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L679"}],"signatures":[{"id":700,"name":"isFocused","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current focus state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst focused = await appWindow.isFocused();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is focused or not."}]},{"tag":"@since","content":[{"kind":"text","text":"1.4"}]}]},"sources":[{"fileName":"window.ts","line":679,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L679"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isFocused"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isFocused"}},{"id":693,"name":"isFullscreen","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":602,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L602"}],"signatures":[{"id":694,"name":"isFullscreen","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current fullscreen state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst fullscreen = await appWindow.isFullscreen();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is in fullscreen mode or not."}]}]},"sources":[{"fileName":"window.ts","line":602,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L602"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isFullscreen"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isFullscreen"}},{"id":705,"name":"isMaximizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":759,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L759"}],"signatures":[{"id":706,"name":"isMaximizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window’s native maximize button state.\n\n#### Platform-specific\n\n- **Linux / iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst maximizable = await appWindow.isMaximizable();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window's native maximize button is enabled or not."}]}]},"sources":[{"fileName":"window.ts","line":759,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L759"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMaximizable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMaximizable"}},{"id":697,"name":"isMaximized","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":652,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L652"}],"signatures":[{"id":698,"name":"isMaximized","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current maximized state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst maximized = await appWindow.isMaximized();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is maximized or not."}]}]},"sources":[{"fileName":"window.ts","line":652,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L652"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMaximized"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMaximized"}},{"id":707,"name":"isMinimizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":789,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L789"}],"signatures":[{"id":708,"name":"isMinimizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window’s native minimize button state.\n\n#### Platform-specific\n\n- **Linux / iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst minimizable = await appWindow.isMinimizable();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window's native minimize button is enabled or not."}]}]},"sources":[{"fileName":"window.ts","line":789,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L789"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMinimizable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMinimizable"}},{"id":695,"name":"isMinimized","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":627,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L627"}],"signatures":[{"id":696,"name":"isMinimized","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current minimized state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst minimized = await appWindow.isMinimized();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.3.0"}]}]},"sources":[{"fileName":"window.ts","line":627,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L627"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMinimized"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isMinimized"}},{"id":703,"name":"isResizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":729,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L729"}],"signatures":[{"id":704,"name":"isResizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current resizable state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst resizable = await appWindow.isResizable();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is resizable or not."}]}]},"sources":[{"fileName":"window.ts","line":729,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L729"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isResizable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isResizable"}},{"id":711,"name":"isVisible","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":844,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L844"}],"signatures":[{"id":712,"name":"isVisible","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current visible state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst visible = await appWindow.isVisible();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"Whether the window is visible or not."}]}]},"sources":[{"fileName":"window.ts","line":844,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L844"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isVisible"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.isVisible"}},{"id":831,"name":"listen","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":351,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L351"}],"signatures":[{"id":832,"name":"listen","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to an event emitted by the backend or webview.\nThe event must either be a global event or an event targetting this window.\n\nSee "},{"kind":"inline-tag","tag":"@link","text":"`emit`","target":841,"tsLinkText":"`emit`"},{"kind":"text","text":" for more information."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst unlisten = await appWindow.listen('state-changed', (event) => {\n console.log(`Got error: ${payload}`);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"},{"kind":"text","text":"\n\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event."}]}]},"sources":[{"fileName":"window.ts","line":351,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L351"}],"typeParameter":[{"id":833,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":834,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"reference","target":73,"name":"EventName","package":"@tauri-apps/api"}},{"id":835,"name":"handler","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event handler."}]},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.listen"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.listen"}},{"id":737,"name":"maximize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1151,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1151"}],"signatures":[{"id":738,"name":"maximize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Maximizes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.maximize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1151,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1151"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.maximize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.maximize"}},{"id":743,"name":"minimize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1226,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1226"}],"signatures":[{"id":744,"name":"minimize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Minimizes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.minimize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1226,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1226"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.minimize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.minimize"}},{"id":808,"name":"onCloseRequested","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1978,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1978"}],"signatures":[{"id":809,"name":"onCloseRequested","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to window close requested. Emitted when the user requests to closes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nimport { confirm } from '@tauri-apps/api/dialog';\nconst unlisten = await appWindow.onCloseRequested(async (event) => {\n const confirmed = await confirm('Are you sure?');\n if (!confirmed) {\n // user did not confirm closing the window; let's prevent it\n event.preventDefault();\n }\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":1978,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1978"}],"parameters":[{"id":810,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reflection","declaration":{"id":811,"name":"__type","variant":"declaration","kind":65536,"flags":{},"sources":[{"fileName":"window.ts","line":1979,"character":13,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1979"}],"signatures":[{"id":812,"name":"__type","variant":"signature","kind":4096,"flags":{},"sources":[{"fileName":"window.ts","line":1979,"character":13,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1979"}],"parameters":[{"id":813,"name":"event","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1046,"name":"CloseRequestedEvent","package":"@tauri-apps/api"}}],"type":{"type":"union","types":[{"type":"intrinsic","name":"void"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}]}}]}}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onCloseRequested"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onCloseRequested"}},{"id":823,"name":"onFileDropEvent","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":2112,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2112"}],"signatures":[{"id":824,"name":"onFileDropEvent","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to a file drop event.\nThe listener is triggered when the user hovers the selected files on the window,\ndrops the files or cancels the operation."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nconst unlisten = await appWindow.onFileDropEvent((event) => {\n if (event.payload.type === 'hover') {\n console.log('User hovering', event.payload.paths);\n } else if (event.payload.type === 'drop') {\n console.log('User dropped', event.payload.paths);\n } else {\n console.log('File drop cancelled');\n }\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":2112,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2112"}],"parameters":[{"id":825,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"reference","target":1120,"name":"FileDropEvent","package":"@tauri-apps/api"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onFileDropEvent"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onFileDropEvent"}},{"id":814,"name":"onFocusChanged","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":2011,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2011"}],"signatures":[{"id":815,"name":"onFocusChanged","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to window focus change."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nconst unlisten = await appWindow.onFocusChanged(({ payload: focused }) => {\n console.log('Focus changed, window is focused? ' + focused);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":2011,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2011"}],"parameters":[{"id":816,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"intrinsic","name":"boolean"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onFocusChanged"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onFocusChanged"}},{"id":820,"name":"onMenuClicked","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":2081,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2081"}],"signatures":[{"id":821,"name":"onMenuClicked","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to the window menu item click. The payload is the item id."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nconst unlisten = await appWindow.onMenuClicked(({ payload: menuId }) => {\n console.log('Menu clicked: ' + menuId);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":2081,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2081"}],"parameters":[{"id":822,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onMenuClicked"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onMenuClicked"}},{"id":805,"name":"onMoved","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1946,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1946"}],"signatures":[{"id":806,"name":"onMoved","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to window move."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nconst unlisten = await appWindow.onMoved(({ payload: position }) => {\n console.log('Window moved', position);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":1946,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1946"}],"parameters":[{"id":807,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"reference","target":1090,"name":"PhysicalPosition","package":"@tauri-apps/api"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onMoved"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onMoved"}},{"id":802,"name":"onResized","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1920,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1920"}],"signatures":[{"id":803,"name":"onResized","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to window resize."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nconst unlisten = await appWindow.onResized(({ payload: size }) => {\n console.log('Window resized', size);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":1920,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1920"}],"parameters":[{"id":804,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"reference","target":1071,"name":"PhysicalSize","package":"@tauri-apps/api"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onResized"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onResized"}},{"id":817,"name":"onScaleChanged","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":2053,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2053"}],"signatures":[{"id":818,"name":"onScaleChanged","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to window scale change. Emitted when the window's scale factor has changed.\nThe following user actions can cause DPI changes:\n- Changing the display's resolution.\n- Changing the display's scale factor (e.g. in Control Panel on Windows).\n- Moving the window to a display with a different scale factor."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nconst unlisten = await appWindow.onScaleChanged(({ payload }) => {\n console.log('Scale changed', payload.scaleFactor, payload.size);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":2053,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2053"}],"parameters":[{"id":819,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"reference","target":1117,"name":"ScaleFactorChanged","package":"@tauri-apps/api"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onScaleChanged"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onScaleChanged"}},{"id":826,"name":"onThemeChanged","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":2162,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2162"}],"signatures":[{"id":827,"name":"onThemeChanged","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to the system theme change."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from \"@tauri-apps/api/window\";\nconst unlisten = await appWindow.onThemeChanged(({ payload: theme }) => {\n console.log('New theme: ' + theme);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event.\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"sources":[{"fileName":"window.ts","line":2162,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2162"}],"parameters":[{"id":828,"name":"handler","variant":"param","kind":32768,"flags":{},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"reference","target":1110,"name":"Theme","package":"@tauri-apps/api"}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onThemeChanged"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.onThemeChanged"}},{"id":836,"name":"once","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":386,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L386"}],"signatures":[{"id":837,"name":"once","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Listen to an one-off event.\nSee "},{"kind":"inline-tag","tag":"@link","text":"`listen`","target":831,"tsLinkText":"`listen`"},{"kind":"text","text":" for more information."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst unlisten = await appWindow.once('initialized', (event) => {\n console.log(`Window initialized!`);\n});\n\n// you need to call unlisten if your handler goes out of scope e.g. the component is unmounted\nunlisten();\n```"},{"kind":"text","text":"\n\nNote that removing the listener is required if your listener goes out of scope e.g. the component is unmounted."}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise resolving to a function to unlisten to the event."}]}]},"sources":[{"fileName":"window.ts","line":386,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L386"}],"typeParameter":[{"id":838,"name":"T","variant":"typeParam","kind":131072,"flags":{}}],"parameters":[{"id":839,"name":"event","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event name. Must include only alphanumeric characters, "},{"kind":"code","text":"`-`"},{"kind":"text","text":", "},{"kind":"code","text":"`/`"},{"kind":"text","text":", "},{"kind":"code","text":"`:`"},{"kind":"text","text":" and "},{"kind":"code","text":"`_`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"string"}},{"id":840,"name":"handler","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Event handler."}]},"type":{"type":"reference","target":1167,"typeArguments":[{"type":"reference","target":-1,"name":"T","refersToTypeParameter":true}],"name":"EventCallback","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1172,"name":"UnlistenFn","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.once"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.once"}},{"id":687,"name":"outerPosition","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":525,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L525"}],"signatures":[{"id":688,"name":"outerPosition","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"The position of the top-left hand corner of the window relative to the top-left hand corner of the desktop."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst position = await appWindow.outerPosition();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window's outer position."}]}]},"sources":[{"fileName":"window.ts","line":525,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L525"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1090,"name":"PhysicalPosition","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.outerPosition"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.outerPosition"}},{"id":691,"name":"outerSize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":577,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L577"}],"signatures":[{"id":692,"name":"outerSize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"The physical size of the entire window.\nThese dimensions include the title bar and borders. If you don't want that (and you usually don't), use inner_size instead."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst size = await appWindow.outerSize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window's outer size."}]}]},"sources":[{"fileName":"window.ts","line":577,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L577"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"reference","target":1071,"name":"PhysicalSize","package":"@tauri-apps/api"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.outerSize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.outerSize"}},{"id":719,"name":"requestUserAttention","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":962,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L962"}],"signatures":[{"id":720,"name":"requestUserAttention","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Requests user attention to the window, this has no effect if the application\nis already focused. How requesting for user attention manifests is platform dependent,\nsee "},{"kind":"code","text":"`UserAttentionType`"},{"kind":"text","text":" for details.\n\nProviding "},{"kind":"code","text":"`null`"},{"kind":"text","text":" will unset the request for user attention. Unsetting the request for\nuser attention might not be done automatically by the WM when the window receives input.\n\n#### Platform-specific\n\n- **macOS:** "},{"kind":"code","text":"`null`"},{"kind":"text","text":" has no effect.\n- **Linux:** Urgency levels have the same effect."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.requestUserAttention();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":962,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L962"}],"parameters":[{"id":721,"name":"requestType","variant":"param","kind":32768,"flags":{},"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"reference","target":1101,"name":"UserAttentionType","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.requestUserAttention"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.requestUserAttention"}},{"id":683,"name":"scaleFactor","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":475,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L475"}],"signatures":[{"id":684,"name":"scaleFactor","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"The scale factor that can be used to map physical pixels to logical pixels."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst factor = await appWindow.scaleFactor();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window's monitor scale factor."}]}]},"sources":[{"fileName":"window.ts","line":475,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L475"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"number"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.scaleFactor"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.scaleFactor"}},{"id":756,"name":"setAlwaysOnTop","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1379,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1379"}],"signatures":[{"id":757,"name":"setAlwaysOnTop","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window should always be on top of other windows."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setAlwaysOnTop(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1379,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1379"}],"parameters":[{"id":758,"name":"alwaysOnTop","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window should always be on top of other windows or not."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setAlwaysOnTop"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setAlwaysOnTop"}},{"id":731,"name":"setClosable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1098,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1098"}],"signatures":[{"id":732,"name":"setClosable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets whether the window's native close button is enabled or not.\n\n#### Platform-specific\n\n- **Linux:** GTK+ will do its best to convince the window manager not to show a close button. Depending on the system, this function may not have any effect when called on a window that is already visible\n- **iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setClosable(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1098,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1098"}],"parameters":[{"id":733,"name":"closable","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setClosable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setClosable"}},{"id":759,"name":"setContentProtected","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1407,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1407"}],"signatures":[{"id":760,"name":"setContentProtected","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Prevents the window contents from being captured by other apps."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setContentProtected(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]},{"tag":"@since","content":[{"kind":"text","text":"1.2.0"}]}]},"sources":[{"fileName":"window.ts","line":1407,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1407"}],"parameters":[{"id":761,"name":"protected_","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setContentProtected"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setContentProtected"}},{"id":785,"name":"setCursorGrab","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1727,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1727"}],"signatures":[{"id":786,"name":"setCursorGrab","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Grabs the cursor, preventing it from leaving the window.\n\nThere's no guarantee that the cursor will be hidden. You should\nhide it by yourself if you want so.\n\n#### Platform-specific\n\n- **Linux:** Unsupported.\n- **macOS:** This locks the cursor in a fixed location, which looks visually awkward."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setCursorGrab(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1727,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1727"}],"parameters":[{"id":787,"name":"grab","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"code","text":"`true`"},{"kind":"text","text":" to grab the cursor icon, "},{"kind":"code","text":"`false`"},{"kind":"text","text":" to release it."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorGrab"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorGrab"}},{"id":791,"name":"setCursorIcon","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1787,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1787"}],"signatures":[{"id":792,"name":"setCursorIcon","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Modifies the cursor icon of the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setCursorIcon('help');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1787,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1787"}],"parameters":[{"id":793,"name":"icon","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new cursor icon."}]},"type":{"type":"reference","target":671,"name":"CursorIcon","package":"@tauri-apps/api"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorIcon"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorIcon"}},{"id":794,"name":"setCursorPosition","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1814,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1814"}],"signatures":[{"id":795,"name":"setCursorPosition","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Changes the position of the cursor in window coordinates."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow, LogicalPosition } from '@tauri-apps/api/window';\nawait appWindow.setCursorPosition(new LogicalPosition(600, 300));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1814,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1814"}],"parameters":[{"id":796,"name":"position","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new cursor position."}]},"type":{"type":"union","types":[{"type":"reference","target":1090,"name":"PhysicalPosition","package":"@tauri-apps/api"},{"type":"reference","target":1082,"name":"LogicalPosition","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorPosition"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorPosition"}},{"id":788,"name":"setCursorVisible","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1760,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1760"}],"signatures":[{"id":789,"name":"setCursorVisible","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Modifies the cursor's visibility.\n\n#### Platform-specific\n\n- **Windows:** The cursor is only hidden within the confines of the window.\n- **macOS:** The cursor is hidden as long as the window has input focus, even if the cursor is\n outside of the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setCursorVisible(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1760,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1760"}],"parameters":[{"id":790,"name":"visible","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"If "},{"kind":"code","text":"`false`"},{"kind":"text","text":", this will hide the cursor. If "},{"kind":"code","text":"`true`"},{"kind":"text","text":", this will show the cursor."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorVisible"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setCursorVisible"}},{"id":753,"name":"setDecorations","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1352,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1352"}],"signatures":[{"id":754,"name":"setDecorations","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window should have borders and bars."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setDecorations(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1352,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1352"}],"parameters":[{"id":755,"name":"decorations","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window should have borders and bars."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setDecorations"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setDecorations"}},{"id":777,"name":"setFocus","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1625,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1625"}],"signatures":[{"id":778,"name":"setFocus","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Bring the window to front and focus."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setFocus();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1625,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1625"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setFocus"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setFocus"}},{"id":774,"name":"setFullscreen","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1599,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1599"}],"signatures":[{"id":775,"name":"setFullscreen","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window fullscreen state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setFullscreen(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1599,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1599"}],"parameters":[{"id":776,"name":"fullscreen","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window should go to fullscreen or not."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setFullscreen"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setFullscreen"}},{"id":779,"name":"setIcon","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1658,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1658"}],"signatures":[{"id":780,"name":"setIcon","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window icon."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setIcon('/tauri/awesome.png');\n```"},{"kind":"text","text":"\n\nNote that you need the "},{"kind":"code","text":"`icon-ico`"},{"kind":"text","text":" or "},{"kind":"code","text":"`icon-png`"},{"kind":"text","text":" Cargo features to use this API.\nTo enable it, change your Cargo.toml file:\n"},{"kind":"code","text":"```toml\n[dependencies]\ntauri = { version = \"...\", features = [\"...\", \"icon-png\"] }\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1658,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1658"}],"parameters":[{"id":781,"name":"icon","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"Icon bytes or path to the icon file."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Uint8Array"},"name":"Uint8Array","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setIcon"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setIcon"}},{"id":797,"name":"setIgnoreCursorEvents","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1858,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1858"}],"signatures":[{"id":798,"name":"setIgnoreCursorEvents","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Changes the cursor events behavior."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setIgnoreCursorEvents(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1858,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1858"}],"parameters":[{"id":799,"name":"ignore","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"code","text":"`true`"},{"kind":"text","text":" to ignore the cursor events; "},{"kind":"code","text":"`false`"},{"kind":"text","text":" to process them as usual."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setIgnoreCursorEvents"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setIgnoreCursorEvents"}},{"id":768,"name":"setMaxSize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1514,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1514"}],"signatures":[{"id":769,"name":"setMaxSize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window maximum inner size. If the "},{"kind":"code","text":"`size`"},{"kind":"text","text":" argument is undefined, the constraint is unset."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow, LogicalSize } from '@tauri-apps/api/window';\nawait appWindow.setMaxSize(new LogicalSize(600, 500));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1514,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1514"}],"parameters":[{"id":770,"name":"size","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The logical or physical inner size, or "},{"kind":"code","text":"`null`"},{"kind":"text","text":" to unset the constraint."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"undefined"},{"type":"literal","value":null},{"type":"reference","target":1071,"name":"PhysicalSize","package":"@tauri-apps/api"},{"type":"reference","target":1063,"name":"LogicalSize","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMaxSize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMaxSize"}},{"id":725,"name":"setMaximizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1033,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1033"}],"signatures":[{"id":726,"name":"setMaximizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets whether the window's native maximize button is enabled or not.\nIf resizable is set to false, this setting is ignored.\n\n#### Platform-specific\n\n- **macOS:** Disables the \"zoom\" button in the window titlebar, which is also used to enter fullscreen mode.\n- **Linux / iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setMaximizable(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1033,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1033"}],"parameters":[{"id":727,"name":"maximizable","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMaximizable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMaximizable"}},{"id":765,"name":"setMinSize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1472,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1472"}],"signatures":[{"id":766,"name":"setMinSize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window minimum inner size. If the "},{"kind":"code","text":"`size`"},{"kind":"text","text":" argument is not provided, the constraint is unset."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow, PhysicalSize } from '@tauri-apps/api/window';\nawait appWindow.setMinSize(new PhysicalSize(600, 500));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1472,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1472"}],"parameters":[{"id":767,"name":"size","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The logical or physical inner size, or "},{"kind":"code","text":"`null`"},{"kind":"text","text":" to unset the constraint."}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"undefined"},{"type":"literal","value":null},{"type":"reference","target":1071,"name":"PhysicalSize","package":"@tauri-apps/api"},{"type":"reference","target":1063,"name":"LogicalSize","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMinSize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMinSize"}},{"id":728,"name":"setMinimizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1065,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1065"}],"signatures":[{"id":729,"name":"setMinimizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets whether the window's native minimize button is enabled or not.\n\n#### Platform-specific\n\n- **Linux / iOS / Android:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setMinimizable(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1065,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1065"}],"parameters":[{"id":730,"name":"minimizable","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMinimizable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setMinimizable"}},{"id":771,"name":"setPosition","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1556,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1556"}],"signatures":[{"id":772,"name":"setPosition","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window outer position."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow, LogicalPosition } from '@tauri-apps/api/window';\nawait appWindow.setPosition(new LogicalPosition(600, 500));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1556,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1556"}],"parameters":[{"id":773,"name":"position","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new position, in logical or physical pixels."}]},"type":{"type":"union","types":[{"type":"reference","target":1090,"name":"PhysicalPosition","package":"@tauri-apps/api"},{"type":"reference","target":1082,"name":"LogicalPosition","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setPosition"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setPosition"}},{"id":722,"name":"setResizable","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":999,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L999"}],"signatures":[{"id":723,"name":"setResizable","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Updates the window resizable flag."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setResizable(false);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":999,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L999"}],"parameters":[{"id":724,"name":"resizable","variant":"param","kind":32768,"flags":{},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setResizable"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setResizable"}},{"id":762,"name":"setSize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1434,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1434"}],"signatures":[{"id":763,"name":"setSize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Resizes the window with a new inner size."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow, LogicalSize } from '@tauri-apps/api/window';\nawait appWindow.setSize(new LogicalSize(600, 500));\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1434,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1434"}],"parameters":[{"id":764,"name":"size","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The logical or physical inner size."}]},"type":{"type":"union","types":[{"type":"reference","target":1071,"name":"PhysicalSize","package":"@tauri-apps/api"},{"type":"reference","target":1063,"name":"LogicalSize","package":"@tauri-apps/api"}]}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setSize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setSize"}},{"id":782,"name":"setSkipTaskbar","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1692,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1692"}],"signatures":[{"id":783,"name":"setSkipTaskbar","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Whether the window icon should be hidden from the taskbar or not.\n\n#### Platform-specific\n\n- **macOS:** Unsupported."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setSkipTaskbar(true);\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1692,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1692"}],"parameters":[{"id":784,"name":"skip","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"true to hide window icon, false to show it."}]},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setSkipTaskbar"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setSkipTaskbar"}},{"id":734,"name":"setTitle","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1125,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1125"}],"signatures":[{"id":735,"name":"setTitle","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window title."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.setTitle('Tauri');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1125,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1125"}],"parameters":[{"id":736,"name":"title","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new title"}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setTitle"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.setTitle"}},{"id":747,"name":"show","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1276,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1276"}],"signatures":[{"id":748,"name":"show","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Sets the window visibility to true."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.show();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1276,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1276"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.show"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.show"}},{"id":800,"name":"startDragging","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1884,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1884"}],"signatures":[{"id":801,"name":"startDragging","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Starts dragging the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.startDragging();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1884,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1884"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.startDragging"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.startDragging"}},{"id":715,"name":"theme","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":899,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L899"}],"signatures":[{"id":716,"name":"theme","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current theme.\n\n#### Platform-specific\n\n- **macOS:** Theme was introduced on macOS 10.14. Returns "},{"kind":"code","text":"`light`"},{"kind":"text","text":" on macOS 10.13 and below."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst theme = await appWindow.theme();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The window theme."}]}]},"sources":[{"fileName":"window.ts","line":899,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L899"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"literal","value":null},{"type":"reference","target":1110,"name":"Theme","package":"@tauri-apps/api"}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.theme"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.theme"}},{"id":713,"name":"title","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":869,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L869"}],"signatures":[{"id":714,"name":"title","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the window's current title."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nconst title = await appWindow.title();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.3.0"}]}]},"sources":[{"fileName":"window.ts","line":869,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L869"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"string"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.title"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.title"}},{"id":741,"name":"toggleMaximize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1201,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1201"}],"signatures":[{"id":742,"name":"toggleMaximize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Toggles the window maximized state."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.toggleMaximize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1201,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1201"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.toggleMaximize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.toggleMaximize"}},{"id":739,"name":"unmaximize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1176,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1176"}],"signatures":[{"id":740,"name":"unmaximize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Unmaximizes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.unmaximize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1176,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1176"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.unmaximize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.unmaximize"}},{"id":745,"name":"unminimize","variant":"declaration","kind":2048,"flags":{},"sources":[{"fileName":"window.ts","line":1251,"character":8,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1251"}],"signatures":[{"id":746,"name":"unminimize","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Unminimizes the window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { appWindow } from '@tauri-apps/api/window';\nawait appWindow.unminimize();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"A promise indicating the success or failure of the operation."}]}]},"sources":[{"fileName":"window.ts","line":1251,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1251"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"intrinsic","name":"void"}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"},"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.unminimize"}}],"inheritedFrom":{"type":"reference","target":-1,"name":"WindowManager.unminimize"}},{"id":674,"name":"getByLabel","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"window.ts","line":2279,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2279"}],"signatures":[{"id":675,"name":"getByLabel","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the WebviewWindow for the webview associated with the given label."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { WebviewWindow } from '@tauri-apps/api/window';\nconst mainWindow = WebviewWindow.getByLabel('main');\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The WebviewWindow instance to communicate with the webview or null if the webview doesn't exist."}]}]},"sources":[{"fileName":"window.ts","line":2279,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2279"}],"parameters":[{"id":676,"name":"label","variant":"param","kind":32768,"flags":{},"comment":{"summary":[{"kind":"text","text":"The webview window label."}]},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"reference","target":673,"name":"WebviewWindow","package":"@tauri-apps/api"}]}}]},{"id":677,"name":"getFocusedWindow","variant":"declaration","kind":2048,"flags":{"isStatic":true},"sources":[{"fileName":"window.ts","line":2299,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2299"}],"signatures":[{"id":678,"name":"getFocusedWindow","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets the focused window."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { WebviewWindow } from '@tauri-apps/api/window';\nconst focusedWindow = WebviewWindow.getFocusedWindow();\n```"}]},{"tag":"@returns","content":[{"kind":"text","text":"The WebviewWindow instance to communicate with the webview or "},{"kind":"code","text":"`undefined`"},{"kind":"text","text":" if there is not any focused window."}]},{"tag":"@since","content":[{"kind":"text","text":"1.4"}]}]},"sources":[{"fileName":"window.ts","line":2299,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2299"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"literal","value":null},{"type":"reference","target":673,"name":"WebviewWindow","package":"@tauri-apps/api"}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Constructors","children":[679]},{"title":"Properties","children":[829,830]},{"title":"Methods","children":[717,751,841,749,685,689,709,701,699,693,705,697,707,695,703,711,831,737,743,808,823,814,820,805,802,817,826,836,687,691,719,683,756,731,759,785,791,794,788,753,777,774,779,797,768,725,765,728,771,722,762,782,734,747,800,715,713,741,739,745,674,677]}],"sources":[{"fileName":"window.ts","line":2227,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2227"}],"extendedTypes":[{"type":"reference","target":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager"},"name":"WindowManager","package":"@tauri-apps/api"}]},{"id":1112,"name":"Monitor","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Allows you to retrieve information about a given monitor."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":1113,"name":"name","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"Human-readable name of the monitor"}]},"sources":[{"fileName":"window.ts","line":83,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L83"}],"type":{"type":"union","types":[{"type":"literal","value":null},{"type":"intrinsic","name":"string"}]}},{"id":1115,"name":"position","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"the Top-left corner position of the monitor relative to the larger full screen area."}]},"sources":[{"fileName":"window.ts","line":87,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L87"}],"type":{"type":"reference","target":1090,"name":"PhysicalPosition","package":"@tauri-apps/api"}},{"id":1116,"name":"scaleFactor","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The scale factor that can be used to map physical pixels to logical pixels."}]},"sources":[{"fileName":"window.ts","line":89,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L89"}],"type":{"type":"intrinsic","name":"number"}},{"id":1114,"name":"size","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The monitor's resolution."}]},"sources":[{"fileName":"window.ts","line":85,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L85"}],"type":{"type":"reference","target":1071,"name":"PhysicalSize","package":"@tauri-apps/api"}}],"groups":[{"title":"Properties","children":[1113,1115,1116,1114]}],"sources":[{"fileName":"window.ts","line":81,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L81"}]},{"id":1117,"name":"ScaleFactorChanged","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"The payload for the "},{"kind":"code","text":"`scaleChange`"},{"kind":"text","text":" event."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.2"}]}]},"children":[{"id":1118,"name":"scaleFactor","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new window scale factor."}]},"sources":[{"fileName":"window.ts","line":99,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L99"}],"type":{"type":"intrinsic","name":"number"}},{"id":1119,"name":"size","variant":"declaration","kind":1024,"flags":{},"comment":{"summary":[{"kind":"text","text":"The new window size"}]},"sources":[{"fileName":"window.ts","line":101,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L101"}],"type":{"type":"reference","target":1071,"name":"PhysicalSize","package":"@tauri-apps/api"}}],"groups":[{"title":"Properties","children":[1118,1119]}],"sources":[{"fileName":"window.ts","line":97,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L97"}]},{"id":1129,"name":"WindowOptions","variant":"declaration","kind":256,"flags":{},"comment":{"summary":[{"kind":"text","text":"Configuration for the window to create."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"children":[{"id":1155,"name":"acceptFirstMouse","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether clicking an inactive window also clicks through to the webview on macOS."}]},"sources":[{"fileName":"window.ts","line":2410,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2410"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1148,"name":"alwaysOnTop","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window should always be on top of other windows or not."}]},"sources":[{"fileName":"window.ts","line":2382,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2382"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1131,"name":"center","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Show window in the center of the screen.."}]},"sources":[{"fileName":"window.ts","line":2344,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2344"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1160,"name":"closable","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window's native close button is enabled or not. Defaults to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"window.ts","line":2433,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2433"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1149,"name":"contentProtected","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Prevents the window contents from being captured by other apps."}]},"sources":[{"fileName":"window.ts","line":2384,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2384"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1147,"name":"decorations","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window should have borders and bars or not."}]},"sources":[{"fileName":"window.ts","line":2380,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2380"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1151,"name":"fileDropEnabled","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the file drop is enabled or not on the webview. By default it is enabled.\n\nDisabling it is required to use drag and drop on the frontend on Windows."}]},"sources":[{"fileName":"window.ts","line":2392,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2392"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1143,"name":"focus","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window will be initially focused or not."}]},"sources":[{"fileName":"window.ts","line":2368,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2368"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1142,"name":"fullscreen","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window is in fullscreen mode or not."}]},"sources":[{"fileName":"window.ts","line":2366,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2366"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1135,"name":"height","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The initial height."}]},"sources":[{"fileName":"window.ts","line":2352,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2352"}],"type":{"type":"intrinsic","name":"number"}},{"id":1154,"name":"hiddenTitle","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"If "},{"kind":"code","text":"`true`"},{"kind":"text","text":", sets the window title to be hidden on macOS."}]},"sources":[{"fileName":"window.ts","line":2406,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2406"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1139,"name":"maxHeight","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The maximum height. Only applies if "},{"kind":"code","text":"`maxWidth`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2360,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2360"}],"type":{"type":"intrinsic","name":"number"}},{"id":1138,"name":"maxWidth","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The maximum width. Only applies if "},{"kind":"code","text":"`maxHeight`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2358,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2358"}],"type":{"type":"intrinsic","name":"number"}},{"id":1158,"name":"maximizable","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window's native maximize button is enabled or not. Defaults to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"window.ts","line":2425,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2425"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1145,"name":"maximized","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window should be maximized upon creation or not."}]},"sources":[{"fileName":"window.ts","line":2376,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2376"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1137,"name":"minHeight","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The minimum height. Only applies if "},{"kind":"code","text":"`minWidth`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2356,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2356"}],"type":{"type":"intrinsic","name":"number"}},{"id":1136,"name":"minWidth","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The minimum width. Only applies if "},{"kind":"code","text":"`minHeight`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2354,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2354"}],"type":{"type":"intrinsic","name":"number"}},{"id":1159,"name":"minimizable","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window's native minimize button is enabled or not. Defaults to "},{"kind":"code","text":"`true`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"window.ts","line":2429,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2429"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1140,"name":"resizable","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window is resizable or not."}]},"sources":[{"fileName":"window.ts","line":2362,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2362"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1150,"name":"skipTaskbar","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether or not the window icon should be added to the taskbar."}]},"sources":[{"fileName":"window.ts","line":2386,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2386"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1156,"name":"tabbingIdentifier","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Defines the window [tabbing identifier](https://developer.apple.com/documentation/appkit/nswindow/1644704-tabbingidentifier) on macOS.\n\nWindows with the same tabbing identifier will be grouped together.\nIf the tabbing identifier is not set, automatic tabbing will be disabled."}]},"sources":[{"fileName":"window.ts","line":2417,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2417"}],"type":{"type":"intrinsic","name":"string"}},{"id":1152,"name":"theme","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The initial window theme. Defaults to the system theme.\n\nOnly implemented on Windows and macOS 10.14+."}]},"sources":[{"fileName":"window.ts","line":2398,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2398"}],"type":{"type":"reference","target":1110,"name":"Theme","package":"@tauri-apps/api"}},{"id":1141,"name":"title","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Window title."}]},"sources":[{"fileName":"window.ts","line":2364,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2364"}],"type":{"type":"intrinsic","name":"string"}},{"id":1153,"name":"titleBarStyle","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The style of the macOS title bar."}]},"sources":[{"fileName":"window.ts","line":2402,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2402"}],"type":{"type":"reference","target":1111,"name":"TitleBarStyle","package":"@tauri-apps/api"}},{"id":1144,"name":"transparent","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window is transparent or not.\nNote that on "},{"kind":"code","text":"`macOS`"},{"kind":"text","text":" this requires the "},{"kind":"code","text":"`macos-private-api`"},{"kind":"text","text":" feature flag, enabled under "},{"kind":"code","text":"`tauri.conf.json > tauri > macOSPrivateApi`"},{"kind":"text","text":".\nWARNING: Using private APIs on "},{"kind":"code","text":"`macOS`"},{"kind":"text","text":" prevents your application from being accepted to the "},{"kind":"code","text":"`App Store`"},{"kind":"text","text":"."}]},"sources":[{"fileName":"window.ts","line":2374,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2374"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1130,"name":"url","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Remote URL or local file path to open.\n\n- URL such as "},{"kind":"code","text":"`https://github.com/tauri-apps`"},{"kind":"text","text":" is opened directly on a Tauri window.\n- data: URL such as "},{"kind":"code","text":"`data:text/html,...`"},{"kind":"text","text":" is only supported with the "},{"kind":"code","text":"`window-data-url`"},{"kind":"text","text":" Cargo feature for the "},{"kind":"code","text":"`tauri`"},{"kind":"text","text":" dependency.\n- local file path or route such as "},{"kind":"code","text":"`/path/to/page.html`"},{"kind":"text","text":" or "},{"kind":"code","text":"`/users`"},{"kind":"text","text":" is appended to the application URL (the devServer URL on development, or "},{"kind":"code","text":"`tauri://localhost/`"},{"kind":"text","text":" and "},{"kind":"code","text":"`https://tauri.localhost/`"},{"kind":"text","text":" on production)."}]},"sources":[{"fileName":"window.ts","line":2342,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2342"}],"type":{"type":"intrinsic","name":"string"}},{"id":1157,"name":"userAgent","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The user agent for the webview."}]},"sources":[{"fileName":"window.ts","line":2421,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2421"}],"type":{"type":"intrinsic","name":"string"}},{"id":1146,"name":"visible","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether the window should be immediately visible upon creation or not."}]},"sources":[{"fileName":"window.ts","line":2378,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2378"}],"type":{"type":"intrinsic","name":"boolean"}},{"id":1134,"name":"width","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The initial width."}]},"sources":[{"fileName":"window.ts","line":2350,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2350"}],"type":{"type":"intrinsic","name":"number"}},{"id":1132,"name":"x","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The initial vertical position. Only applies if "},{"kind":"code","text":"`y`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2346,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2346"}],"type":{"type":"intrinsic","name":"number"}},{"id":1133,"name":"y","variant":"declaration","kind":1024,"flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The initial horizontal position. Only applies if "},{"kind":"code","text":"`x`"},{"kind":"text","text":" is also set."}]},"sources":[{"fileName":"window.ts","line":2348,"character":2,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2348"}],"type":{"type":"intrinsic","name":"number"}}],"groups":[{"title":"Properties","children":[1155,1148,1131,1160,1149,1147,1151,1143,1142,1135,1154,1139,1138,1158,1145,1137,1136,1159,1140,1150,1156,1152,1141,1153,1144,1130,1157,1146,1134,1132,1133]}],"sources":[{"fileName":"window.ts","line":2334,"character":10,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2334"}]},{"id":671,"name":"CursorIcon","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"window.ts","line":237,"character":12,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L237"}],"type":{"type":"union","types":[{"type":"literal","value":"default"},{"type":"literal","value":"crosshair"},{"type":"literal","value":"hand"},{"type":"literal","value":"arrow"},{"type":"literal","value":"move"},{"type":"literal","value":"text"},{"type":"literal","value":"wait"},{"type":"literal","value":"help"},{"type":"literal","value":"progress"},{"type":"literal","value":"notAllowed"},{"type":"literal","value":"contextMenu"},{"type":"literal","value":"cell"},{"type":"literal","value":"verticalText"},{"type":"literal","value":"alias"},{"type":"literal","value":"copy"},{"type":"literal","value":"noDrop"},{"type":"literal","value":"grab"},{"type":"literal","value":"grabbing"},{"type":"literal","value":"allScroll"},{"type":"literal","value":"zoomIn"},{"type":"literal","value":"zoomOut"},{"type":"literal","value":"eResize"},{"type":"literal","value":"nResize"},{"type":"literal","value":"neResize"},{"type":"literal","value":"nwResize"},{"type":"literal","value":"sResize"},{"type":"literal","value":"seResize"},{"type":"literal","value":"swResize"},{"type":"literal","value":"wResize"},{"type":"literal","value":"ewResize"},{"type":"literal","value":"nsResize"},{"type":"literal","value":"neswResize"},{"type":"literal","value":"nwseResize"},{"type":"literal","value":"colResize"},{"type":"literal","value":"rowResize"}]}},{"id":1120,"name":"FileDropEvent","variant":"declaration","kind":4194304,"flags":{},"comment":{"summary":[{"kind":"text","text":"The file drop event types."}]},"sources":[{"fileName":"window.ts","line":105,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L105"}],"type":{"type":"union","types":[{"type":"reflection","declaration":{"id":1121,"name":"__type","variant":"declaration","kind":65536,"flags":{},"children":[{"id":1123,"name":"paths","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":106,"character":21,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L106"}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}},{"id":1122,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":106,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L106"}],"type":{"type":"literal","value":"hover"}}],"groups":[{"title":"Properties","children":[1123,1122]}],"sources":[{"fileName":"window.ts","line":106,"character":4,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L106"}]}},{"type":"reflection","declaration":{"id":1124,"name":"__type","variant":"declaration","kind":65536,"flags":{},"children":[{"id":1126,"name":"paths","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":107,"character":20,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L107"}],"type":{"type":"array","elementType":{"type":"intrinsic","name":"string"}}},{"id":1125,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":107,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L107"}],"type":{"type":"literal","value":"drop"}}],"groups":[{"title":"Properties","children":[1126,1125]}],"sources":[{"fileName":"window.ts","line":107,"character":4,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L107"}]}},{"type":"reflection","declaration":{"id":1127,"name":"__type","variant":"declaration","kind":65536,"flags":{},"children":[{"id":1128,"name":"type","variant":"declaration","kind":1024,"flags":{},"sources":[{"fileName":"window.ts","line":108,"character":6,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L108"}],"type":{"type":"literal","value":"cancel"}}],"groups":[{"title":"Properties","children":[1128]}],"sources":[{"fileName":"window.ts","line":108,"character":4,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L108"}]}}]}},{"id":1110,"name":"Theme","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"window.ts","line":73,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L73"}],"type":{"type":"union","types":[{"type":"literal","value":"light"},{"type":"literal","value":"dark"}]}},{"id":1111,"name":"TitleBarStyle","variant":"declaration","kind":4194304,"flags":{},"sources":[{"fileName":"window.ts","line":74,"character":5,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L74"}],"type":{"type":"union","types":[{"type":"literal","value":"visible"},{"type":"literal","value":"transparent"},{"type":"literal","value":"overlay"}]}},{"id":1062,"name":"appWindow","variant":"declaration","kind":32,"flags":{},"comment":{"summary":[{"kind":"text","text":"The WebviewWindow for the current window."}]},"sources":[{"fileName":"window.ts","line":2310,"character":4,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2310"}],"type":{"type":"reference","target":673,"name":"WebviewWindow","package":"@tauri-apps/api"}},{"id":1108,"name":"availableMonitors","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"window.ts","line":2515,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2515"}],"signatures":[{"id":1109,"name":"availableMonitors","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the list of all the monitors available on the system."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { availableMonitors } from '@tauri-apps/api/window';\nconst monitors = availableMonitors();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"window.ts","line":2515,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2515"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"array","elementType":{"type":"reference","target":1112,"name":"Monitor","package":"@tauri-apps/api"}}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":1104,"name":"currentMonitor","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"window.ts","line":2466,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2466"}],"signatures":[{"id":1105,"name":"currentMonitor","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the monitor on which the window currently resides.\nReturns "},{"kind":"code","text":"`null`"},{"kind":"text","text":" if current monitor can't be detected."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { currentMonitor } from '@tauri-apps/api/window';\nconst monitor = currentMonitor();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"window.ts","line":2466,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2466"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"reference","target":1112,"name":"Monitor","package":"@tauri-apps/api"},{"type":"literal","value":null}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]},{"id":1060,"name":"getAll","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"window.ts","line":295,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L295"}],"signatures":[{"id":1061,"name":"getAll","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Gets a list of instances of "},{"kind":"code","text":"`WebviewWindow`"},{"kind":"text","text":" for all available webview windows."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"window.ts","line":295,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L295"}],"type":{"type":"array","elementType":{"type":"reference","target":673,"name":"WebviewWindow","package":"@tauri-apps/api"}}}]},{"id":1058,"name":"getCurrent","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"window.ts","line":283,"character":9,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L283"}],"signatures":[{"id":1059,"name":"getCurrent","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Get an instance of "},{"kind":"code","text":"`WebviewWindow`"},{"kind":"text","text":" for the current webview window."}],"blockTags":[{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"window.ts","line":283,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L283"}],"type":{"type":"reference","target":673,"name":"WebviewWindow","package":"@tauri-apps/api"}}]},{"id":1106,"name":"primaryMonitor","variant":"declaration","kind":64,"flags":{},"sources":[{"fileName":"window.ts","line":2491,"character":15,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2491"}],"signatures":[{"id":1107,"name":"primaryMonitor","variant":"signature","kind":4096,"flags":{},"comment":{"summary":[{"kind":"text","text":"Returns the primary monitor of the system.\nReturns "},{"kind":"code","text":"`null`"},{"kind":"text","text":" if it can't identify any monitor as a primary one."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```typescript\nimport { primaryMonitor } from '@tauri-apps/api/window';\nconst monitor = primaryMonitor();\n```"}]},{"tag":"@since","content":[{"kind":"text","text":"1.0.0"}]}]},"sources":[{"fileName":"window.ts","line":2491,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L2491"}],"type":{"type":"reference","target":{"sourceFileName":"node_modules/typescript/lib/lib.es5.d.ts","qualifiedName":"Promise"},"typeArguments":[{"type":"union","types":[{"type":"reference","target":1112,"name":"Monitor","package":"@tauri-apps/api"},{"type":"literal","value":null}]}],"name":"Promise","package":"typescript","externalUrl":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise"}}]}],"groups":[{"title":"Enumerations","children":[1101]},{"title":"Classes","children":[1046,1082,1063,1090,1071,673]},{"title":"Interfaces","children":[1112,1117,1129]},{"title":"Type Aliases","children":[671,1120,1110,1111]},{"title":"Variables","children":[1062]},{"title":"Functions","children":[1108,1104,1060,1058,1106]}],"sources":[{"fileName":"window.ts","line":1,"character":0,"url":"https://github.com/tauri-apps/tauri/blob/5d065def/tooling/api/src/window.ts#L1"}]}],"groups":[{"title":"Modules","children":[1,12,24,30,72,107,206,227,332,346,360,377,453,459,630,648,670]}],"packageName":"@tauri-apps/api","symbolIdMap":{"1":{"sourceFileName":"src/app.ts","qualifiedName":""},"2":{"sourceFileName":"src/app.ts","qualifiedName":"getName"},"3":{"sourceFileName":"src/app.ts","qualifiedName":"getName"},"4":{"sourceFileName":"src/app.ts","qualifiedName":"getVersion"},"5":{"sourceFileName":"src/app.ts","qualifiedName":"getVersion"},"6":{"sourceFileName":"src/app.ts","qualifiedName":"getTauriVersion"},"7":{"sourceFileName":"src/app.ts","qualifiedName":"getTauriVersion"},"8":{"sourceFileName":"src/app.ts","qualifiedName":"show"},"9":{"sourceFileName":"src/app.ts","qualifiedName":"show"},"10":{"sourceFileName":"src/app.ts","qualifiedName":"hide"},"11":{"sourceFileName":"src/app.ts","qualifiedName":"hide"},"12":{"sourceFileName":"src/cli.ts","qualifiedName":""},"13":{"sourceFileName":"src/cli.ts","qualifiedName":"ArgMatch"},"14":{"sourceFileName":"src/cli.ts","qualifiedName":"ArgMatch.value"},"15":{"sourceFileName":"src/cli.ts","qualifiedName":"ArgMatch.occurrences"},"16":{"sourceFileName":"src/cli.ts","qualifiedName":"SubcommandMatch"},"17":{"sourceFileName":"src/cli.ts","qualifiedName":"SubcommandMatch.name"},"18":{"sourceFileName":"src/cli.ts","qualifiedName":"SubcommandMatch.matches"},"19":{"sourceFileName":"src/cli.ts","qualifiedName":"CliMatches"},"20":{"sourceFileName":"src/cli.ts","qualifiedName":"CliMatches.args"},"21":{"sourceFileName":"src/cli.ts","qualifiedName":"CliMatches.subcommand"},"22":{"sourceFileName":"src/cli.ts","qualifiedName":"getMatches"},"23":{"sourceFileName":"src/cli.ts","qualifiedName":"getMatches"},"24":{"sourceFileName":"src/clipboard.ts","qualifiedName":""},"25":{"sourceFileName":"src/clipboard.ts","qualifiedName":"writeText"},"26":{"sourceFileName":"src/clipboard.ts","qualifiedName":"writeText"},"27":{"sourceFileName":"src/clipboard.ts","qualifiedName":"text"},"28":{"sourceFileName":"src/clipboard.ts","qualifiedName":"readText"},"29":{"sourceFileName":"src/clipboard.ts","qualifiedName":"readText"},"30":{"sourceFileName":"src/dialog.ts","qualifiedName":""},"31":{"sourceFileName":"src/dialog.ts","qualifiedName":"DialogFilter"},"32":{"sourceFileName":"src/dialog.ts","qualifiedName":"DialogFilter.name"},"33":{"sourceFileName":"src/dialog.ts","qualifiedName":"DialogFilter.extensions"},"34":{"sourceFileName":"src/dialog.ts","qualifiedName":"OpenDialogOptions"},"35":{"sourceFileName":"src/dialog.ts","qualifiedName":"OpenDialogOptions.title"},"36":{"sourceFileName":"src/dialog.ts","qualifiedName":"OpenDialogOptions.filters"},"37":{"sourceFileName":"src/dialog.ts","qualifiedName":"OpenDialogOptions.defaultPath"},"38":{"sourceFileName":"src/dialog.ts","qualifiedName":"OpenDialogOptions.multiple"},"39":{"sourceFileName":"src/dialog.ts","qualifiedName":"OpenDialogOptions.directory"},"40":{"sourceFileName":"src/dialog.ts","qualifiedName":"OpenDialogOptions.recursive"},"41":{"sourceFileName":"src/dialog.ts","qualifiedName":"SaveDialogOptions"},"42":{"sourceFileName":"src/dialog.ts","qualifiedName":"SaveDialogOptions.title"},"43":{"sourceFileName":"src/dialog.ts","qualifiedName":"SaveDialogOptions.filters"},"44":{"sourceFileName":"src/dialog.ts","qualifiedName":"SaveDialogOptions.defaultPath"},"45":{"sourceFileName":"src/dialog.ts","qualifiedName":"MessageDialogOptions"},"46":{"sourceFileName":"src/dialog.ts","qualifiedName":"MessageDialogOptions.title"},"47":{"sourceFileName":"src/dialog.ts","qualifiedName":"MessageDialogOptions.type"},"48":{"sourceFileName":"src/dialog.ts","qualifiedName":"MessageDialogOptions.okLabel"},"49":{"sourceFileName":"src/dialog.ts","qualifiedName":"ConfirmDialogOptions"},"50":{"sourceFileName":"src/dialog.ts","qualifiedName":"ConfirmDialogOptions.title"},"51":{"sourceFileName":"src/dialog.ts","qualifiedName":"ConfirmDialogOptions.type"},"52":{"sourceFileName":"src/dialog.ts","qualifiedName":"ConfirmDialogOptions.okLabel"},"53":{"sourceFileName":"src/dialog.ts","qualifiedName":"ConfirmDialogOptions.cancelLabel"},"54":{"sourceFileName":"src/dialog.ts","qualifiedName":"open"},"55":{"sourceFileName":"src/dialog.ts","qualifiedName":"open"},"56":{"sourceFileName":"src/dialog.ts","qualifiedName":"options"},"57":{"sourceFileName":"src/dialog.ts","qualifiedName":"save"},"58":{"sourceFileName":"src/dialog.ts","qualifiedName":"save"},"59":{"sourceFileName":"src/dialog.ts","qualifiedName":"options"},"60":{"sourceFileName":"src/dialog.ts","qualifiedName":"message"},"61":{"sourceFileName":"src/dialog.ts","qualifiedName":"message"},"62":{"sourceFileName":"src/dialog.ts","qualifiedName":"message"},"63":{"sourceFileName":"src/dialog.ts","qualifiedName":"options"},"64":{"sourceFileName":"src/dialog.ts","qualifiedName":"ask"},"65":{"sourceFileName":"src/dialog.ts","qualifiedName":"ask"},"66":{"sourceFileName":"src/dialog.ts","qualifiedName":"message"},"67":{"sourceFileName":"src/dialog.ts","qualifiedName":"options"},"68":{"sourceFileName":"src/dialog.ts","qualifiedName":"confirm"},"69":{"sourceFileName":"src/dialog.ts","qualifiedName":"confirm"},"70":{"sourceFileName":"src/dialog.ts","qualifiedName":"message"},"71":{"sourceFileName":"src/dialog.ts","qualifiedName":"options"},"72":{"sourceFileName":"src/event.ts","qualifiedName":""},"73":{"sourceFileName":"src/event.ts","qualifiedName":"EventName"},"74":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent"},"75":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_RESIZED"},"76":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_MOVED"},"77":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_CLOSE_REQUESTED"},"78":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_CREATED"},"79":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_DESTROYED"},"80":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_FOCUS"},"81":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_BLUR"},"82":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_SCALE_FACTOR_CHANGED"},"83":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_THEME_CHANGED"},"84":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_FILE_DROP"},"85":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_FILE_DROP_HOVER"},"86":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.WINDOW_FILE_DROP_CANCELLED"},"87":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.MENU"},"88":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.CHECK_UPDATE"},"89":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.UPDATE_AVAILABLE"},"90":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.INSTALL_UPDATE"},"91":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.STATUS_UPDATE"},"92":{"sourceFileName":"src/event.ts","qualifiedName":"TauriEvent.DOWNLOAD_PROGRESS"},"93":{"sourceFileName":"src/event.ts","qualifiedName":"listen"},"94":{"sourceFileName":"src/event.ts","qualifiedName":"listen"},"95":{"sourceFileName":"src/event.ts","qualifiedName":"T"},"96":{"sourceFileName":"src/event.ts","qualifiedName":"event"},"97":{"sourceFileName":"src/event.ts","qualifiedName":"handler"},"98":{"sourceFileName":"src/event.ts","qualifiedName":"once"},"99":{"sourceFileName":"src/event.ts","qualifiedName":"once"},"100":{"sourceFileName":"src/event.ts","qualifiedName":"T"},"101":{"sourceFileName":"src/event.ts","qualifiedName":"event"},"102":{"sourceFileName":"src/event.ts","qualifiedName":"handler"},"103":{"sourceFileName":"src/event.ts","qualifiedName":"emit"},"104":{"sourceFileName":"src/event.ts","qualifiedName":"emit"},"105":{"sourceFileName":"src/event.ts","qualifiedName":"event"},"106":{"sourceFileName":"src/event.ts","qualifiedName":"payload"},"107":{"sourceFileName":"src/fs.ts","qualifiedName":""},"108":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory"},"109":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Audio"},"110":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Cache"},"111":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Config"},"112":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Data"},"113":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.LocalData"},"114":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Desktop"},"115":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Document"},"116":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Download"},"117":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Executable"},"118":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Font"},"119":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Home"},"120":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Picture"},"121":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Public"},"122":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Runtime"},"123":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Template"},"124":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Video"},"125":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Resource"},"126":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.App"},"127":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Log"},"128":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.Temp"},"129":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.AppConfig"},"130":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.AppData"},"131":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.AppLocalData"},"132":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.AppCache"},"133":{"sourceFileName":"src/fs.ts","qualifiedName":"BaseDirectory.AppLog"},"134":{"sourceFileName":"src/fs.ts","qualifiedName":"FsOptions"},"135":{"sourceFileName":"src/fs.ts","qualifiedName":"FsOptions.dir"},"136":{"sourceFileName":"src/fs.ts","qualifiedName":"FsDirOptions"},"137":{"sourceFileName":"src/fs.ts","qualifiedName":"FsDirOptions.dir"},"138":{"sourceFileName":"src/fs.ts","qualifiedName":"FsDirOptions.recursive"},"139":{"sourceFileName":"src/fs.ts","qualifiedName":"FsTextFileOption"},"140":{"sourceFileName":"src/fs.ts","qualifiedName":"FsTextFileOption.path"},"141":{"sourceFileName":"src/fs.ts","qualifiedName":"FsTextFileOption.contents"},"142":{"sourceFileName":"src/fs.ts","qualifiedName":"BinaryFileContents"},"143":{"sourceFileName":"src/fs.ts","qualifiedName":"FsBinaryFileOption"},"144":{"sourceFileName":"src/fs.ts","qualifiedName":"FsBinaryFileOption.path"},"145":{"sourceFileName":"src/fs.ts","qualifiedName":"FsBinaryFileOption.contents"},"146":{"sourceFileName":"src/fs.ts","qualifiedName":"FileEntry"},"147":{"sourceFileName":"src/fs.ts","qualifiedName":"FileEntry.path"},"148":{"sourceFileName":"src/fs.ts","qualifiedName":"FileEntry.name"},"149":{"sourceFileName":"src/fs.ts","qualifiedName":"FileEntry.children"},"150":{"sourceFileName":"src/fs.ts","qualifiedName":"Dir"},"151":{"sourceFileName":"src/fs.ts","qualifiedName":"readTextFile"},"152":{"sourceFileName":"src/fs.ts","qualifiedName":"readTextFile"},"153":{"sourceFileName":"src/fs.ts","qualifiedName":"filePath"},"154":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"155":{"sourceFileName":"src/fs.ts","qualifiedName":"readBinaryFile"},"156":{"sourceFileName":"src/fs.ts","qualifiedName":"readBinaryFile"},"157":{"sourceFileName":"src/fs.ts","qualifiedName":"filePath"},"158":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"159":{"sourceFileName":"src/fs.ts","qualifiedName":"writeTextFile"},"160":{"sourceFileName":"src/fs.ts","qualifiedName":"writeTextFile"},"161":{"sourceFileName":"src/fs.ts","qualifiedName":"path"},"162":{"sourceFileName":"src/fs.ts","qualifiedName":"contents"},"163":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"164":{"sourceFileName":"src/fs.ts","qualifiedName":"writeTextFile"},"165":{"sourceFileName":"src/fs.ts","qualifiedName":"file"},"166":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"167":{"sourceFileName":"src/fs.ts","qualifiedName":"writeFile"},"168":{"sourceFileName":"src/fs.ts","qualifiedName":"writeBinaryFile"},"169":{"sourceFileName":"src/fs.ts","qualifiedName":"writeBinaryFile"},"170":{"sourceFileName":"src/fs.ts","qualifiedName":"path"},"171":{"sourceFileName":"src/fs.ts","qualifiedName":"contents"},"172":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"173":{"sourceFileName":"src/fs.ts","qualifiedName":"writeBinaryFile"},"174":{"sourceFileName":"src/fs.ts","qualifiedName":"file"},"175":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"176":{"sourceFileName":"src/fs.ts","qualifiedName":"readDir"},"177":{"sourceFileName":"src/fs.ts","qualifiedName":"readDir"},"178":{"sourceFileName":"src/fs.ts","qualifiedName":"dir"},"179":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"180":{"sourceFileName":"src/fs.ts","qualifiedName":"createDir"},"181":{"sourceFileName":"src/fs.ts","qualifiedName":"createDir"},"182":{"sourceFileName":"src/fs.ts","qualifiedName":"dir"},"183":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"184":{"sourceFileName":"src/fs.ts","qualifiedName":"removeDir"},"185":{"sourceFileName":"src/fs.ts","qualifiedName":"removeDir"},"186":{"sourceFileName":"src/fs.ts","qualifiedName":"dir"},"187":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"188":{"sourceFileName":"src/fs.ts","qualifiedName":"copyFile"},"189":{"sourceFileName":"src/fs.ts","qualifiedName":"copyFile"},"190":{"sourceFileName":"src/fs.ts","qualifiedName":"source"},"191":{"sourceFileName":"src/fs.ts","qualifiedName":"destination"},"192":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"193":{"sourceFileName":"src/fs.ts","qualifiedName":"removeFile"},"194":{"sourceFileName":"src/fs.ts","qualifiedName":"removeFile"},"195":{"sourceFileName":"src/fs.ts","qualifiedName":"file"},"196":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"197":{"sourceFileName":"src/fs.ts","qualifiedName":"renameFile"},"198":{"sourceFileName":"src/fs.ts","qualifiedName":"renameFile"},"199":{"sourceFileName":"src/fs.ts","qualifiedName":"oldPath"},"200":{"sourceFileName":"src/fs.ts","qualifiedName":"newPath"},"201":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"202":{"sourceFileName":"src/fs.ts","qualifiedName":"exists"},"203":{"sourceFileName":"src/fs.ts","qualifiedName":"exists"},"204":{"sourceFileName":"src/fs.ts","qualifiedName":"path"},"205":{"sourceFileName":"src/fs.ts","qualifiedName":"options"},"206":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":""},"207":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"ShortcutHandler"},"208":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"__type"},"209":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"__type"},"210":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"shortcut"},"211":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"register"},"212":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"register"},"213":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"shortcut"},"214":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"handler"},"215":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"registerAll"},"216":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"registerAll"},"217":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"shortcuts"},"218":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"handler"},"219":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"isRegistered"},"220":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"isRegistered"},"221":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"shortcut"},"222":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"unregister"},"223":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"unregister"},"224":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"shortcut"},"225":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"unregisterAll"},"226":{"sourceFileName":"src/globalShortcut.ts","qualifiedName":"unregisterAll"},"227":{"sourceFileName":"src/http.ts","qualifiedName":""},"228":{"sourceFileName":"src/http.ts","qualifiedName":"Duration"},"229":{"sourceFileName":"src/http.ts","qualifiedName":"Duration.secs"},"230":{"sourceFileName":"src/http.ts","qualifiedName":"Duration.nanos"},"231":{"sourceFileName":"src/http.ts","qualifiedName":"ClientOptions"},"232":{"sourceFileName":"src/http.ts","qualifiedName":"ClientOptions.maxRedirections"},"233":{"sourceFileName":"src/http.ts","qualifiedName":"ClientOptions.connectTimeout"},"234":{"sourceFileName":"src/http.ts","qualifiedName":"Part"},"235":{"sourceFileName":"src/http.ts","qualifiedName":"HttpVerb"},"236":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions"},"237":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions.method"},"238":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions.url"},"239":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions.headers"},"240":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions.query"},"241":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions.body"},"242":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions.timeout"},"243":{"sourceFileName":"src/http.ts","qualifiedName":"HttpOptions.responseType"},"244":{"sourceFileName":"src/http.ts","qualifiedName":"RequestOptions"},"245":{"sourceFileName":"src/http.ts","qualifiedName":"FetchOptions"},"246":{"sourceFileName":"src/http.ts","qualifiedName":"getClient"},"247":{"sourceFileName":"src/http.ts","qualifiedName":"getClient"},"248":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"249":{"sourceFileName":"src/http.ts","qualifiedName":"fetch"},"250":{"sourceFileName":"src/http.ts","qualifiedName":"fetch"},"251":{"sourceFileName":"src/http.ts","qualifiedName":"T"},"252":{"sourceFileName":"src/http.ts","qualifiedName":"url"},"253":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"254":{"sourceFileName":"src/http.ts","qualifiedName":"Body"},"255":{"sourceFileName":"src/http.ts","qualifiedName":"Body.form"},"256":{"sourceFileName":"src/http.ts","qualifiedName":"Body.form"},"257":{"sourceFileName":"src/http.ts","qualifiedName":"data"},"258":{"sourceFileName":"src/http.ts","qualifiedName":"Body.json"},"259":{"sourceFileName":"src/http.ts","qualifiedName":"Body.json"},"260":{"sourceFileName":"src/http.ts","qualifiedName":"data"},"261":{"sourceFileName":"src/http.ts","qualifiedName":"Body.text"},"262":{"sourceFileName":"src/http.ts","qualifiedName":"Body.text"},"263":{"sourceFileName":"src/http.ts","qualifiedName":"value"},"264":{"sourceFileName":"src/http.ts","qualifiedName":"Body.bytes"},"265":{"sourceFileName":"src/http.ts","qualifiedName":"Body.bytes"},"266":{"sourceFileName":"src/http.ts","qualifiedName":"bytes"},"271":{"sourceFileName":"src/http.ts","qualifiedName":"Body.type"},"272":{"sourceFileName":"src/http.ts","qualifiedName":"Body.payload"},"273":{"sourceFileName":"src/http.ts","qualifiedName":"Client"},"277":{"sourceFileName":"src/http.ts","qualifiedName":"Client.id"},"278":{"sourceFileName":"src/http.ts","qualifiedName":"Client.drop"},"279":{"sourceFileName":"src/http.ts","qualifiedName":"Client.drop"},"280":{"sourceFileName":"src/http.ts","qualifiedName":"Client.request"},"281":{"sourceFileName":"src/http.ts","qualifiedName":"Client.request"},"282":{"sourceFileName":"src/http.ts","qualifiedName":"T"},"283":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"284":{"sourceFileName":"src/http.ts","qualifiedName":"Client.get"},"285":{"sourceFileName":"src/http.ts","qualifiedName":"Client.get"},"286":{"sourceFileName":"src/http.ts","qualifiedName":"T"},"287":{"sourceFileName":"src/http.ts","qualifiedName":"url"},"288":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"289":{"sourceFileName":"src/http.ts","qualifiedName":"Client.post"},"290":{"sourceFileName":"src/http.ts","qualifiedName":"Client.post"},"291":{"sourceFileName":"src/http.ts","qualifiedName":"T"},"292":{"sourceFileName":"src/http.ts","qualifiedName":"url"},"293":{"sourceFileName":"src/http.ts","qualifiedName":"body"},"294":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"295":{"sourceFileName":"src/http.ts","qualifiedName":"Client.put"},"296":{"sourceFileName":"src/http.ts","qualifiedName":"Client.put"},"297":{"sourceFileName":"src/http.ts","qualifiedName":"T"},"298":{"sourceFileName":"src/http.ts","qualifiedName":"url"},"299":{"sourceFileName":"src/http.ts","qualifiedName":"body"},"300":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"301":{"sourceFileName":"src/http.ts","qualifiedName":"Client.patch"},"302":{"sourceFileName":"src/http.ts","qualifiedName":"Client.patch"},"303":{"sourceFileName":"src/http.ts","qualifiedName":"T"},"304":{"sourceFileName":"src/http.ts","qualifiedName":"url"},"305":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"306":{"sourceFileName":"src/http.ts","qualifiedName":"Client.delete"},"307":{"sourceFileName":"src/http.ts","qualifiedName":"Client.delete"},"308":{"sourceFileName":"src/http.ts","qualifiedName":"T"},"309":{"sourceFileName":"src/http.ts","qualifiedName":"url"},"310":{"sourceFileName":"src/http.ts","qualifiedName":"options"},"311":{"sourceFileName":"src/http.ts","qualifiedName":"Response"},"316":{"sourceFileName":"src/http.ts","qualifiedName":"Response.url"},"317":{"sourceFileName":"src/http.ts","qualifiedName":"Response.status"},"318":{"sourceFileName":"src/http.ts","qualifiedName":"Response.ok"},"319":{"sourceFileName":"src/http.ts","qualifiedName":"Response.headers"},"320":{"sourceFileName":"src/http.ts","qualifiedName":"Response.rawHeaders"},"321":{"sourceFileName":"src/http.ts","qualifiedName":"Response.data"},"322":{"sourceFileName":"src/http.ts","qualifiedName":"Response.T"},"323":{"sourceFileName":"src/http.ts","qualifiedName":"ResponseType"},"324":{"sourceFileName":"src/http.ts","qualifiedName":"ResponseType.JSON"},"325":{"sourceFileName":"src/http.ts","qualifiedName":"ResponseType.Text"},"326":{"sourceFileName":"src/http.ts","qualifiedName":"ResponseType.Binary"},"327":{"sourceFileName":"src/http.ts","qualifiedName":"FilePart"},"328":{"sourceFileName":"src/http.ts","qualifiedName":"FilePart.file"},"329":{"sourceFileName":"src/http.ts","qualifiedName":"FilePart.mime"},"330":{"sourceFileName":"src/http.ts","qualifiedName":"FilePart.fileName"},"331":{"sourceFileName":"src/http.ts","qualifiedName":"FilePart.T"},"332":{"sourceFileName":"src/mocks.ts","qualifiedName":""},"333":{"sourceFileName":"src/mocks.ts","qualifiedName":"mockIPC"},"334":{"sourceFileName":"src/mocks.ts","qualifiedName":"mockIPC"},"335":{"sourceFileName":"src/mocks.ts","qualifiedName":"cb"},"336":{"sourceFileName":"src/mocks.ts","qualifiedName":"__type"},"337":{"sourceFileName":"src/mocks.ts","qualifiedName":"__type"},"338":{"sourceFileName":"src/mocks.ts","qualifiedName":"cmd"},"339":{"sourceFileName":"src/mocks.ts","qualifiedName":"args"},"340":{"sourceFileName":"src/mocks.ts","qualifiedName":"mockWindows"},"341":{"sourceFileName":"src/mocks.ts","qualifiedName":"mockWindows"},"342":{"sourceFileName":"src/mocks.ts","qualifiedName":"current"},"343":{"sourceFileName":"src/mocks.ts","qualifiedName":"additionalWindows"},"344":{"sourceFileName":"src/mocks.ts","qualifiedName":"clearMocks"},"345":{"sourceFileName":"src/mocks.ts","qualifiedName":"clearMocks"},"346":{"sourceFileName":"src/notification.ts","qualifiedName":""},"347":{"sourceFileName":"src/notification.ts","qualifiedName":"Options"},"348":{"sourceFileName":"src/notification.ts","qualifiedName":"Options.title"},"349":{"sourceFileName":"src/notification.ts","qualifiedName":"Options.body"},"350":{"sourceFileName":"src/notification.ts","qualifiedName":"Options.icon"},"351":{"sourceFileName":"src/notification.ts","qualifiedName":"Options.sound"},"352":{"sourceFileName":"src/notification.ts","qualifiedName":"Permission"},"353":{"sourceFileName":"src/notification.ts","qualifiedName":"sendNotification"},"354":{"sourceFileName":"src/notification.ts","qualifiedName":"sendNotification"},"355":{"sourceFileName":"src/notification.ts","qualifiedName":"options"},"356":{"sourceFileName":"src/notification.ts","qualifiedName":"requestPermission"},"357":{"sourceFileName":"src/notification.ts","qualifiedName":"requestPermission"},"358":{"sourceFileName":"src/notification.ts","qualifiedName":"isPermissionGranted"},"359":{"sourceFileName":"src/notification.ts","qualifiedName":"isPermissionGranted"},"360":{"sourceFileName":"src/os.ts","qualifiedName":""},"361":{"sourceFileName":"src/os.ts","qualifiedName":"EOL"},"362":{"sourceFileName":"src/os.ts","qualifiedName":"platform"},"363":{"sourceFileName":"src/os.ts","qualifiedName":"platform"},"364":{"sourceFileName":"src/os.ts","qualifiedName":"version"},"365":{"sourceFileName":"src/os.ts","qualifiedName":"version"},"366":{"sourceFileName":"src/os.ts","qualifiedName":"type"},"367":{"sourceFileName":"src/os.ts","qualifiedName":"type"},"368":{"sourceFileName":"src/os.ts","qualifiedName":"arch"},"369":{"sourceFileName":"src/os.ts","qualifiedName":"arch"},"370":{"sourceFileName":"src/os.ts","qualifiedName":"tempdir"},"371":{"sourceFileName":"src/os.ts","qualifiedName":"tempdir"},"372":{"sourceFileName":"src/os.ts","qualifiedName":"locale"},"373":{"sourceFileName":"src/os.ts","qualifiedName":"locale"},"374":{"sourceFileName":"src/os.ts","qualifiedName":"Platform"},"375":{"sourceFileName":"src/os.ts","qualifiedName":"OsType"},"376":{"sourceFileName":"src/os.ts","qualifiedName":"Arch"},"377":{"sourceFileName":"src/path.ts","qualifiedName":""},"378":{"sourceFileName":"src/path.ts","qualifiedName":"appDir"},"379":{"sourceFileName":"src/path.ts","qualifiedName":"appDir"},"380":{"sourceFileName":"src/path.ts","qualifiedName":"appConfigDir"},"381":{"sourceFileName":"src/path.ts","qualifiedName":"appConfigDir"},"382":{"sourceFileName":"src/path.ts","qualifiedName":"appDataDir"},"383":{"sourceFileName":"src/path.ts","qualifiedName":"appDataDir"},"384":{"sourceFileName":"src/path.ts","qualifiedName":"appLocalDataDir"},"385":{"sourceFileName":"src/path.ts","qualifiedName":"appLocalDataDir"},"386":{"sourceFileName":"src/path.ts","qualifiedName":"appCacheDir"},"387":{"sourceFileName":"src/path.ts","qualifiedName":"appCacheDir"},"388":{"sourceFileName":"src/path.ts","qualifiedName":"appLogDir"},"389":{"sourceFileName":"src/path.ts","qualifiedName":"appLogDir"},"390":{"sourceFileName":"src/path.ts","qualifiedName":"audioDir"},"391":{"sourceFileName":"src/path.ts","qualifiedName":"audioDir"},"392":{"sourceFileName":"src/path.ts","qualifiedName":"cacheDir"},"393":{"sourceFileName":"src/path.ts","qualifiedName":"cacheDir"},"394":{"sourceFileName":"src/path.ts","qualifiedName":"configDir"},"395":{"sourceFileName":"src/path.ts","qualifiedName":"configDir"},"396":{"sourceFileName":"src/path.ts","qualifiedName":"dataDir"},"397":{"sourceFileName":"src/path.ts","qualifiedName":"dataDir"},"398":{"sourceFileName":"src/path.ts","qualifiedName":"desktopDir"},"399":{"sourceFileName":"src/path.ts","qualifiedName":"desktopDir"},"400":{"sourceFileName":"src/path.ts","qualifiedName":"documentDir"},"401":{"sourceFileName":"src/path.ts","qualifiedName":"documentDir"},"402":{"sourceFileName":"src/path.ts","qualifiedName":"downloadDir"},"403":{"sourceFileName":"src/path.ts","qualifiedName":"downloadDir"},"404":{"sourceFileName":"src/path.ts","qualifiedName":"executableDir"},"405":{"sourceFileName":"src/path.ts","qualifiedName":"executableDir"},"406":{"sourceFileName":"src/path.ts","qualifiedName":"fontDir"},"407":{"sourceFileName":"src/path.ts","qualifiedName":"fontDir"},"408":{"sourceFileName":"src/path.ts","qualifiedName":"homeDir"},"409":{"sourceFileName":"src/path.ts","qualifiedName":"homeDir"},"410":{"sourceFileName":"src/path.ts","qualifiedName":"localDataDir"},"411":{"sourceFileName":"src/path.ts","qualifiedName":"localDataDir"},"412":{"sourceFileName":"src/path.ts","qualifiedName":"pictureDir"},"413":{"sourceFileName":"src/path.ts","qualifiedName":"pictureDir"},"414":{"sourceFileName":"src/path.ts","qualifiedName":"publicDir"},"415":{"sourceFileName":"src/path.ts","qualifiedName":"publicDir"},"416":{"sourceFileName":"src/path.ts","qualifiedName":"resourceDir"},"417":{"sourceFileName":"src/path.ts","qualifiedName":"resourceDir"},"418":{"sourceFileName":"src/path.ts","qualifiedName":"resolveResource"},"419":{"sourceFileName":"src/path.ts","qualifiedName":"resolveResource"},"420":{"sourceFileName":"src/path.ts","qualifiedName":"resourcePath"},"421":{"sourceFileName":"src/path.ts","qualifiedName":"runtimeDir"},"422":{"sourceFileName":"src/path.ts","qualifiedName":"runtimeDir"},"423":{"sourceFileName":"src/path.ts","qualifiedName":"templateDir"},"424":{"sourceFileName":"src/path.ts","qualifiedName":"templateDir"},"425":{"sourceFileName":"src/path.ts","qualifiedName":"videoDir"},"426":{"sourceFileName":"src/path.ts","qualifiedName":"videoDir"},"427":{"sourceFileName":"src/path.ts","qualifiedName":"logDir"},"428":{"sourceFileName":"src/path.ts","qualifiedName":"logDir"},"429":{"sourceFileName":"src/path.ts","qualifiedName":"sep"},"430":{"sourceFileName":"src/path.ts","qualifiedName":"delimiter"},"431":{"sourceFileName":"src/path.ts","qualifiedName":"resolve"},"432":{"sourceFileName":"src/path.ts","qualifiedName":"resolve"},"433":{"sourceFileName":"src/path.ts","qualifiedName":"paths"},"434":{"sourceFileName":"src/path.ts","qualifiedName":"normalize"},"435":{"sourceFileName":"src/path.ts","qualifiedName":"normalize"},"436":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"437":{"sourceFileName":"src/path.ts","qualifiedName":"join"},"438":{"sourceFileName":"src/path.ts","qualifiedName":"join"},"439":{"sourceFileName":"src/path.ts","qualifiedName":"paths"},"440":{"sourceFileName":"src/path.ts","qualifiedName":"dirname"},"441":{"sourceFileName":"src/path.ts","qualifiedName":"dirname"},"442":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"443":{"sourceFileName":"src/path.ts","qualifiedName":"extname"},"444":{"sourceFileName":"src/path.ts","qualifiedName":"extname"},"445":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"446":{"sourceFileName":"src/path.ts","qualifiedName":"basename"},"447":{"sourceFileName":"src/path.ts","qualifiedName":"basename"},"448":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"449":{"sourceFileName":"src/path.ts","qualifiedName":"ext"},"450":{"sourceFileName":"src/path.ts","qualifiedName":"isAbsolute"},"451":{"sourceFileName":"src/path.ts","qualifiedName":"isAbsolute"},"452":{"sourceFileName":"src/path.ts","qualifiedName":"path"},"453":{"sourceFileName":"src/process.ts","qualifiedName":""},"454":{"sourceFileName":"src/process.ts","qualifiedName":"exit"},"455":{"sourceFileName":"src/process.ts","qualifiedName":"exit"},"456":{"sourceFileName":"src/process.ts","qualifiedName":"exitCode"},"457":{"sourceFileName":"src/process.ts","qualifiedName":"relaunch"},"458":{"sourceFileName":"src/process.ts","qualifiedName":"relaunch"},"459":{"sourceFileName":"src/shell.ts","qualifiedName":""},"460":{"sourceFileName":"src/shell.ts","qualifiedName":"Command"},"461":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.sidecar"},"462":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.sidecar"},"463":{"sourceFileName":"src/shell.ts","qualifiedName":"program"},"464":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"465":{"sourceFileName":"src/shell.ts","qualifiedName":"options"},"466":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.__constructor"},"467":{"sourceFileName":"src/shell.ts","qualifiedName":"Command"},"468":{"sourceFileName":"src/shell.ts","qualifiedName":"program"},"469":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"470":{"sourceFileName":"src/shell.ts","qualifiedName":"options"},"474":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.stdout"},"475":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.stderr"},"476":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.spawn"},"477":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.spawn"},"478":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.execute"},"479":{"sourceFileName":"src/shell.ts","qualifiedName":"Command.execute"},"480":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.addListener"},"481":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.addListener"},"482":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"483":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"484":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"485":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"486":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"487":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeListener"},"488":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeListener"},"489":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"490":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"491":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"492":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"493":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"494":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.on"},"495":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.on"},"496":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"497":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"498":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"499":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"500":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"501":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.once"},"502":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.once"},"503":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"504":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"505":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"506":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"507":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"508":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.off"},"509":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.off"},"510":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"511":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"512":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"513":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"514":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"515":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeAllListeners"},"516":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeAllListeners"},"517":{"sourceFileName":"src/shell.ts","qualifiedName":"event"},"522":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.listenerCount"},"523":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.listenerCount"},"524":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"525":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependListener"},"526":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependListener"},"527":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"528":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"529":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"530":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"531":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"532":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependOnceListener"},"533":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependOnceListener"},"534":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"535":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"536":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"537":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"538":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"539":{"sourceFileName":"src/shell.ts","qualifiedName":"Child"},"540":{"sourceFileName":"src/shell.ts","qualifiedName":"Child.__constructor"},"541":{"sourceFileName":"src/shell.ts","qualifiedName":"Child"},"542":{"sourceFileName":"src/shell.ts","qualifiedName":"pid"},"543":{"sourceFileName":"src/shell.ts","qualifiedName":"Child.pid"},"544":{"sourceFileName":"src/shell.ts","qualifiedName":"Child.write"},"545":{"sourceFileName":"src/shell.ts","qualifiedName":"Child.write"},"546":{"sourceFileName":"src/shell.ts","qualifiedName":"data"},"547":{"sourceFileName":"src/shell.ts","qualifiedName":"Child.kill"},"548":{"sourceFileName":"src/shell.ts","qualifiedName":"Child.kill"},"549":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter"},"552":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.E"},"557":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.addListener"},"558":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.addListener"},"559":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"560":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"561":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"562":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"563":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"564":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeListener"},"565":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeListener"},"566":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"567":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"568":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"569":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"570":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"571":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.on"},"572":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.on"},"573":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"574":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"575":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"576":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"577":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"578":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.once"},"579":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.once"},"580":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"581":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"582":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"583":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"584":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"585":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.off"},"586":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.off"},"587":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"588":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"589":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"590":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"591":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"592":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeAllListeners"},"593":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.removeAllListeners"},"594":{"sourceFileName":"src/shell.ts","qualifiedName":"event"},"599":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.listenerCount"},"600":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.listenerCount"},"601":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"602":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependListener"},"603":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependListener"},"604":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"605":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"606":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"607":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"608":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"609":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependOnceListener"},"610":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.prependOnceListener"},"611":{"sourceFileName":"src/shell.ts","qualifiedName":"eventName"},"612":{"sourceFileName":"src/shell.ts","qualifiedName":"listener"},"613":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"614":{"sourceFileName":"src/shell.ts","qualifiedName":"__type"},"615":{"sourceFileName":"src/shell.ts","qualifiedName":"args"},"616":{"sourceFileName":"src/shell.ts","qualifiedName":"EventEmitter.E"},"617":{"sourceFileName":"src/shell.ts","qualifiedName":"open"},"618":{"sourceFileName":"src/shell.ts","qualifiedName":"open"},"619":{"sourceFileName":"src/shell.ts","qualifiedName":"path"},"620":{"sourceFileName":"src/shell.ts","qualifiedName":"openWith"},"621":{"sourceFileName":"src/shell.ts","qualifiedName":"ChildProcess"},"622":{"sourceFileName":"src/shell.ts","qualifiedName":"ChildProcess.code"},"623":{"sourceFileName":"src/shell.ts","qualifiedName":"ChildProcess.signal"},"624":{"sourceFileName":"src/shell.ts","qualifiedName":"ChildProcess.stdout"},"625":{"sourceFileName":"src/shell.ts","qualifiedName":"ChildProcess.stderr"},"626":{"sourceFileName":"src/shell.ts","qualifiedName":"SpawnOptions"},"627":{"sourceFileName":"src/shell.ts","qualifiedName":"SpawnOptions.cwd"},"628":{"sourceFileName":"src/shell.ts","qualifiedName":"SpawnOptions.env"},"629":{"sourceFileName":"src/shell.ts","qualifiedName":"SpawnOptions.encoding"},"630":{"sourceFileName":"src/tauri.ts","qualifiedName":""},"631":{"sourceFileName":"src/tauri.ts","qualifiedName":"InvokeArgs"},"632":{"sourceFileName":"src/tauri.ts","qualifiedName":"transformCallback"},"633":{"sourceFileName":"src/tauri.ts","qualifiedName":"transformCallback"},"634":{"sourceFileName":"src/tauri.ts","qualifiedName":"callback"},"635":{"sourceFileName":"src/tauri.ts","qualifiedName":"__type"},"636":{"sourceFileName":"src/tauri.ts","qualifiedName":"__type"},"637":{"sourceFileName":"src/tauri.ts","qualifiedName":"response"},"638":{"sourceFileName":"src/tauri.ts","qualifiedName":"once"},"639":{"sourceFileName":"src/tauri.ts","qualifiedName":"invoke"},"640":{"sourceFileName":"src/tauri.ts","qualifiedName":"invoke"},"641":{"sourceFileName":"src/tauri.ts","qualifiedName":"T"},"642":{"sourceFileName":"src/tauri.ts","qualifiedName":"cmd"},"643":{"sourceFileName":"src/tauri.ts","qualifiedName":"args"},"644":{"sourceFileName":"src/tauri.ts","qualifiedName":"convertFileSrc"},"645":{"sourceFileName":"src/tauri.ts","qualifiedName":"convertFileSrc"},"646":{"sourceFileName":"src/tauri.ts","qualifiedName":"filePath"},"647":{"sourceFileName":"src/tauri.ts","qualifiedName":"protocol"},"648":{"sourceFileName":"src/updater.ts","qualifiedName":""},"649":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateStatus"},"650":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateStatusResult"},"651":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateStatusResult.error"},"652":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateStatusResult.status"},"653":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateManifest"},"654":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateManifest.version"},"655":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateManifest.date"},"656":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateManifest.body"},"657":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateResult"},"658":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateResult.manifest"},"659":{"sourceFileName":"src/updater.ts","qualifiedName":"UpdateResult.shouldUpdate"},"660":{"sourceFileName":"src/updater.ts","qualifiedName":"onUpdaterEvent"},"661":{"sourceFileName":"src/updater.ts","qualifiedName":"onUpdaterEvent"},"662":{"sourceFileName":"src/updater.ts","qualifiedName":"handler"},"663":{"sourceFileName":"src/updater.ts","qualifiedName":"__type"},"664":{"sourceFileName":"src/updater.ts","qualifiedName":"__type"},"665":{"sourceFileName":"src/updater.ts","qualifiedName":"status"},"666":{"sourceFileName":"src/updater.ts","qualifiedName":"installUpdate"},"667":{"sourceFileName":"src/updater.ts","qualifiedName":"installUpdate"},"668":{"sourceFileName":"src/updater.ts","qualifiedName":"checkUpdate"},"669":{"sourceFileName":"src/updater.ts","qualifiedName":"checkUpdate"},"670":{"sourceFileName":"src/window.ts","qualifiedName":""},"671":{"sourceFileName":"src/window.ts","qualifiedName":"CursorIcon"},"673":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindow"},"674":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindow.getByLabel"},"675":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindow.getByLabel"},"676":{"sourceFileName":"src/window.ts","qualifiedName":"label"},"677":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindow.getFocusedWindow"},"678":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindow.getFocusedWindow"},"679":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindow.__constructor"},"680":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindow"},"681":{"sourceFileName":"src/window.ts","qualifiedName":"label"},"682":{"sourceFileName":"src/window.ts","qualifiedName":"options"},"683":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.scaleFactor"},"684":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.scaleFactor"},"685":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.innerPosition"},"686":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.innerPosition"},"687":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.outerPosition"},"688":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.outerPosition"},"689":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.innerSize"},"690":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.innerSize"},"691":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.outerSize"},"692":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.outerSize"},"693":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isFullscreen"},"694":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isFullscreen"},"695":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMinimized"},"696":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMinimized"},"697":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMaximized"},"698":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMaximized"},"699":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isFocused"},"700":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isFocused"},"701":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isDecorated"},"702":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isDecorated"},"703":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isResizable"},"704":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isResizable"},"705":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMaximizable"},"706":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMaximizable"},"707":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMinimizable"},"708":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isMinimizable"},"709":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isClosable"},"710":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isClosable"},"711":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isVisible"},"712":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.isVisible"},"713":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.title"},"714":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.title"},"715":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.theme"},"716":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.theme"},"717":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.center"},"718":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.center"},"719":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.requestUserAttention"},"720":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.requestUserAttention"},"721":{"sourceFileName":"src/window.ts","qualifiedName":"requestType"},"722":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setResizable"},"723":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setResizable"},"724":{"sourceFileName":"src/window.ts","qualifiedName":"resizable"},"725":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMaximizable"},"726":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMaximizable"},"727":{"sourceFileName":"src/window.ts","qualifiedName":"maximizable"},"728":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMinimizable"},"729":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMinimizable"},"730":{"sourceFileName":"src/window.ts","qualifiedName":"minimizable"},"731":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setClosable"},"732":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setClosable"},"733":{"sourceFileName":"src/window.ts","qualifiedName":"closable"},"734":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setTitle"},"735":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setTitle"},"736":{"sourceFileName":"src/window.ts","qualifiedName":"title"},"737":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.maximize"},"738":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.maximize"},"739":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.unmaximize"},"740":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.unmaximize"},"741":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.toggleMaximize"},"742":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.toggleMaximize"},"743":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.minimize"},"744":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.minimize"},"745":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.unminimize"},"746":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.unminimize"},"747":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.show"},"748":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.show"},"749":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.hide"},"750":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.hide"},"751":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.close"},"752":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.close"},"753":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setDecorations"},"754":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setDecorations"},"755":{"sourceFileName":"src/window.ts","qualifiedName":"decorations"},"756":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setAlwaysOnTop"},"757":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setAlwaysOnTop"},"758":{"sourceFileName":"src/window.ts","qualifiedName":"alwaysOnTop"},"759":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setContentProtected"},"760":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setContentProtected"},"761":{"sourceFileName":"src/window.ts","qualifiedName":"protected_"},"762":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setSize"},"763":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setSize"},"764":{"sourceFileName":"src/window.ts","qualifiedName":"size"},"765":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMinSize"},"766":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMinSize"},"767":{"sourceFileName":"src/window.ts","qualifiedName":"size"},"768":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMaxSize"},"769":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setMaxSize"},"770":{"sourceFileName":"src/window.ts","qualifiedName":"size"},"771":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setPosition"},"772":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setPosition"},"773":{"sourceFileName":"src/window.ts","qualifiedName":"position"},"774":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setFullscreen"},"775":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setFullscreen"},"776":{"sourceFileName":"src/window.ts","qualifiedName":"fullscreen"},"777":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setFocus"},"778":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setFocus"},"779":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setIcon"},"780":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setIcon"},"781":{"sourceFileName":"src/window.ts","qualifiedName":"icon"},"782":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setSkipTaskbar"},"783":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setSkipTaskbar"},"784":{"sourceFileName":"src/window.ts","qualifiedName":"skip"},"785":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorGrab"},"786":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorGrab"},"787":{"sourceFileName":"src/window.ts","qualifiedName":"grab"},"788":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorVisible"},"789":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorVisible"},"790":{"sourceFileName":"src/window.ts","qualifiedName":"visible"},"791":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorIcon"},"792":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorIcon"},"793":{"sourceFileName":"src/window.ts","qualifiedName":"icon"},"794":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorPosition"},"795":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setCursorPosition"},"796":{"sourceFileName":"src/window.ts","qualifiedName":"position"},"797":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setIgnoreCursorEvents"},"798":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.setIgnoreCursorEvents"},"799":{"sourceFileName":"src/window.ts","qualifiedName":"ignore"},"800":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.startDragging"},"801":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.startDragging"},"802":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onResized"},"803":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onResized"},"804":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"805":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onMoved"},"806":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onMoved"},"807":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"808":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onCloseRequested"},"809":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onCloseRequested"},"810":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"811":{"sourceFileName":"src/window.ts","qualifiedName":"__type"},"812":{"sourceFileName":"src/window.ts","qualifiedName":"__type"},"813":{"sourceFileName":"src/window.ts","qualifiedName":"event"},"814":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onFocusChanged"},"815":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onFocusChanged"},"816":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"817":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onScaleChanged"},"818":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onScaleChanged"},"819":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"820":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onMenuClicked"},"821":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onMenuClicked"},"822":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"823":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onFileDropEvent"},"824":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onFileDropEvent"},"825":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"826":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onThemeChanged"},"827":{"sourceFileName":"src/window.ts","qualifiedName":"WindowManager.onThemeChanged"},"828":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"829":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.label"},"830":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.listeners"},"831":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.listen"},"832":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.listen"},"833":{"sourceFileName":"src/window.ts","qualifiedName":"T"},"834":{"sourceFileName":"src/window.ts","qualifiedName":"event"},"835":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"836":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.once"},"837":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.once"},"838":{"sourceFileName":"src/window.ts","qualifiedName":"T"},"839":{"sourceFileName":"src/window.ts","qualifiedName":"event"},"840":{"sourceFileName":"src/window.ts","qualifiedName":"handler"},"841":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.emit"},"842":{"sourceFileName":"src/window.ts","qualifiedName":"WebviewWindowHandle.emit"},"843":{"sourceFileName":"src/window.ts","qualifiedName":"event"},"844":{"sourceFileName":"src/window.ts","qualifiedName":"payload"},"1046":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent"},"1047":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.__constructor"},"1048":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent"},"1049":{"sourceFileName":"src/window.ts","qualifiedName":"event"},"1050":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.event"},"1051":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.windowLabel"},"1052":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.id"},"1053":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent._preventDefault"},"1054":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.preventDefault"},"1055":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.preventDefault"},"1056":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.isPreventDefault"},"1057":{"sourceFileName":"src/window.ts","qualifiedName":"CloseRequestedEvent.isPreventDefault"},"1058":{"sourceFileName":"src/window.ts","qualifiedName":"getCurrent"},"1059":{"sourceFileName":"src/window.ts","qualifiedName":"getCurrent"},"1060":{"sourceFileName":"src/window.ts","qualifiedName":"getAll"},"1061":{"sourceFileName":"src/window.ts","qualifiedName":"getAll"},"1062":{"sourceFileName":"src/window.ts","qualifiedName":"appWindow"},"1063":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalSize"},"1064":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalSize.__constructor"},"1065":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalSize"},"1066":{"sourceFileName":"src/window.ts","qualifiedName":"width"},"1067":{"sourceFileName":"src/window.ts","qualifiedName":"height"},"1068":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalSize.type"},"1069":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalSize.width"},"1070":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalSize.height"},"1071":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize"},"1072":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize.__constructor"},"1073":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize"},"1074":{"sourceFileName":"src/window.ts","qualifiedName":"width"},"1075":{"sourceFileName":"src/window.ts","qualifiedName":"height"},"1076":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize.type"},"1077":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize.width"},"1078":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize.height"},"1079":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize.toLogical"},"1080":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalSize.toLogical"},"1081":{"sourceFileName":"src/window.ts","qualifiedName":"scaleFactor"},"1082":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalPosition"},"1083":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalPosition.__constructor"},"1084":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalPosition"},"1085":{"sourceFileName":"src/window.ts","qualifiedName":"x"},"1086":{"sourceFileName":"src/window.ts","qualifiedName":"y"},"1087":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalPosition.type"},"1088":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalPosition.x"},"1089":{"sourceFileName":"src/window.ts","qualifiedName":"LogicalPosition.y"},"1090":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition"},"1091":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition.__constructor"},"1092":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition"},"1093":{"sourceFileName":"src/window.ts","qualifiedName":"x"},"1094":{"sourceFileName":"src/window.ts","qualifiedName":"y"},"1095":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition.type"},"1096":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition.x"},"1097":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition.y"},"1098":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition.toLogical"},"1099":{"sourceFileName":"src/window.ts","qualifiedName":"PhysicalPosition.toLogical"},"1100":{"sourceFileName":"src/window.ts","qualifiedName":"scaleFactor"},"1101":{"sourceFileName":"src/window.ts","qualifiedName":"UserAttentionType"},"1102":{"sourceFileName":"src/window.ts","qualifiedName":"UserAttentionType.Critical"},"1103":{"sourceFileName":"src/window.ts","qualifiedName":"UserAttentionType.Informational"},"1104":{"sourceFileName":"src/window.ts","qualifiedName":"currentMonitor"},"1105":{"sourceFileName":"src/window.ts","qualifiedName":"currentMonitor"},"1106":{"sourceFileName":"src/window.ts","qualifiedName":"primaryMonitor"},"1107":{"sourceFileName":"src/window.ts","qualifiedName":"primaryMonitor"},"1108":{"sourceFileName":"src/window.ts","qualifiedName":"availableMonitors"},"1109":{"sourceFileName":"src/window.ts","qualifiedName":"availableMonitors"},"1110":{"sourceFileName":"src/window.ts","qualifiedName":"Theme"},"1111":{"sourceFileName":"src/window.ts","qualifiedName":"TitleBarStyle"},"1112":{"sourceFileName":"src/window.ts","qualifiedName":"Monitor"},"1113":{"sourceFileName":"src/window.ts","qualifiedName":"Monitor.name"},"1114":{"sourceFileName":"src/window.ts","qualifiedName":"Monitor.size"},"1115":{"sourceFileName":"src/window.ts","qualifiedName":"Monitor.position"},"1116":{"sourceFileName":"src/window.ts","qualifiedName":"Monitor.scaleFactor"},"1117":{"sourceFileName":"src/window.ts","qualifiedName":"ScaleFactorChanged"},"1118":{"sourceFileName":"src/window.ts","qualifiedName":"ScaleFactorChanged.scaleFactor"},"1119":{"sourceFileName":"src/window.ts","qualifiedName":"ScaleFactorChanged.size"},"1120":{"sourceFileName":"src/window.ts","qualifiedName":"FileDropEvent"},"1121":{"sourceFileName":"src/window.ts","qualifiedName":"__type"},"1122":{"sourceFileName":"src/window.ts","qualifiedName":"__type.type"},"1123":{"sourceFileName":"src/window.ts","qualifiedName":"__type.paths"},"1124":{"sourceFileName":"src/window.ts","qualifiedName":"__type"},"1125":{"sourceFileName":"src/window.ts","qualifiedName":"__type.type"},"1126":{"sourceFileName":"src/window.ts","qualifiedName":"__type.paths"},"1127":{"sourceFileName":"src/window.ts","qualifiedName":"__type"},"1128":{"sourceFileName":"src/window.ts","qualifiedName":"__type.type"},"1129":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions"},"1130":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.url"},"1131":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.center"},"1132":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.x"},"1133":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.y"},"1134":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.width"},"1135":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.height"},"1136":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.minWidth"},"1137":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.minHeight"},"1138":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.maxWidth"},"1139":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.maxHeight"},"1140":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.resizable"},"1141":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.title"},"1142":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.fullscreen"},"1143":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.focus"},"1144":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.transparent"},"1145":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.maximized"},"1146":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.visible"},"1147":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.decorations"},"1148":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.alwaysOnTop"},"1149":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.contentProtected"},"1150":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.skipTaskbar"},"1151":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.fileDropEnabled"},"1152":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.theme"},"1153":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.titleBarStyle"},"1154":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.hiddenTitle"},"1155":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.acceptFirstMouse"},"1156":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.tabbingIdentifier"},"1157":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.userAgent"},"1158":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.maximizable"},"1159":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.minimizable"},"1160":{"sourceFileName":"src/window.ts","qualifiedName":"WindowOptions.closable"},"1161":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"Event"},"1162":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"Event.event"},"1163":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"Event.windowLabel"},"1164":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"Event.id"},"1165":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"Event.payload"},"1166":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"Event.T"},"1167":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"EventCallback"},"1168":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"__type"},"1169":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"__type"},"1170":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"event"},"1171":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"T"},"1172":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"UnlistenFn"},"1173":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"__type"},"1174":{"sourceFileName":"src/helpers/event.ts","qualifiedName":"__type"},"1175":{"sourceFileName":"src/path.ts","qualifiedName":"BaseDirectory"}}} \ No newline at end of file diff --git a/tooling/api/src/notification.ts b/tooling/api/src/notification.ts index c3125d194fd5..53c303f468b8 100644 --- a/tooling/api/src/notification.ts +++ b/tooling/api/src/notification.ts @@ -50,7 +50,8 @@ interface Options { * but without the prefix, for example, if `ms-winsoundevent:Notification.Default` you would use `Default` and * if `ms-winsoundevent:Notification.Looping.Alarm2`, you would use `Alarm2`. * Windows 7 is not supproted, if a sound is provided, it will play the default sound, otherwise it will be silent. - * - **macOS**: you can specify the name of the sound you'd like to play when the notification is shown. + * - **macOS**: you can specify the name of the sound you'd like to play when the notification is shown + * or use `NSUserNotificationDefaultSoundName` to play the default sound. * Any of the default sounds (under System Preferences > Sound) can be used, in addition to custom sound files. * Be sure that the sound file is copied under the app bundle (e.g., `YourApp.app/Contents/Resources`), or one of the following locations: * - `~/Library/Sounds` From fb3f2dbbea7c34d729b9a8f350ab6790c76f77ec Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Wed, 21 Jun 2023 00:25:42 +0300 Subject: [PATCH 04/13] Update core/tauri/src/api/notification.rs Co-authored-by: Lucas Fernandes Nogueira --- core/tauri/src/api/notification.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tauri/src/api/notification.rs b/core/tauri/src/api/notification.rs index 20f2f028fae9..57ed416db938 100644 --- a/core/tauri/src/api/notification.rs +++ b/core/tauri/src/api/notification.rs @@ -84,7 +84,7 @@ impl Notification { /// - **Windows**: can be one of the sounds listed in /// but without the prefix, for example, if `ms-winsoundevent:Notification.Default` you would use `Default` and /// if `ms-winsoundevent:Notification.Looping.Alarm2`, you would use `Alarm2`. - /// Windows 7 is not supproted, if a sound is provided, it will play the default sound, otherwise it will be silent. + /// Windows 7 is not supported, if a sound is provided, it will play the default sound, otherwise it will be silent. /// - **macOS**: you can specify the name of the sound you'd like to play when the notification is shown /// or use `NSUserNotificationDefaultSoundName` to play the default sound. /// Any of the default sounds (under System Preferences > Sound) can be used, in addition to custom sound files. From 90fc5bd8b8b694d8c902b9486837fe3963d89d0b Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Wed, 21 Jun 2023 00:25:50 +0300 Subject: [PATCH 05/13] Update tooling/api/src/notification.ts Co-authored-by: Lucas Fernandes Nogueira --- tooling/api/src/notification.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tooling/api/src/notification.ts b/tooling/api/src/notification.ts index 53c303f468b8..474e45534f72 100644 --- a/tooling/api/src/notification.ts +++ b/tooling/api/src/notification.ts @@ -49,7 +49,7 @@ interface Options { * - **Windows**: can be one of the sounds listed in {@link https://learn.microsoft.com/en-us/uwp/schemas/tiles/toastschema/element-audio} * but without the prefix, for example, if `ms-winsoundevent:Notification.Default` you would use `Default` and * if `ms-winsoundevent:Notification.Looping.Alarm2`, you would use `Alarm2`. - * Windows 7 is not supproted, if a sound is provided, it will play the default sound, otherwise it will be silent. + * Windows 7 is not supported, if a sound is provided, it will play the default sound, otherwise it will be silent. * - **macOS**: you can specify the name of the sound you'd like to play when the notification is shown * or use `NSUserNotificationDefaultSoundName` to play the default sound. * Any of the default sounds (under System Preferences > Sound) can be used, in addition to custom sound files. From 2303e91763bc9209257b08ecd21836c413ec8cdc Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Thu, 29 Jun 2023 08:57:18 -0300 Subject: [PATCH 06/13] actually read NSUserNotificationDefaultSoundName --- core/tauri/src/api/notification.rs | 35 +++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/core/tauri/src/api/notification.rs b/core/tauri/src/api/notification.rs index 57ed416db938..5477be612cc8 100644 --- a/core/tauri/src/api/notification.rs +++ b/core/tauri/src/api/notification.rs @@ -7,6 +7,15 @@ #[cfg(windows)] use std::path::MAIN_SEPARATOR as SEP; +#[cfg(target_os = "macos")] +use objc::runtime::Object; + +#[cfg(target_os = "macos")] +#[link(name = "AppKit", kind = "framework")] +extern "C" { + static NSUserNotificationDefaultSoundName: *const Object; +} + /// The desktop notification definition. /// /// Allows you to construct a Notification data and send it. @@ -88,7 +97,7 @@ impl Notification { /// - **macOS**: you can specify the name of the sound you'd like to play when the notification is shown /// or use `NSUserNotificationDefaultSoundName` to play the default sound. /// Any of the default sounds (under System Preferences > Sound) can be used, in addition to custom sound files. - /// Be sure that the sound file is copied under the app bundle (e.g., `YourApp.app/Contents/Resources`), or one of the following locations: + /// Be sure that the sound file is under one of the following locations: /// - `~/Library/Sounds` /// - `/Library/Sounds` /// - `/Network/Library/Sounds` @@ -96,11 +105,31 @@ impl Notification { /// /// See the [`NSSound`] docs for more information. /// - /// /// [`NSSound`]: https://developer.apple.com/documentation/appkit/nssound #[must_use] pub fn sound(mut self, sound: impl Into) -> Self { - self.sound = Some(sound.into()); + let sound = sound.into(); + #[cfg(target_os = "macos")] + { + if sound == "NSUserNotificationDefaultSoundName" { + let sound = unsafe { + const UTF8_ENCODING: usize = 4; + use objc::*; + + let bytes: *const std::ffi::c_char = + msg_send![NSUserNotificationDefaultSoundName, UTF8String]; + let len = msg_send![ + NSUserNotificationDefaultSoundName, + lengthOfBytesUsingEncoding: UTF8_ENCODING + ]; + let bytes = std::slice::from_raw_parts(bytes as *const u8, len); + std::str::from_utf8_unchecked(bytes) + }; + self.sound.replace(sound.into()); + return self; + } + } + self.sound.replace(sound); self } From 6cb4087a06482a1467263186f310ddda20d1cbc6 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Tue, 8 Aug 2023 13:34:08 -0300 Subject: [PATCH 07/13] use NSUserNotificationDefaultSoundName string --- core/tauri/src/api/notification.rs | 32 +----------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/core/tauri/src/api/notification.rs b/core/tauri/src/api/notification.rs index 5477be612cc8..2ce55b6bb122 100644 --- a/core/tauri/src/api/notification.rs +++ b/core/tauri/src/api/notification.rs @@ -7,15 +7,6 @@ #[cfg(windows)] use std::path::MAIN_SEPARATOR as SEP; -#[cfg(target_os = "macos")] -use objc::runtime::Object; - -#[cfg(target_os = "macos")] -#[link(name = "AppKit", kind = "framework")] -extern "C" { - static NSUserNotificationDefaultSoundName: *const Object; -} - /// The desktop notification definition. /// /// Allows you to construct a Notification data and send it. @@ -108,28 +99,7 @@ impl Notification { /// [`NSSound`]: https://developer.apple.com/documentation/appkit/nssound #[must_use] pub fn sound(mut self, sound: impl Into) -> Self { - let sound = sound.into(); - #[cfg(target_os = "macos")] - { - if sound == "NSUserNotificationDefaultSoundName" { - let sound = unsafe { - const UTF8_ENCODING: usize = 4; - use objc::*; - - let bytes: *const std::ffi::c_char = - msg_send![NSUserNotificationDefaultSoundName, UTF8String]; - let len = msg_send![ - NSUserNotificationDefaultSoundName, - lengthOfBytesUsingEncoding: UTF8_ENCODING - ]; - let bytes = std::slice::from_raw_parts(bytes as *const u8, len); - std::str::from_utf8_unchecked(bytes) - }; - self.sound.replace(sound.into()); - return self; - } - } - self.sound.replace(sound); + self.sound.replace(sound.into()); self } From 500188e8a609216772c646a7aaa825303cd0123d Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Tue, 8 Aug 2023 13:36:39 -0300 Subject: [PATCH 08/13] update example --- examples/api/dist/assets/index.js | 18 +++--- examples/api/src-tauri/Cargo.lock | 69 ++++++++++++++++++--- examples/api/src/views/Notifications.svelte | 12 ++-- 3 files changed, 75 insertions(+), 24 deletions(-) diff --git a/examples/api/dist/assets/index.js b/examples/api/dist/assets/index.js index 19d797893918..e77d722291fd 100644 --- a/examples/api/dist/assets/index.js +++ b/examples/api/dist/assets/index.js @@ -12,9 +12,9 @@ Tauri version: `),b=a("code"),S=z(e[1]),P=z(`
  --config <PATH>
   --theme <light|dark|system>
   --verbose
- Additionally, it has a update --background subcommand.`,n=m(),i=a("br"),l=m(),o=a("div"),o.textContent="Note that the arguments are only parsed, not implemented.",u=m(),d=a("br"),c=m(),f=a("br"),g=m(),k=a("button"),k.textContent="Get matches",r(o,"class","note"),r(k,"class","btn"),r(k,"id","cli-matches")},m(y,b){h(y,t,b),h(y,n,b),h(y,i,b),h(y,l,b),h(y,o,b),h(y,u,b),h(y,d,b),h(y,c,b),h(y,f,b),h(y,g,b),h(y,k,b),_||(v=L(k,"click",e[0]),_=!0)},p:V,i:V,o:V,d(y){y&&p(t),y&&p(n),y&&p(i),y&&p(l),y&&p(o),y&&p(u),y&&p(d),y&&p(c),y&&p(f),y&&p(g),y&&p(k),_=!1,v()}}}function ia(e,t,n){let{onMessage:i}=t;function l(){oo().then(i).catch(i)}return e.$$set=o=>{"onMessage"in o&&n(1,i=o.onMessage)},[l,i]}class la extends ye{constructor(t){super(),ge(this,t,ia,na,pe,{onMessage:1})}}function sa(e){let t,n,i,l,o,u,d,c;return{c(){t=a("div"),n=a("button"),n.textContent="Call Log API",i=m(),l=a("button"),l.textContent="Call Request (async) API",o=m(),u=a("button"),u.textContent="Send event to Rust",r(n,"class","btn"),r(n,"id","log"),r(l,"class","btn"),r(l,"id","request"),r(u,"class","btn"),r(u,"id","event")},m(f,g){h(f,t,g),s(t,n),s(t,i),s(t,l),s(t,o),s(t,u),d||(c=[L(n,"click",e[0]),L(l,"click",e[1]),L(u,"click",e[2])],d=!0)},p:V,i:V,o:V,d(f){f&&p(t),d=!1,oe(c)}}}function oa(e,t,n){let{onMessage:i}=t,l;_t(async()=>{l=await tn("rust-event",i)}),Yi(()=>{l&&l()});function o(){ci("log_operation",{event:"tauri-click",payload:"this payload is optional because we used Option in Rust"})}function u(){ci("perform_request",{endpoint:"dummy endpoint arg",body:{id:5,name:"test"}}).then(i).catch(i)}function d(){_i("js-event","this is the payload string")}return e.$$set=c=>{"onMessage"in c&&n(3,i=c.onMessage)},[o,u,d,i]}class aa extends ye{constructor(t){super(),ge(this,t,oa,sa,pe,{onMessage:3})}}var ra={};Me(ra,{ask:()=>ro,confirm:()=>ca,message:()=>ua,open:()=>tl,save:()=>ao});async function tl(e={}){return typeof e=="object"&&Object.freeze(e),A({__tauriModule:"Dialog",message:{cmd:"openDialog",options:e}})}async function ao(e={}){return typeof e=="object"&&Object.freeze(e),A({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:e}})}async function ua(e,t){var i,l;let n=typeof t=="string"?{title:t}:t;return A({__tauriModule:"Dialog",message:{cmd:"messageDialog",message:e.toString(),title:(i=n==null?void 0:n.title)==null?void 0:i.toString(),type:n==null?void 0:n.type,buttonLabel:(l=n==null?void 0:n.okLabel)==null?void 0:l.toString()}})}async function ro(e,t){var i,l,o,u,d;let n=typeof t=="string"?{title:t}:t;return A({__tauriModule:"Dialog",message:{cmd:"askDialog",message:e.toString(),title:(i=n==null?void 0:n.title)==null?void 0:i.toString(),type:n==null?void 0:n.type,buttonLabels:[(o=(l=n==null?void 0:n.okLabel)==null?void 0:l.toString())!=null?o:"Yes",(d=(u=n==null?void 0:n.cancelLabel)==null?void 0:u.toString())!=null?d:"No"]}})}async function ca(e,t){var i,l,o,u,d;let n=typeof t=="string"?{title:t}:t;return A({__tauriModule:"Dialog",message:{cmd:"confirmDialog",message:e.toString(),title:(i=n==null?void 0:n.title)==null?void 0:i.toString(),type:n==null?void 0:n.type,buttonLabels:[(o=(l=n==null?void 0:n.okLabel)==null?void 0:l.toString())!=null?o:"Ok",(d=(u=n==null?void 0:n.cancelLabel)==null?void 0:u.toString())!=null?d:"Cancel"]}})}var da={};Me(da,{BaseDirectory:()=>en,Dir:()=>en,copyFile:()=>_a,createDir:()=>ma,exists:()=>ya,readBinaryFile:()=>nl,readDir:()=>uo,readTextFile:()=>fa,removeDir:()=>ha,removeFile:()=>ba,renameFile:()=>ga,writeBinaryFile:()=>pa,writeFile:()=>Xi,writeTextFile:()=>Xi});var en=(e=>(e[e.Audio=1]="Audio",e[e.Cache=2]="Cache",e[e.Config=3]="Config",e[e.Data=4]="Data",e[e.LocalData=5]="LocalData",e[e.Desktop=6]="Desktop",e[e.Document=7]="Document",e[e.Download=8]="Download",e[e.Executable=9]="Executable",e[e.Font=10]="Font",e[e.Home=11]="Home",e[e.Picture=12]="Picture",e[e.Public=13]="Public",e[e.Runtime=14]="Runtime",e[e.Template=15]="Template",e[e.Video=16]="Video",e[e.Resource=17]="Resource",e[e.App=18]="App",e[e.Log=19]="Log",e[e.Temp=20]="Temp",e[e.AppConfig=21]="AppConfig",e[e.AppData=22]="AppData",e[e.AppLocalData=23]="AppLocalData",e[e.AppCache=24]="AppCache",e[e.AppLog=25]="AppLog",e))(en||{});async function fa(e,t={}){return A({__tauriModule:"Fs",message:{cmd:"readTextFile",path:e,options:t}})}async function nl(e,t={}){let n=await A({__tauriModule:"Fs",message:{cmd:"readFile",path:e,options:t}});return Uint8Array.from(n)}async function Xi(e,t,n){typeof n=="object"&&Object.freeze(n),typeof e=="object"&&Object.freeze(e);let i={path:"",contents:""},l=n;return typeof e=="string"?i.path=e:(i.path=e.path,i.contents=e.contents),typeof t=="string"?i.contents=t!=null?t:"":l=t,A({__tauriModule:"Fs",message:{cmd:"writeFile",path:i.path,contents:Array.from(new TextEncoder().encode(i.contents)),options:l}})}async function pa(e,t,n){typeof n=="object"&&Object.freeze(n),typeof e=="object"&&Object.freeze(e);let i={path:"",contents:[]},l=n;return typeof e=="string"?i.path=e:(i.path=e.path,i.contents=e.contents),t&&"dir"in t?l=t:typeof e=="string"&&(i.contents=t!=null?t:[]),A({__tauriModule:"Fs",message:{cmd:"writeFile",path:i.path,contents:Array.from(i.contents instanceof ArrayBuffer?new Uint8Array(i.contents):i.contents),options:l}})}async function uo(e,t={}){return A({__tauriModule:"Fs",message:{cmd:"readDir",path:e,options:t}})}async function ma(e,t={}){return A({__tauriModule:"Fs",message:{cmd:"createDir",path:e,options:t}})}async function ha(e,t={}){return A({__tauriModule:"Fs",message:{cmd:"removeDir",path:e,options:t}})}async function _a(e,t,n={}){return A({__tauriModule:"Fs",message:{cmd:"copyFile",source:e,destination:t,options:n}})}async function ba(e,t={}){return A({__tauriModule:"Fs",message:{cmd:"removeFile",path:e,options:t}})}async function ga(e,t,n={}){return A({__tauriModule:"Fs",message:{cmd:"renameFile",oldPath:e,newPath:t,options:n}})}async function ya(e,t={}){return A({__tauriModule:"Fs",message:{cmd:"exists",path:e,options:t}})}function va(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,S,P,I,O,j,W,T,C,E;return{c(){t=a("div"),n=a("input"),i=m(),l=a("input"),o=m(),u=a("br"),d=m(),c=a("div"),f=a("input"),g=m(),k=a("label"),k.textContent="Multiple",_=m(),v=a("div"),y=a("input"),b=m(),S=a("label"),S.textContent="Directory",P=m(),I=a("br"),O=m(),j=a("button"),j.textContent="Open dialog",W=m(),T=a("button"),T.textContent="Open save dialog",r(n,"class","input"),r(n,"id","dialog-default-path"),r(n,"placeholder","Default path"),r(l,"class","input"),r(l,"id","dialog-filter"),r(l,"placeholder","Extensions filter, comma-separated"),r(t,"class","flex gap-2 children:grow"),r(f,"type","checkbox"),r(f,"id","dialog-multiple"),r(k,"for","dialog-multiple"),r(y,"type","checkbox"),r(y,"id","dialog-directory"),r(S,"for","dialog-directory"),r(j,"class","btn"),r(j,"id","open-dialog"),r(T,"class","btn"),r(T,"id","save-dialog")},m(M,H){h(M,t,H),s(t,n),q(n,e[0]),s(t,i),s(t,l),q(l,e[1]),h(M,o,H),h(M,u,H),h(M,d,H),h(M,c,H),s(c,f),f.checked=e[2],s(c,g),s(c,k),h(M,_,H),h(M,v,H),s(v,y),y.checked=e[3],s(v,b),s(v,S),h(M,P,H),h(M,I,H),h(M,O,H),h(M,j,H),h(M,W,H),h(M,T,H),C||(E=[L(n,"input",e[8]),L(l,"input",e[9]),L(f,"change",e[10]),L(y,"change",e[11]),L(j,"click",e[4]),L(T,"click",e[5])],C=!0)},p(M,[H]){H&1&&n.value!==M[0]&&q(n,M[0]),H&2&&l.value!==M[1]&&q(l,M[1]),H&4&&(f.checked=M[2]),H&8&&(y.checked=M[3])},i:V,o:V,d(M){M&&p(t),M&&p(o),M&&p(u),M&&p(d),M&&p(c),M&&p(_),M&&p(v),M&&p(P),M&&p(I),M&&p(O),M&&p(j),M&&p(W),M&&p(T),C=!1,oe(E)}}}function wa(e,t){const n=new Blob([e],{type:"application/octet-binary"}),i=new FileReader;i.onload=function(l){const o=l.target.result;t(o.substr(o.indexOf(",")+1))},i.readAsDataURL(n)}function ka(e,t,n){let{onMessage:i}=t,{insecureRenderHtml:l}=t,o=null,u=null,d=!1,c=!1;function f(){tl({title:"My wonderful open dialog",defaultPath:o,filters:u?[{name:"Tauri Example",extensions:u.split(",").map(b=>b.trim())}]:[],multiple:d,directory:c}).then(function(b){if(Array.isArray(b))i(b);else{const S=b,P=S.match(/\S+\.\S+$/g);nl(S).then(function(I){P&&(S.includes(".png")||S.includes(".jpg"))?wa(new Uint8Array(I),function(O){const j="data:image/png;base64,"+O;l('')}):i(b)}).catch(i(b))}}).catch(i)}function g(){ao({title:"My wonderful save dialog",defaultPath:o,filters:u?[{name:"Tauri Example",extensions:u.split(",").map(b=>b.trim())}]:[]}).then(i).catch(i)}function k(){o=this.value,n(0,o)}function _(){u=this.value,n(1,u)}function v(){d=this.checked,n(2,d)}function y(){c=this.checked,n(3,c)}return e.$$set=b=>{"onMessage"in b&&n(6,i=b.onMessage),"insecureRenderHtml"in b&&n(7,l=b.insecureRenderHtml)},[o,u,d,c,f,g,i,l,k,_,v,y]}class Ma extends ye{constructor(t){super(),ge(this,t,ka,va,pe,{onMessage:6,insecureRenderHtml:7})}}function os(e,t,n){const i=e.slice();return i[9]=t[n],i}function as(e){let t,n=e[9][0]+"",i;return{c(){t=a("option"),i=z(n),t.__value=e[9][1],t.value=t.__value},m(l,o){h(l,t,o),s(t,i)},p:V,d(l){l&&p(t)}}}function Ta(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,S,P,I,O,j=e[2],W=[];for(let T=0;TisNaN(parseInt(_))).map(_=>[_,en[_]]);function c(){const _=o.match(/\S+\.\S+$/g),v={dir:rs()};(_?nl(o,v):uo(o,v)).then(function(b){if(_)if(o.includes(".png")||o.includes(".jpg"))Ca(new Uint8Array(b),function(S){const P="data:image/png;base64,"+S;l('')});else{const S=String.fromCharCode.apply(null,b);l(''),setTimeout(()=>{const P=document.getElementById("file-response");P.value=S,document.getElementById("file-save").addEventListener("click",function(){Xi(o,P.value,{dir:rs()}).catch(i)})})}else i(b)}).catch(i)}function f(){n(1,u.src=Hs(o),u)}function g(){o=this.value,n(0,o)}function k(_){ri[_?"unshift":"push"](()=>{u=_,n(1,u)})}return e.$$set=_=>{"onMessage"in _&&n(5,i=_.onMessage),"insecureRenderHtml"in _&&n(6,l=_.insecureRenderHtml)},[o,u,d,c,f,i,l,g,k]}class Sa extends ye{constructor(t){super(),ge(this,t,Aa,Ta,pe,{onMessage:5,insecureRenderHtml:6})}}var La={};Me(La,{Body:()=>at,Client:()=>fo,Response:()=>co,ResponseType:()=>il,fetch:()=>za,getClient:()=>fi});var il=(e=>(e[e.JSON=1]="JSON",e[e.Text=2]="Text",e[e.Binary=3]="Binary",e))(il||{}),at=class{constructor(e,t){this.type=e,this.payload=t}static form(e){let t={},n=(i,l)=>{if(l!==null){let o;typeof l=="string"?o=l:l instanceof Uint8Array||Array.isArray(l)?o=Array.from(l):l instanceof File?o={file:l.name,mime:l.type,fileName:l.name}:typeof l.file=="string"?o={file:l.file,mime:l.mime,fileName:l.fileName}:o={file:Array.from(l.file),mime:l.mime,fileName:l.fileName},t[String(i)]=o}};if(e instanceof FormData)for(let[i,l]of e)n(i,l);else for(let[i,l]of Object.entries(e))n(i,l);return new at("Form",t)}static json(e){return new at("Json",e)}static text(e){return new at("Text",e)}static bytes(e){return new at("Bytes",Array.from(e instanceof ArrayBuffer?new Uint8Array(e):e))}},co=class{constructor(e){this.url=e.url,this.status=e.status,this.ok=this.status>=200&&this.status<300,this.headers=e.headers,this.rawHeaders=e.rawHeaders,this.data=e.data}},fo=class{constructor(e){this.id=e}async drop(){return A({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})}async request(e){let t=!e.responseType||e.responseType===1;return t&&(e.responseType=2),A({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:e}}).then(n=>{let i=new co(n);if(t){try{i.data=JSON.parse(i.data)}catch(l){if(i.ok&&i.data==="")i.data={};else if(i.ok)throw Error(`Failed to parse response \`${i.data}\` as JSON: ${l}; - try setting the \`responseType\` option to \`ResponseType.Text\` or \`ResponseType.Binary\` if the API does not return a JSON response.`)}return i}return i})}async get(e,t){return this.request({method:"GET",url:e,...t})}async post(e,t,n){return this.request({method:"POST",url:e,body:t,...n})}async put(e,t,n){return this.request({method:"PUT",url:e,body:t,...n})}async patch(e,t){return this.request({method:"PATCH",url:e,...t})}async delete(e,t){return this.request({method:"DELETE",url:e,...t})}};async function fi(e){return A({__tauriModule:"Http",message:{cmd:"createClient",options:e}}).then(t=>new fo(t))}var Bi=null;async function za(e,t){var n;return Bi===null&&(Bi=await fi()),Bi.request({url:e,method:(n=t==null?void 0:t.method)!=null?n:"GET",...t})}function us(e,t,n){const i=e.slice();return i[12]=t[n],i[14]=n,i}function cs(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,S,P,I=e[5],O=[];for(let C=0;CHe(O[C],1,1,()=>{O[C]=null});let W=!e[3]&&ms(),T=!e[3]&&e[8]&&hs();return{c(){t=a("span"),n=a("span"),i=z(e[6]),l=m(),o=a("ul");for(let C=0;C{g[y]=null}),hi(),o=g[l],o?o.p(_,v):(o=g[l]=f[l](_),o.c()),Ce(o,1),o.m(t,u))},i(_){d||(Ce(o),d=!0)},o(_){He(o),d=!1},d(_){_&&p(t),c&&c.d(),g[l].d()}}}function ms(e){let t;return{c(){t=a("span"),t.textContent=",",r(t,"class","comma svelte-gbh3pt")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function hs(e){let t;return{c(){t=a("span"),t.textContent=",",r(t,"class","comma svelte-gbh3pt")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function Da(e){let t,n,i=e[5].length&&cs(e);return{c(){i&&i.c(),t=pi()},m(l,o){i&&i.m(l,o),h(l,t,o),n=!0},p(l,[o]){l[5].length?i?(i.p(l,o),o&32&&Ce(i,1)):(i=cs(l),i.c(),Ce(i,1),i.m(t.parentNode,t)):i&&(mi(),He(i,1,1,()=>{i=null}),hi())},i(l){n||(Ce(i),n=!0)},o(l){He(i),n=!1},d(l){i&&i.d(l),l&&p(t)}}}const Pa="...";function Oa(e,t,n){let{json:i}=t,{depth:l=1/0}=t,{_lvl:o=0}=t,{_last:u=!0}=t;const d=b=>b===null?"null":typeof b;let c,f,g,k,_;const v=b=>{switch(d(b)){case"string":return`"${b}"`;case"function":return"f () {...}";case"symbol":return b.toString();default:return b}},y=()=>{n(8,_=!_)};return e.$$set=b=>{"json"in b&&n(0,i=b.json),"depth"in b&&n(1,l=b.depth),"_lvl"in b&&n(2,o=b._lvl),"_last"in b&&n(3,u=b._last)},e.$$.update=()=>{e.$$.dirty&17&&(n(5,c=d(i)==="object"?Object.keys(i):[]),n(4,f=Array.isArray(i)),n(6,g=f?"[":"{"),n(7,k=f?"]":"}")),e.$$.dirty&6&&n(8,_=le[9].call(n)),r(k,"class","input h-auto w-100%"),r(k,"id","request-body"),r(k,"placeholder","Request body"),r(k,"rows","5"),r(b,"class","btn"),r(b,"id","make-request"),r(T,"class","input"),r(E,"class","input"),r(W,"class","flex gap-2 children:grow"),r(x,"type","checkbox"),r(X,"class","btn"),r(X,"type","button")},m(D,G){h(D,t,G),s(t,n),s(n,i),s(n,l),s(n,o),s(n,u),s(n,d),Nt(n,e[0]),s(t,c),s(t,f),s(t,g),s(t,k),q(k,e[1]),s(t,_),s(t,v),s(t,y),s(t,b),h(D,S,G),h(D,P,G),h(D,I,G),h(D,O,G),h(D,j,G),h(D,W,G),s(W,T),q(T,e[2]),s(W,C),s(W,E),q(E,e[3]),h(D,M,G),h(D,H,G),h(D,U,G),h(D,J,G),s(J,x),x.checked=e[5],s(J,me),h(D,te,G),h(D,Y,G),h(D,de,G),h(D,$,G),h(D,N,G),h(D,X,G),h(D,K,G),h(D,ae,G),h(D,ne,G),h(D,he,G),h(D,_e,G),$t(fe,D,G),re=!0,Ae||(Se=[L(n,"change",e[9]),L(k,"input",e[10]),L(t,"submit",ai(e[6])),L(T,"input",e[11]),L(E,"input",e[12]),L(x,"change",e[13]),L(X,"click",e[7])],Ae=!0)},p(D,[G]){G&1&&Nt(n,D[0]),G&2&&q(k,D[1]),G&4&&T.value!==D[2]&&q(T,D[2]),G&8&&E.value!==D[3]&&q(E,D[3]),G&32&&(x.checked=D[5]);const Le={};G&16&&(Le.json=D[4]),fe.$set(Le)},i(D){re||(Ce(fe.$$.fragment,D),re=!0)},o(D){He(fe.$$.fragment,D),re=!1},d(D){D&&p(t),D&&p(S),D&&p(P),D&&p(I),D&&p(O),D&&p(j),D&&p(W),D&&p(M),D&&p(H),D&&p(U),D&&p(J),D&&p(te),D&&p(Y),D&&p(de),D&&p($),D&&p(N),D&&p(X),D&&p(K),D&&p(ae),D&&p(ne),D&&p(he),D&&p(_e),xt(fe,D),Ae=!1,oe(Se)}}}function Ia(e,t,n){let i="GET",l="",{onMessage:o}=t;async function u(){const P=await fi().catch(j=>{throw o(j),j}),O={url:"http://localhost:3003",method:i||"GET"||"GET"};l.startsWith("{")&&l.endsWith("}")||l.startsWith("[")&&l.endsWith("]")?O.body=at.json(JSON.parse(l)):l!==""&&(O.body=at.text(l)),P.request(O).then(o).catch(o)}let d="baz",c="qux",f=null,g=!0;async function k(){const P=await fi().catch(I=>{throw o(I),I});n(4,f=await P.request({url:"http://localhost:3003",method:"POST",body:at.form({foo:d,bar:c}),headers:g?{"Content-Type":"multipart/form-data"}:void 0,responseType:il.Text}))}function _(){i=Vi(this),n(0,i)}function v(){l=this.value,n(1,l)}function y(){d=this.value,n(2,d)}function b(){c=this.value,n(3,c)}function S(){g=this.checked,n(5,g)}return e.$$set=P=>{"onMessage"in P&&n(8,o=P.onMessage)},[i,l,d,c,f,g,u,k,o,_,v,y,b,S]}class Na extends ye{constructor(t){super(),ge(this,t,Ia,Ra,pe,{onMessage:8})}}function Fa(e){let t,n,i;return{c(){t=a("button"),t.textContent="Send test notification",r(t,"class","btn"),r(t,"id","notification")},m(l,o){h(l,t,o),n||(i=L(t,"click",e[0]),n=!0)},p:V,i:V,o:V,d(l){l&&p(t),n=!1,i()}}}function Ha(e,t,n){let{onMessage:i}=t;async function l(){const u=await xs();console.log(u),new Notification("Notification title",{body:"This is the notification body",sound:u==="Windows_NT"?"Default":u==="Linux"?"dialog-information":u==="Darwin"?"NSUserNotificationDefaultSoundName":void 0})}function o(){Notification.permission==="default"?Notification.requestPermission().then(function(u){u==="granted"?l():i("Permission is "+u)}).catch(i):Notification.permission==="granted"?l():i("Permission is denied")}return e.$$set=u=>{"onMessage"in u&&n(1,i=u.onMessage)},[o,i]}class ja extends ye{constructor(t){super(),ge(this,t,Ha,Fa,pe,{onMessage:1})}}function _s(e,t,n){const i=e.slice();return i[75]=t[n],i}function bs(e,t,n){const i=e.slice();return i[78]=t[n],i}function gs(e){let t,n,i,l,o,u,d=Object.keys(e[1]),c=[];for(let f=0;fe[43].call(i))},m(f,g){h(f,t,g),h(f,n,g),h(f,i,g),s(i,l);for(let k=0;kupdate --background subcommand.`,n=m(),i=a("br"),l=m(),o=a("div"),o.textContent="Note that the arguments are only parsed, not implemented.",u=m(),d=a("br"),c=m(),f=a("br"),g=m(),k=a("button"),k.textContent="Get matches",r(o,"class","note"),r(k,"class","btn"),r(k,"id","cli-matches")},m(y,b){h(y,t,b),h(y,n,b),h(y,i,b),h(y,l,b),h(y,o,b),h(y,u,b),h(y,d,b),h(y,c,b),h(y,f,b),h(y,g,b),h(y,k,b),_||(v=L(k,"click",e[0]),_=!0)},p:V,i:V,o:V,d(y){y&&p(t),y&&p(n),y&&p(i),y&&p(l),y&&p(o),y&&p(u),y&&p(d),y&&p(c),y&&p(f),y&&p(g),y&&p(k),_=!1,v()}}}function ia(e,t,n){let{onMessage:i}=t;function l(){oo().then(i).catch(i)}return e.$$set=o=>{"onMessage"in o&&n(1,i=o.onMessage)},[l,i]}class la extends ye{constructor(t){super(),ge(this,t,ia,na,pe,{onMessage:1})}}function sa(e){let t,n,i,l,o,u,d,c;return{c(){t=a("div"),n=a("button"),n.textContent="Call Log API",i=m(),l=a("button"),l.textContent="Call Request (async) API",o=m(),u=a("button"),u.textContent="Send event to Rust",r(n,"class","btn"),r(n,"id","log"),r(l,"class","btn"),r(l,"id","request"),r(u,"class","btn"),r(u,"id","event")},m(f,g){h(f,t,g),s(t,n),s(t,i),s(t,l),s(t,o),s(t,u),d||(c=[L(n,"click",e[0]),L(l,"click",e[1]),L(u,"click",e[2])],d=!0)},p:V,i:V,o:V,d(f){f&&p(t),d=!1,oe(c)}}}function oa(e,t,n){let{onMessage:i}=t,l;_t(async()=>{l=await tn("rust-event",i)}),Yi(()=>{l&&l()});function o(){ci("log_operation",{event:"tauri-click",payload:"this payload is optional because we used Option in Rust"})}function u(){ci("perform_request",{endpoint:"dummy endpoint arg",body:{id:5,name:"test"}}).then(i).catch(i)}function d(){_i("js-event","this is the payload string")}return e.$$set=c=>{"onMessage"in c&&n(3,i=c.onMessage)},[o,u,d,i]}class aa extends ye{constructor(t){super(),ge(this,t,oa,sa,pe,{onMessage:3})}}var ra={};Me(ra,{ask:()=>ro,confirm:()=>ca,message:()=>ua,open:()=>tl,save:()=>ao});async function tl(e={}){return typeof e=="object"&&Object.freeze(e),A({__tauriModule:"Dialog",message:{cmd:"openDialog",options:e}})}async function ao(e={}){return typeof e=="object"&&Object.freeze(e),A({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:e}})}async function ua(e,t){var i,l;let n=typeof t=="string"?{title:t}:t;return A({__tauriModule:"Dialog",message:{cmd:"messageDialog",message:e.toString(),title:(i=n==null?void 0:n.title)==null?void 0:i.toString(),type:n==null?void 0:n.type,buttonLabel:(l=n==null?void 0:n.okLabel)==null?void 0:l.toString()}})}async function ro(e,t){var i,l,o,u,d;let n=typeof t=="string"?{title:t}:t;return A({__tauriModule:"Dialog",message:{cmd:"askDialog",message:e.toString(),title:(i=n==null?void 0:n.title)==null?void 0:i.toString(),type:n==null?void 0:n.type,buttonLabels:[(o=(l=n==null?void 0:n.okLabel)==null?void 0:l.toString())!=null?o:"Yes",(d=(u=n==null?void 0:n.cancelLabel)==null?void 0:u.toString())!=null?d:"No"]}})}async function ca(e,t){var i,l,o,u,d;let n=typeof t=="string"?{title:t}:t;return A({__tauriModule:"Dialog",message:{cmd:"confirmDialog",message:e.toString(),title:(i=n==null?void 0:n.title)==null?void 0:i.toString(),type:n==null?void 0:n.type,buttonLabels:[(o=(l=n==null?void 0:n.okLabel)==null?void 0:l.toString())!=null?o:"Ok",(d=(u=n==null?void 0:n.cancelLabel)==null?void 0:u.toString())!=null?d:"Cancel"]}})}var da={};Me(da,{BaseDirectory:()=>en,Dir:()=>en,copyFile:()=>_a,createDir:()=>ma,exists:()=>ya,readBinaryFile:()=>nl,readDir:()=>uo,readTextFile:()=>fa,removeDir:()=>ha,removeFile:()=>ba,renameFile:()=>ga,writeBinaryFile:()=>pa,writeFile:()=>Xi,writeTextFile:()=>Xi});var en=(e=>(e[e.Audio=1]="Audio",e[e.Cache=2]="Cache",e[e.Config=3]="Config",e[e.Data=4]="Data",e[e.LocalData=5]="LocalData",e[e.Desktop=6]="Desktop",e[e.Document=7]="Document",e[e.Download=8]="Download",e[e.Executable=9]="Executable",e[e.Font=10]="Font",e[e.Home=11]="Home",e[e.Picture=12]="Picture",e[e.Public=13]="Public",e[e.Runtime=14]="Runtime",e[e.Template=15]="Template",e[e.Video=16]="Video",e[e.Resource=17]="Resource",e[e.App=18]="App",e[e.Log=19]="Log",e[e.Temp=20]="Temp",e[e.AppConfig=21]="AppConfig",e[e.AppData=22]="AppData",e[e.AppLocalData=23]="AppLocalData",e[e.AppCache=24]="AppCache",e[e.AppLog=25]="AppLog",e))(en||{});async function fa(e,t={}){return A({__tauriModule:"Fs",message:{cmd:"readTextFile",path:e,options:t}})}async function nl(e,t={}){let n=await A({__tauriModule:"Fs",message:{cmd:"readFile",path:e,options:t}});return Uint8Array.from(n)}async function Xi(e,t,n){typeof n=="object"&&Object.freeze(n),typeof e=="object"&&Object.freeze(e);let i={path:"",contents:""},l=n;return typeof e=="string"?i.path=e:(i.path=e.path,i.contents=e.contents),typeof t=="string"?i.contents=t!=null?t:"":l=t,A({__tauriModule:"Fs",message:{cmd:"writeFile",path:i.path,contents:Array.from(new TextEncoder().encode(i.contents)),options:l}})}async function pa(e,t,n){typeof n=="object"&&Object.freeze(n),typeof e=="object"&&Object.freeze(e);let i={path:"",contents:[]},l=n;return typeof e=="string"?i.path=e:(i.path=e.path,i.contents=e.contents),t&&"dir"in t?l=t:typeof e=="string"&&(i.contents=t!=null?t:[]),A({__tauriModule:"Fs",message:{cmd:"writeFile",path:i.path,contents:Array.from(i.contents instanceof ArrayBuffer?new Uint8Array(i.contents):i.contents),options:l}})}async function uo(e,t={}){return A({__tauriModule:"Fs",message:{cmd:"readDir",path:e,options:t}})}async function ma(e,t={}){return A({__tauriModule:"Fs",message:{cmd:"createDir",path:e,options:t}})}async function ha(e,t={}){return A({__tauriModule:"Fs",message:{cmd:"removeDir",path:e,options:t}})}async function _a(e,t,n={}){return A({__tauriModule:"Fs",message:{cmd:"copyFile",source:e,destination:t,options:n}})}async function ba(e,t={}){return A({__tauriModule:"Fs",message:{cmd:"removeFile",path:e,options:t}})}async function ga(e,t,n={}){return A({__tauriModule:"Fs",message:{cmd:"renameFile",oldPath:e,newPath:t,options:n}})}async function ya(e,t={}){return A({__tauriModule:"Fs",message:{cmd:"exists",path:e,options:t}})}function va(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,S,P,I,O,j,W,T,C,E;return{c(){t=a("div"),n=a("input"),i=m(),l=a("input"),o=m(),u=a("br"),d=m(),c=a("div"),f=a("input"),g=m(),k=a("label"),k.textContent="Multiple",_=m(),v=a("div"),y=a("input"),b=m(),S=a("label"),S.textContent="Directory",P=m(),I=a("br"),O=m(),j=a("button"),j.textContent="Open dialog",W=m(),T=a("button"),T.textContent="Open save dialog",r(n,"class","input"),r(n,"id","dialog-default-path"),r(n,"placeholder","Default path"),r(l,"class","input"),r(l,"id","dialog-filter"),r(l,"placeholder","Extensions filter, comma-separated"),r(t,"class","flex gap-2 children:grow"),r(f,"type","checkbox"),r(f,"id","dialog-multiple"),r(k,"for","dialog-multiple"),r(y,"type","checkbox"),r(y,"id","dialog-directory"),r(S,"for","dialog-directory"),r(j,"class","btn"),r(j,"id","open-dialog"),r(T,"class","btn"),r(T,"id","save-dialog")},m(M,H){h(M,t,H),s(t,n),q(n,e[0]),s(t,i),s(t,l),q(l,e[1]),h(M,o,H),h(M,u,H),h(M,d,H),h(M,c,H),s(c,f),f.checked=e[2],s(c,g),s(c,k),h(M,_,H),h(M,v,H),s(v,y),y.checked=e[3],s(v,b),s(v,S),h(M,P,H),h(M,I,H),h(M,O,H),h(M,j,H),h(M,W,H),h(M,T,H),C||(E=[L(n,"input",e[8]),L(l,"input",e[9]),L(f,"change",e[10]),L(y,"change",e[11]),L(j,"click",e[4]),L(T,"click",e[5])],C=!0)},p(M,[H]){H&1&&n.value!==M[0]&&q(n,M[0]),H&2&&l.value!==M[1]&&q(l,M[1]),H&4&&(f.checked=M[2]),H&8&&(y.checked=M[3])},i:V,o:V,d(M){M&&p(t),M&&p(o),M&&p(u),M&&p(d),M&&p(c),M&&p(_),M&&p(v),M&&p(P),M&&p(I),M&&p(O),M&&p(j),M&&p(W),M&&p(T),C=!1,oe(E)}}}function wa(e,t){const n=new Blob([e],{type:"application/octet-binary"}),i=new FileReader;i.onload=function(l){const o=l.target.result;t(o.substr(o.indexOf(",")+1))},i.readAsDataURL(n)}function ka(e,t,n){let{onMessage:i}=t,{insecureRenderHtml:l}=t,o=null,u=null,d=!1,c=!1;function f(){tl({title:"My wonderful open dialog",defaultPath:o,filters:u?[{name:"Tauri Example",extensions:u.split(",").map(b=>b.trim())}]:[],multiple:d,directory:c}).then(function(b){if(Array.isArray(b))i(b);else{const S=b,P=S.match(/\S+\.\S+$/g);nl(S).then(function(I){P&&(S.includes(".png")||S.includes(".jpg"))?wa(new Uint8Array(I),function(O){const j="data:image/png;base64,"+O;l('')}):i(b)}).catch(i(b))}}).catch(i)}function g(){ao({title:"My wonderful save dialog",defaultPath:o,filters:u?[{name:"Tauri Example",extensions:u.split(",").map(b=>b.trim())}]:[]}).then(i).catch(i)}function k(){o=this.value,n(0,o)}function _(){u=this.value,n(1,u)}function v(){d=this.checked,n(2,d)}function y(){c=this.checked,n(3,c)}return e.$$set=b=>{"onMessage"in b&&n(6,i=b.onMessage),"insecureRenderHtml"in b&&n(7,l=b.insecureRenderHtml)},[o,u,d,c,f,g,i,l,k,_,v,y]}class Ma extends ye{constructor(t){super(),ge(this,t,ka,va,pe,{onMessage:6,insecureRenderHtml:7})}}function os(e,t,n){const i=e.slice();return i[9]=t[n],i}function as(e){let t,n=e[9][0]+"",i;return{c(){t=a("option"),i=z(n),t.__value=e[9][1],t.value=t.__value},m(l,o){h(l,t,o),s(t,i)},p:V,d(l){l&&p(t)}}}function Ta(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,S,P,I,O,j=e[2],W=[];for(let T=0;TisNaN(parseInt(_))).map(_=>[_,en[_]]);function c(){const _=o.match(/\S+\.\S+$/g),v={dir:rs()};(_?nl(o,v):uo(o,v)).then(function(b){if(_)if(o.includes(".png")||o.includes(".jpg"))Ca(new Uint8Array(b),function(S){const P="data:image/png;base64,"+S;l('')});else{const S=String.fromCharCode.apply(null,b);l(''),setTimeout(()=>{const P=document.getElementById("file-response");P.value=S,document.getElementById("file-save").addEventListener("click",function(){Xi(o,P.value,{dir:rs()}).catch(i)})})}else i(b)}).catch(i)}function f(){n(1,u.src=Hs(o),u)}function g(){o=this.value,n(0,o)}function k(_){ri[_?"unshift":"push"](()=>{u=_,n(1,u)})}return e.$$set=_=>{"onMessage"in _&&n(5,i=_.onMessage),"insecureRenderHtml"in _&&n(6,l=_.insecureRenderHtml)},[o,u,d,c,f,i,l,g,k]}class Sa extends ye{constructor(t){super(),ge(this,t,Aa,Ta,pe,{onMessage:5,insecureRenderHtml:6})}}var La={};Me(La,{Body:()=>at,Client:()=>fo,Response:()=>co,ResponseType:()=>il,fetch:()=>Ea,getClient:()=>fi});var il=(e=>(e[e.JSON=1]="JSON",e[e.Text=2]="Text",e[e.Binary=3]="Binary",e))(il||{});async function za(e){let t={},n=async(i,l)=>{if(l!==null){let o;typeof l=="string"?o=l:l instanceof Uint8Array||Array.isArray(l)?o=Array.from(l):l instanceof File?o={file:Array.from(new Uint8Array(await l.arrayBuffer())),mime:l.type,fileName:l.name}:typeof l.file=="string"?o={file:l.file,mime:l.mime,fileName:l.fileName}:o={file:Array.from(l.file),mime:l.mime,fileName:l.fileName},t[String(i)]=o}};if(e instanceof FormData)for(let[i,l]of e)await n(i,l);else for(let[i,l]of Object.entries(e))await n(i,l);return t}var at=class{constructor(e,t){this.type=e,this.payload=t}static form(e){return new at("Form",e)}static json(e){return new at("Json",e)}static text(e){return new at("Text",e)}static bytes(e){return new at("Bytes",Array.from(e instanceof ArrayBuffer?new Uint8Array(e):e))}},co=class{constructor(e){this.url=e.url,this.status=e.status,this.ok=this.status>=200&&this.status<300,this.headers=e.headers,this.rawHeaders=e.rawHeaders,this.data=e.data}},fo=class{constructor(e){this.id=e}async drop(){return A({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})}async request(e){var n;let t=!e.responseType||e.responseType===1;return t&&(e.responseType=2),((n=e.body)==null?void 0:n.type)==="Form"&&(e.body.payload=await za(e.body.payload)),A({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:e}}).then(i=>{let l=new co(i);if(t){try{l.data=JSON.parse(l.data)}catch(o){if(l.ok&&l.data==="")l.data={};else if(l.ok)throw Error(`Failed to parse response \`${l.data}\` as JSON: ${o}; + try setting the \`responseType\` option to \`ResponseType.Text\` or \`ResponseType.Binary\` if the API does not return a JSON response.`)}return l}return l})}async get(e,t){return this.request({method:"GET",url:e,...t})}async post(e,t,n){return this.request({method:"POST",url:e,body:t,...n})}async put(e,t,n){return this.request({method:"PUT",url:e,body:t,...n})}async patch(e,t){return this.request({method:"PATCH",url:e,...t})}async delete(e,t){return this.request({method:"DELETE",url:e,...t})}};async function fi(e){return A({__tauriModule:"Http",message:{cmd:"createClient",options:e}}).then(t=>new fo(t))}var Bi=null;async function Ea(e,t){var n;return Bi===null&&(Bi=await fi()),Bi.request({url:e,method:(n=t==null?void 0:t.method)!=null?n:"GET",...t})}function us(e,t,n){const i=e.slice();return i[12]=t[n],i[14]=n,i}function cs(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,S,P,I=e[5],O=[];for(let C=0;CHe(O[C],1,1,()=>{O[C]=null});let W=!e[3]&&ms(),T=!e[3]&&e[8]&&hs();return{c(){t=a("span"),n=a("span"),i=z(e[6]),l=m(),o=a("ul");for(let C=0;C{g[y]=null}),hi(),o=g[l],o?o.p(_,v):(o=g[l]=f[l](_),o.c()),Ce(o,1),o.m(t,u))},i(_){d||(Ce(o),d=!0)},o(_){He(o),d=!1},d(_){_&&p(t),c&&c.d(),g[l].d()}}}function ms(e){let t;return{c(){t=a("span"),t.textContent=",",r(t,"class","comma svelte-gbh3pt")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function hs(e){let t;return{c(){t=a("span"),t.textContent=",",r(t,"class","comma svelte-gbh3pt")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function Pa(e){let t,n,i=e[5].length&&cs(e);return{c(){i&&i.c(),t=pi()},m(l,o){i&&i.m(l,o),h(l,t,o),n=!0},p(l,[o]){l[5].length?i?(i.p(l,o),o&32&&Ce(i,1)):(i=cs(l),i.c(),Ce(i,1),i.m(t.parentNode,t)):i&&(mi(),He(i,1,1,()=>{i=null}),hi())},i(l){n||(Ce(i),n=!0)},o(l){He(i),n=!1},d(l){i&&i.d(l),l&&p(t)}}}const Oa="...";function Ra(e,t,n){let{json:i}=t,{depth:l=1/0}=t,{_lvl:o=0}=t,{_last:u=!0}=t;const d=b=>b===null?"null":typeof b;let c,f,g,k,_;const v=b=>{switch(d(b)){case"string":return`"${b}"`;case"function":return"f () {...}";case"symbol":return b.toString();default:return b}},y=()=>{n(8,_=!_)};return e.$$set=b=>{"json"in b&&n(0,i=b.json),"depth"in b&&n(1,l=b.depth),"_lvl"in b&&n(2,o=b._lvl),"_last"in b&&n(3,u=b._last)},e.$$.update=()=>{e.$$.dirty&17&&(n(5,c=d(i)==="object"?Object.keys(i):[]),n(4,f=Array.isArray(i)),n(6,g=f?"[":"{"),n(7,k=f?"]":"}")),e.$$.dirty&6&&n(8,_=le[9].call(n)),r(k,"class","input h-auto w-100%"),r(k,"id","request-body"),r(k,"placeholder","Request body"),r(k,"rows","5"),r(b,"class","btn"),r(b,"id","make-request"),r(T,"class","input"),r(E,"class","input"),r(W,"class","flex gap-2 children:grow"),r(x,"type","checkbox"),r(X,"class","btn"),r(X,"type","button")},m(D,G){h(D,t,G),s(t,n),s(n,i),s(n,l),s(n,o),s(n,u),s(n,d),Nt(n,e[0]),s(t,c),s(t,f),s(t,g),s(t,k),q(k,e[1]),s(t,_),s(t,v),s(t,y),s(t,b),h(D,S,G),h(D,P,G),h(D,I,G),h(D,O,G),h(D,j,G),h(D,W,G),s(W,T),q(T,e[2]),s(W,C),s(W,E),q(E,e[3]),h(D,M,G),h(D,H,G),h(D,U,G),h(D,J,G),s(J,x),x.checked=e[5],s(J,me),h(D,te,G),h(D,Y,G),h(D,de,G),h(D,$,G),h(D,N,G),h(D,X,G),h(D,K,G),h(D,ae,G),h(D,ne,G),h(D,he,G),h(D,_e,G),$t(fe,D,G),re=!0,Ae||(Se=[L(n,"change",e[9]),L(k,"input",e[10]),L(t,"submit",ai(e[6])),L(T,"input",e[11]),L(E,"input",e[12]),L(x,"change",e[13]),L(X,"click",e[7])],Ae=!0)},p(D,[G]){G&1&&Nt(n,D[0]),G&2&&q(k,D[1]),G&4&&T.value!==D[2]&&q(T,D[2]),G&8&&E.value!==D[3]&&q(E,D[3]),G&32&&(x.checked=D[5]);const Le={};G&16&&(Le.json=D[4]),fe.$set(Le)},i(D){re||(Ce(fe.$$.fragment,D),re=!0)},o(D){He(fe.$$.fragment,D),re=!1},d(D){D&&p(t),D&&p(S),D&&p(P),D&&p(I),D&&p(O),D&&p(j),D&&p(W),D&&p(M),D&&p(H),D&&p(U),D&&p(J),D&&p(te),D&&p(Y),D&&p(de),D&&p($),D&&p(N),D&&p(X),D&&p(K),D&&p(ae),D&&p(ne),D&&p(he),D&&p(_e),xt(fe,D),Ae=!1,oe(Se)}}}function Na(e,t,n){let i="GET",l="",{onMessage:o}=t;async function u(){const P=await fi().catch(j=>{throw o(j),j}),O={url:"http://localhost:3003",method:i||"GET"||"GET"};l.startsWith("{")&&l.endsWith("}")||l.startsWith("[")&&l.endsWith("]")?O.body=at.json(JSON.parse(l)):l!==""&&(O.body=at.text(l)),P.request(O).then(o).catch(o)}let d="baz",c="qux",f=null,g=!0;async function k(){const P=await fi().catch(I=>{throw o(I),I});n(4,f=await P.request({url:"http://localhost:3003",method:"POST",body:at.form({foo:d,bar:c}),headers:g?{"Content-Type":"multipart/form-data"}:void 0,responseType:il.Text}))}function _(){i=Vi(this),n(0,i)}function v(){l=this.value,n(1,l)}function y(){d=this.value,n(2,d)}function b(){c=this.value,n(3,c)}function S(){g=this.checked,n(5,g)}return e.$$set=P=>{"onMessage"in P&&n(8,o=P.onMessage)},[i,l,d,c,f,g,u,k,o,_,v,y,b,S]}class Fa extends ye{constructor(t){super(),ge(this,t,Na,Ia,pe,{onMessage:8})}}function Ha(e){let t,n,i;return{c(){t=a("button"),t.textContent="Send test notification",r(t,"class","btn"),r(t,"id","notification")},m(l,o){h(l,t,o),n||(i=L(t,"click",e[0]),n=!0)},p:V,i:V,o:V,d(l){l&&p(t),n=!1,i()}}}function ja(e,t,n){let{onMessage:i}=t;async function l(){const u=await xs();new Notification("Notification title",{body:"This is the notification body",sound:u==="Windows_NT"?"Default":u==="Linux"?"dialog-information":u==="Darwin"?"NSUserNotificationDefaultSoundName":void 0})}function o(){Notification.permission==="default"?Notification.requestPermission().then(function(u){u==="granted"?l():i("Permission is "+u)}).catch(i):Notification.permission==="granted"?l():i("Permission is denied")}return e.$$set=u=>{"onMessage"in u&&n(1,i=u.onMessage)},[o,i]}class Ua extends ye{constructor(t){super(),ge(this,t,ja,Ha,pe,{onMessage:1})}}function _s(e,t,n){const i=e.slice();return i[75]=t[n],i}function bs(e,t,n){const i=e.slice();return i[78]=t[n],i}function gs(e){let t,n,i,l,o,u,d=Object.keys(e[1]),c=[];for(let f=0;fe[43].call(i))},m(f,g){h(f,t,g),h(f,n,g),h(f,i,g),s(i,l);for(let k=0;ke[65].call(Ve)),r(nt,"class","input"),r(nt,"type","number"),r(it,"class","input"),r(it,"type","number"),r(Be,"class","flex gap-2"),r(lt,"class","input grow"),r(lt,"id","title"),r(Jt,"class","btn"),r(Jt,"type","submit"),r(mt,"class","flex gap-1"),r(st,"class","input grow"),r(st,"id","url"),r(Xt,"class","btn"),r(Xt,"id","open-url"),r(ht,"class","flex gap-1"),r(pt,"class","flex flex-col gap-1")},m(w,R){h(w,t,R),h(w,n,R),h(w,i,R),s(i,l),s(i,o),s(i,u),s(i,d),s(i,c),s(i,f),s(i,g),s(i,k),s(i,_),h(w,v,R),h(w,y,R),h(w,b,R),h(w,S,R),s(S,P),s(P,I),s(P,O),O.checked=e[6],s(S,j),s(S,W),s(W,T),s(W,C),C.checked=e[2],s(S,E),s(S,M),s(M,H),s(M,U),U.checked=e[3],s(S,J),s(S,x),s(x,me),s(x,te),te.checked=e[4],s(S,Y),s(S,de),s(de,$),s(de,N),N.checked=e[5],s(S,X),s(S,K),s(K,ae),s(K,ne),ne.checked=e[7],s(S,he),s(S,_e),s(_e,fe),s(_e,re),re.checked=e[8],s(S,Ae),s(S,Se),s(Se,D),s(Se,G),G.checked=e[9],s(S,Le),s(S,ve),s(ve,ue),s(ve,we),we.checked=e[10],h(w,ie,R),h(w,ze,R),h(w,Je,R),h(w,le,R),s(le,ee),s(ee,F),s(F,ce),s(F,B),q(B,e[17]),s(ee,Ne),s(ee,kt),s(kt,nn),s(kt,De),q(De,e[18]),s(le,ln),s(le,Xe),s(Xe,Mt),s(Mt,sn),s(Mt,Pe),q(Pe,e[11]),s(Xe,on),s(Xe,Tt),s(Tt,an),s(Tt,Oe),q(Oe,e[12]),s(le,rn),s(le,Ye),s(Ye,Ct),s(Ct,un),s(Ct,Fe),q(Fe,e[13]),s(Ye,Q),s(Ye,rt),s(rt,Ht),s(rt,Re),q(Re,e[14]),s(le,jt),s(le,je),s(je,ut),s(ut,Ut),s(ut,Ee),q(Ee,e[15]),s(je,qt),s(je,ct),s(ct,Bt),s(ct,We),q(We,e[16]),h(w,At,R),h(w,St,R),h(w,Lt,R),h(w,Te,R),s(Te,Ue),s(Ue,Ie),s(Ie,dt),s(Ie,Vt),s(Ie,ft),s(ft,cn),s(ft,bi),s(Ie,sl),s(Ie,fn),s(fn,ol),s(fn,gi),s(Ue,al),s(Ue,Ke),s(Ke,mn),s(Ke,rl),s(Ke,hn),s(hn,ul),s(hn,yi),s(Ke,cl),s(Ke,bn),s(bn,dl),s(bn,vi),s(Te,fl),s(Te,zt),s(zt,Qe),s(Qe,yn),s(Qe,pl),s(Qe,vn),s(vn,ml),s(vn,wi),s(Qe,hl),s(Qe,kn),s(kn,_l),s(kn,ki),s(zt,bl),s(zt,Ze),s(Ze,Tn),s(Ze,gl),s(Ze,Cn),s(Cn,yl),s(Cn,Mi),s(Ze,vl),s(Ze,Sn),s(Sn,wl),s(Sn,Ti),s(Te,kl),s(Te,Et),s(Et,$e),s($e,zn),s($e,Ml),s($e,En),s(En,Tl),s(En,Ci),s($e,Cl),s($e,Dn),s(Dn,Al),s(Dn,Ai),s(Et,Sl),s(Et,xe),s(xe,On),s(xe,Ll),s(xe,Rn),s(Rn,zl),s(Rn,Si),s(xe,El),s(xe,Nn),s(Nn,Wl),s(Nn,Li),s(Te,Dl),s(Te,Wt),s(Wt,et),s(et,Hn),s(et,Pl),s(et,jn),s(jn,Ol),s(jn,zi),s(et,Rl),s(et,qn),s(qn,Il),s(qn,Ei),s(Wt,Nl),s(Wt,tt),s(tt,Vn),s(tt,Fl),s(tt,Gn),s(Gn,Hl),s(Gn,Wi),s(tt,jl),s(tt,Xn),s(Xn,Ul),s(Xn,Di),h(w,Pi,R),h(w,Oi,R),h(w,Ri,R),h(w,Gt,R),h(w,Ii,R),h(w,qe,R),s(qe,Kn),s(Kn,Dt),Dt.checked=e[19],s(Kn,ql),s(qe,Bl),s(qe,Qn),s(Qn,Pt),Pt.checked=e[20],s(Qn,Vl),s(qe,Gl),s(qe,Zn),s(Zn,Ot),Ot.checked=e[24],s(Zn,Jl),h(w,Ni,R),h(w,Be,R),s(Be,$n),s($n,Xl),s($n,Ve);for(let be=0;be=1,g,k,_,v=f&&gs(e),y=e[1][e[0]]&&vs(e);return{c(){t=a("div"),n=a("div"),i=a("input"),l=m(),o=a("button"),o.textContent="New window",u=m(),d=a("br"),c=m(),v&&v.c(),g=m(),y&&y.c(),r(i,"class","input grow"),r(i,"type","text"),r(i,"placeholder","New Window label.."),r(o,"class","btn"),r(n,"class","flex gap-1"),r(t,"class","flex flex-col children:grow gap-2")},m(b,S){h(b,t,S),s(t,n),s(n,i),q(i,e[25]),s(n,l),s(n,o),s(t,u),s(t,d),s(t,c),v&&v.m(t,null),s(t,g),y&&y.m(t,null),k||(_=[L(i,"input",e[42]),L(o,"click",e[39])],k=!0)},p(b,S){S[0]&33554432&&i.value!==b[25]&&q(i,b[25]),S[0]&2&&(f=Object.keys(b[1]).length>=1),f?v?v.p(b,S):(v=gs(b),v.c(),v.m(t,g)):v&&(v.d(1),v=null),b[1][b[0]]?y?y.p(b,S):(y=vs(b),y.c(),y.m(t,null)):y&&(y.d(1),y=null)},i:V,o:V,d(b){b&&p(t),v&&v.d(),y&&y.d(),k=!1,oe(_)}}}function qa(e,t,n){let i=Ge.label;const l={[Ge.label]:Ge},o=["default","crosshair","hand","arrow","move","text","wait","help","progress","notAllowed","contextMenu","cell","verticalText","alias","copy","noDrop","grab","grabbing","allScroll","zoomIn","zoomOut","eResize","nResize","neResize","nwResize","sResize","seResize","swResize","wResize","ewResize","nsResize","neswResize","nwseResize","colResize","rowResize"];let{onMessage:u}=t,d,c="https://tauri.app",f=!0,g=!0,k=!0,_=!0,v=!1,y=!0,b=!1,S=!0,P=!1,I=null,O=null,j=null,W=null,T=null,C=null,E=null,M=null,H=1,U=new ot(E,M),J=new ot(E,M),x=new gt(I,O),me=new gt(I,O),te,Y,de=!1,$=!0,N=null,X=null,K="default",ae=!1,ne="Awesome Tauri Example!";function he(){Qi(c)}function _e(){l[i].setTitle(ne)}function fe(){l[i].hide(),setTimeout(l[i].show,2e3)}function re(){l[i].minimize(),setTimeout(l[i].unminimize,2e3)}function Ae(){tl({multiple:!1}).then(Q=>{typeof Q=="string"&&l[i].setIcon(Q)})}function Se(){if(!d)return;const Q=new wt(d);n(1,l[d]=Q,l),Q.once("tauri://error",function(){u("Error creating new webview")})}function D(){l[i].innerSize().then(Q=>{n(30,x=Q),n(11,I=x.width),n(12,O=x.height)}),l[i].outerSize().then(Q=>{n(31,me=Q)})}function G(){l[i].innerPosition().then(Q=>{n(28,U=Q)}),l[i].outerPosition().then(Q=>{n(29,J=Q),n(17,E=J.x),n(18,M=J.y)})}async function Le(Q){!Q||(te&&te(),Y&&Y(),Y=await Q.listen("tauri://move",G),te=await Q.listen("tauri://resize",D))}async function ve(){await l[i].minimize(),await l[i].requestUserAttention($i.Critical),await new Promise(Q=>setTimeout(Q,3e3)),await l[i].requestUserAttention(null)}function ue(){d=this.value,n(25,d)}function we(){i=Vi(this),n(0,i),n(1,l)}const ie=()=>l[i].center();function ze(){v=this.checked,n(6,v)}function Je(){f=this.checked,n(2,f)}function le(){g=this.checked,n(3,g)}function ee(){k=this.checked,n(4,k)}function F(){_=this.checked,n(5,_)}function ce(){y=this.checked,n(7,y)}function B(){b=this.checked,n(8,b)}function Ne(){S=this.checked,n(9,S)}function kt(){P=this.checked,n(10,P)}function nn(){E=se(this.value),n(17,E)}function De(){M=se(this.value),n(18,M)}function ln(){I=se(this.value),n(11,I)}function Xe(){O=se(this.value),n(12,O)}function Mt(){j=se(this.value),n(13,j)}function sn(){W=se(this.value),n(14,W)}function Pe(){T=se(this.value),n(15,T)}function on(){C=se(this.value),n(16,C)}function Tt(){de=this.checked,n(19,de)}function an(){$=this.checked,n(20,$)}function Oe(){ae=this.checked,n(24,ae)}function rn(){K=Vi(this),n(23,K),n(33,o)}function Ye(){N=se(this.value),n(21,N)}function Ct(){X=se(this.value),n(22,X)}function un(){ne=this.value,n(32,ne)}function Fe(){c=this.value,n(26,c)}return e.$$set=Q=>{"onMessage"in Q&&n(41,u=Q.onMessage)},e.$$.update=()=>{var Q,rt,Ht,Re,jt,je,ut,Ut,Ee,qt,ct,Bt,We,At,St,Lt,Te,Ue,Ie,dt,Vt,ft;e.$$.dirty[0]&3&&(l[i],G(),D()),e.$$.dirty[0]&7&&((Q=l[i])==null||Q.setResizable(f)),e.$$.dirty[0]&11&&((rt=l[i])==null||rt.setMaximizable(g)),e.$$.dirty[0]&19&&((Ht=l[i])==null||Ht.setMinimizable(k)),e.$$.dirty[0]&35&&((Re=l[i])==null||Re.setClosable(_)),e.$$.dirty[0]&67&&(v?(jt=l[i])==null||jt.maximize():(je=l[i])==null||je.unmaximize()),e.$$.dirty[0]&131&&((ut=l[i])==null||ut.setDecorations(y)),e.$$.dirty[0]&259&&((Ut=l[i])==null||Ut.setAlwaysOnTop(b)),e.$$.dirty[0]&515&&((Ee=l[i])==null||Ee.setContentProtected(S)),e.$$.dirty[0]&1027&&((qt=l[i])==null||qt.setFullscreen(P)),e.$$.dirty[0]&6147&&I&&O&&((ct=l[i])==null||ct.setSize(new gt(I,O))),e.$$.dirty[0]&24579&&(j&&W?(Bt=l[i])==null||Bt.setMinSize(new di(j,W)):(We=l[i])==null||We.setMinSize(null)),e.$$.dirty[0]&98307&&(T>800&&C>400?(At=l[i])==null||At.setMaxSize(new di(T,C)):(St=l[i])==null||St.setMaxSize(null)),e.$$.dirty[0]&393219&&E!==null&&M!==null&&((Lt=l[i])==null||Lt.setPosition(new ot(E,M))),e.$$.dirty[0]&3&&((Te=l[i])==null||Te.scaleFactor().then(cn=>n(27,H=cn))),e.$$.dirty[0]&3&&Le(l[i]),e.$$.dirty[0]&524291&&((Ue=l[i])==null||Ue.setCursorGrab(de)),e.$$.dirty[0]&1048579&&((Ie=l[i])==null||Ie.setCursorVisible($)),e.$$.dirty[0]&8388611&&((dt=l[i])==null||dt.setCursorIcon(K)),e.$$.dirty[0]&6291459&&N!==null&&X!==null&&((Vt=l[i])==null||Vt.setCursorPosition(new ot(N,X))),e.$$.dirty[0]&16777219&&((ft=l[i])==null||ft.setIgnoreCursorEvents(ae))},[i,l,f,g,k,_,v,y,b,S,P,I,O,j,W,T,C,E,M,de,$,N,X,K,ae,d,c,H,U,J,x,me,ne,o,he,_e,fe,re,Ae,Se,ve,u,ue,we,ie,ze,Je,le,ee,F,ce,B,Ne,kt,nn,De,ln,Xe,Mt,sn,Pe,on,Tt,an,Oe,rn,Ye,Ct,un,Fe]}class Ba extends ye{constructor(t){super(),ge(this,t,qa,Ua,pe,{onMessage:41},null,[-1,-1,-1])}}var Va={};Me(Va,{isRegistered:()=>Ja,register:()=>mo,registerAll:()=>Ga,unregister:()=>ho,unregisterAll:()=>_o});async function mo(e,t){return A({__tauriModule:"GlobalShortcut",message:{cmd:"register",shortcut:e,handler:vt(t)}})}async function Ga(e,t){return A({__tauriModule:"GlobalShortcut",message:{cmd:"registerAll",shortcuts:e,handler:vt(t)}})}async function Ja(e){return A({__tauriModule:"GlobalShortcut",message:{cmd:"isRegistered",shortcut:e}})}async function ho(e){return A({__tauriModule:"GlobalShortcut",message:{cmd:"unregister",shortcut:e}})}async function _o(){return A({__tauriModule:"GlobalShortcut",message:{cmd:"unregisterAll"}})}function ks(e,t,n){const i=e.slice();return i[9]=t[n],i}function Ms(e){let t,n=e[9]+"",i,l,o,u,d;function c(){return e[8](e[9])}return{c(){t=a("div"),i=z(n),l=m(),o=a("button"),o.textContent="Unregister",r(o,"class","btn"),r(o,"type","button"),r(t,"class","flex justify-between")},m(f,g){h(f,t,g),s(t,i),s(t,l),s(t,o),u||(d=L(o,"click",c),u=!0)},p(f,g){e=f,g&2&&n!==(n=e[9]+"")&&Z(i,n)},d(f){f&&p(t),u=!1,d()}}}function Ts(e){let t,n,i,l,o;return{c(){t=a("br"),n=m(),i=a("button"),i.textContent="Unregister all",r(i,"class","btn"),r(i,"type","button")},m(u,d){h(u,t,d),h(u,n,d),h(u,i,d),l||(o=L(i,"click",e[5]),l=!0)},p:V,d(u){u&&p(t),u&&p(n),u&&p(i),l=!1,o()}}}function Xa(e){let t,n,i,l,o,u,d,c,f,g,k,_=e[1],v=[];for(let b=0;b<_.length;b+=1)v[b]=Ms(ks(e,_,b));let y=e[1].length>1&&Ts(e);return{c(){t=a("div"),n=a("input"),i=m(),l=a("button"),l.textContent="Register",o=m(),u=a("br"),d=m(),c=a("div");for(let b=0;b1?y?y.p(b,S):(y=Ts(b),y.c(),y.m(c,null)):y&&(y.d(1),y=null)},i:V,o:V,d(b){b&&p(t),b&&p(o),b&&p(u),b&&p(d),b&&p(c),yt(v,b),y&&y.d(),g=!1,oe(k)}}}function Ya(e,t,n){let i,{onMessage:l}=t;const o=Fs([]);Rs(e,o,_=>n(1,i=_));let u="CmdOrControl+X";function d(){const _=u;mo(_,()=>{l(`Shortcut ${_} triggered`)}).then(()=>{o.update(v=>[...v,_]),l(`Shortcut ${_} registered successfully`)}).catch(l)}function c(_){const v=_;ho(v).then(()=>{o.update(y=>y.filter(b=>b!==v)),l(`Shortcut ${v} unregistered`)}).catch(l)}function f(){_o().then(()=>{o.update(()=>[]),l("Unregistered all shortcuts")}).catch(l)}function g(){u=this.value,n(0,u)}const k=_=>c(_);return e.$$set=_=>{"onMessage"in _&&n(6,l=_.onMessage)},[u,i,o,d,c,f,l,g,k]}class Ka extends ye{constructor(t){super(),ge(this,t,Ya,Xa,pe,{onMessage:6})}}function Cs(e){let t,n,i,l,o,u,d;return{c(){t=a("br"),n=m(),i=a("input"),l=m(),o=a("button"),o.textContent="Write",r(i,"class","input"),r(i,"placeholder","write to stdin"),r(o,"class","btn")},m(c,f){h(c,t,f),h(c,n,f),h(c,i,f),q(i,e[4]),h(c,l,f),h(c,o,f),u||(d=[L(i,"input",e[14]),L(o,"click",e[8])],u=!0)},p(c,f){f&16&&i.value!==c[4]&&q(i,c[4])},d(c){c&&p(t),c&&p(n),c&&p(i),c&&p(l),c&&p(o),u=!1,oe(d)}}}function Qa(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,S,P,I,O,j,W,T,C,E,M=e[5]&&Cs(e);return{c(){t=a("div"),n=a("div"),i=z(`Script: + `),it=a("input"),Fi=m(),Hi=a("br"),ji=m(),pt=a("div"),mt=a("form"),lt=a("input"),$l=m(),Jt=a("button"),Jt.textContent="Set title",xl=m(),ht=a("form"),st=a("input"),es=m(),Xt=a("button"),Xt.textContent="Open URL",r(l,"class","btn"),r(l,"title","Unminimizes after 2 seconds"),r(u,"class","btn"),r(u,"title","Unminimizes after 2 seconds"),r(c,"class","btn"),r(c,"title","Visible again after 2 seconds"),r(g,"class","btn"),r(_,"class","btn"),r(_,"title","Minimizes the window, requests attention for 3s and then resets it"),r(i,"class","flex flex-wrap gap-2"),r(O,"type","checkbox"),r(C,"type","checkbox"),r(U,"type","checkbox"),r(te,"type","checkbox"),r(N,"type","checkbox"),r(ne,"type","checkbox"),r(re,"type","checkbox"),r(G,"type","checkbox"),r(we,"type","checkbox"),r(S,"class","flex flex-wrap gap-2"),r(B,"class","input"),r(B,"type","number"),r(B,"min","0"),r(De,"class","input"),r(De,"type","number"),r(De,"min","0"),r(ee,"class","flex children:grow flex-col"),r(Pe,"class","input"),r(Pe,"type","number"),r(Pe,"min","400"),r(Oe,"class","input"),r(Oe,"type","number"),r(Oe,"min","400"),r(Xe,"class","flex children:grow flex-col"),r(Fe,"class","input"),r(Fe,"type","number"),r(Re,"class","input"),r(Re,"type","number"),r(Ye,"class","flex children:grow flex-col"),r(Ee,"class","input"),r(Ee,"type","number"),r(Ee,"min","800"),r(We,"class","input"),r(We,"type","number"),r(We,"min","400"),r(je,"class","flex children:grow flex-col"),r(le,"class","flex flex-row gap-2 flex-wrap"),r(dt,"class","text-accent dark:text-darkAccent font-700"),r(Ie,"class","grow"),r(mn,"class","text-accent dark:text-darkAccent font-700"),r(Ke,"class","grow"),r(Ue,"class","flex"),r(yn,"class","text-accent dark:text-darkAccent font-700"),r(Qe,"class","grow"),r(Tn,"class","text-accent dark:text-darkAccent font-700"),r(Ze,"class","grow"),r(zt,"class","flex"),r(zn,"class","text-accent dark:text-darkAccent font-700"),r($e,"class","grow"),r(On,"class","text-accent dark:text-darkAccent font-700"),r(xe,"class","grow"),r(Et,"class","flex"),r(Hn,"class","text-accent dark:text-darkAccent font-700"),r(et,"class","grow"),r(Vn,"class","text-accent dark:text-darkAccent font-700"),r(tt,"class","grow"),r(Wt,"class","flex"),r(Gt,"class","mb-2"),r(Dt,"type","checkbox"),r(Pt,"type","checkbox"),r(Ot,"type","checkbox"),r(qe,"class","flex gap-2"),r(Ve,"class","input"),e[23]===void 0&&Ft(()=>e[65].call(Ve)),r(nt,"class","input"),r(nt,"type","number"),r(it,"class","input"),r(it,"type","number"),r(Be,"class","flex gap-2"),r(lt,"class","input grow"),r(lt,"id","title"),r(Jt,"class","btn"),r(Jt,"type","submit"),r(mt,"class","flex gap-1"),r(st,"class","input grow"),r(st,"id","url"),r(Xt,"class","btn"),r(Xt,"id","open-url"),r(ht,"class","flex gap-1"),r(pt,"class","flex flex-col gap-1")},m(w,R){h(w,t,R),h(w,n,R),h(w,i,R),s(i,l),s(i,o),s(i,u),s(i,d),s(i,c),s(i,f),s(i,g),s(i,k),s(i,_),h(w,v,R),h(w,y,R),h(w,b,R),h(w,S,R),s(S,P),s(P,I),s(P,O),O.checked=e[6],s(S,j),s(S,W),s(W,T),s(W,C),C.checked=e[2],s(S,E),s(S,M),s(M,H),s(M,U),U.checked=e[3],s(S,J),s(S,x),s(x,me),s(x,te),te.checked=e[4],s(S,Y),s(S,de),s(de,$),s(de,N),N.checked=e[5],s(S,X),s(S,K),s(K,ae),s(K,ne),ne.checked=e[7],s(S,he),s(S,_e),s(_e,fe),s(_e,re),re.checked=e[8],s(S,Ae),s(S,Se),s(Se,D),s(Se,G),G.checked=e[9],s(S,Le),s(S,ve),s(ve,ue),s(ve,we),we.checked=e[10],h(w,ie,R),h(w,ze,R),h(w,Je,R),h(w,le,R),s(le,ee),s(ee,F),s(F,ce),s(F,B),q(B,e[17]),s(ee,Ne),s(ee,kt),s(kt,nn),s(kt,De),q(De,e[18]),s(le,ln),s(le,Xe),s(Xe,Mt),s(Mt,sn),s(Mt,Pe),q(Pe,e[11]),s(Xe,on),s(Xe,Tt),s(Tt,an),s(Tt,Oe),q(Oe,e[12]),s(le,rn),s(le,Ye),s(Ye,Ct),s(Ct,un),s(Ct,Fe),q(Fe,e[13]),s(Ye,Q),s(Ye,rt),s(rt,Ht),s(rt,Re),q(Re,e[14]),s(le,jt),s(le,je),s(je,ut),s(ut,Ut),s(ut,Ee),q(Ee,e[15]),s(je,qt),s(je,ct),s(ct,Bt),s(ct,We),q(We,e[16]),h(w,At,R),h(w,St,R),h(w,Lt,R),h(w,Te,R),s(Te,Ue),s(Ue,Ie),s(Ie,dt),s(Ie,Vt),s(Ie,ft),s(ft,cn),s(ft,bi),s(Ie,sl),s(Ie,fn),s(fn,ol),s(fn,gi),s(Ue,al),s(Ue,Ke),s(Ke,mn),s(Ke,rl),s(Ke,hn),s(hn,ul),s(hn,yi),s(Ke,cl),s(Ke,bn),s(bn,dl),s(bn,vi),s(Te,fl),s(Te,zt),s(zt,Qe),s(Qe,yn),s(Qe,pl),s(Qe,vn),s(vn,ml),s(vn,wi),s(Qe,hl),s(Qe,kn),s(kn,_l),s(kn,ki),s(zt,bl),s(zt,Ze),s(Ze,Tn),s(Ze,gl),s(Ze,Cn),s(Cn,yl),s(Cn,Mi),s(Ze,vl),s(Ze,Sn),s(Sn,wl),s(Sn,Ti),s(Te,kl),s(Te,Et),s(Et,$e),s($e,zn),s($e,Ml),s($e,En),s(En,Tl),s(En,Ci),s($e,Cl),s($e,Dn),s(Dn,Al),s(Dn,Ai),s(Et,Sl),s(Et,xe),s(xe,On),s(xe,Ll),s(xe,Rn),s(Rn,zl),s(Rn,Si),s(xe,El),s(xe,Nn),s(Nn,Wl),s(Nn,Li),s(Te,Dl),s(Te,Wt),s(Wt,et),s(et,Hn),s(et,Pl),s(et,jn),s(jn,Ol),s(jn,zi),s(et,Rl),s(et,qn),s(qn,Il),s(qn,Ei),s(Wt,Nl),s(Wt,tt),s(tt,Vn),s(tt,Fl),s(tt,Gn),s(Gn,Hl),s(Gn,Wi),s(tt,jl),s(tt,Xn),s(Xn,Ul),s(Xn,Di),h(w,Pi,R),h(w,Oi,R),h(w,Ri,R),h(w,Gt,R),h(w,Ii,R),h(w,qe,R),s(qe,Kn),s(Kn,Dt),Dt.checked=e[19],s(Kn,ql),s(qe,Bl),s(qe,Qn),s(Qn,Pt),Pt.checked=e[20],s(Qn,Vl),s(qe,Gl),s(qe,Zn),s(Zn,Ot),Ot.checked=e[24],s(Zn,Jl),h(w,Ni,R),h(w,Be,R),s(Be,$n),s($n,Xl),s($n,Ve);for(let be=0;be=1,g,k,_,v=f&&gs(e),y=e[1][e[0]]&&vs(e);return{c(){t=a("div"),n=a("div"),i=a("input"),l=m(),o=a("button"),o.textContent="New window",u=m(),d=a("br"),c=m(),v&&v.c(),g=m(),y&&y.c(),r(i,"class","input grow"),r(i,"type","text"),r(i,"placeholder","New Window label.."),r(o,"class","btn"),r(n,"class","flex gap-1"),r(t,"class","flex flex-col children:grow gap-2")},m(b,S){h(b,t,S),s(t,n),s(n,i),q(i,e[25]),s(n,l),s(n,o),s(t,u),s(t,d),s(t,c),v&&v.m(t,null),s(t,g),y&&y.m(t,null),k||(_=[L(i,"input",e[42]),L(o,"click",e[39])],k=!0)},p(b,S){S[0]&33554432&&i.value!==b[25]&&q(i,b[25]),S[0]&2&&(f=Object.keys(b[1]).length>=1),f?v?v.p(b,S):(v=gs(b),v.c(),v.m(t,g)):v&&(v.d(1),v=null),b[1][b[0]]?y?y.p(b,S):(y=vs(b),y.c(),y.m(t,null)):y&&(y.d(1),y=null)},i:V,o:V,d(b){b&&p(t),v&&v.d(),y&&y.d(),k=!1,oe(_)}}}function Ba(e,t,n){let i=Ge.label;const l={[Ge.label]:Ge},o=["default","crosshair","hand","arrow","move","text","wait","help","progress","notAllowed","contextMenu","cell","verticalText","alias","copy","noDrop","grab","grabbing","allScroll","zoomIn","zoomOut","eResize","nResize","neResize","nwResize","sResize","seResize","swResize","wResize","ewResize","nsResize","neswResize","nwseResize","colResize","rowResize"];let{onMessage:u}=t,d,c="https://tauri.app",f=!0,g=!0,k=!0,_=!0,v=!1,y=!0,b=!1,S=!0,P=!1,I=null,O=null,j=null,W=null,T=null,C=null,E=null,M=null,H=1,U=new ot(E,M),J=new ot(E,M),x=new gt(I,O),me=new gt(I,O),te,Y,de=!1,$=!0,N=null,X=null,K="default",ae=!1,ne="Awesome Tauri Example!";function he(){Qi(c)}function _e(){l[i].setTitle(ne)}function fe(){l[i].hide(),setTimeout(l[i].show,2e3)}function re(){l[i].minimize(),setTimeout(l[i].unminimize,2e3)}function Ae(){tl({multiple:!1}).then(Q=>{typeof Q=="string"&&l[i].setIcon(Q)})}function Se(){if(!d)return;const Q=new wt(d);n(1,l[d]=Q,l),Q.once("tauri://error",function(){u("Error creating new webview")})}function D(){l[i].innerSize().then(Q=>{n(30,x=Q),n(11,I=x.width),n(12,O=x.height)}),l[i].outerSize().then(Q=>{n(31,me=Q)})}function G(){l[i].innerPosition().then(Q=>{n(28,U=Q)}),l[i].outerPosition().then(Q=>{n(29,J=Q),n(17,E=J.x),n(18,M=J.y)})}async function Le(Q){!Q||(te&&te(),Y&&Y(),Y=await Q.listen("tauri://move",G),te=await Q.listen("tauri://resize",D))}async function ve(){await l[i].minimize(),await l[i].requestUserAttention($i.Critical),await new Promise(Q=>setTimeout(Q,3e3)),await l[i].requestUserAttention(null)}function ue(){d=this.value,n(25,d)}function we(){i=Vi(this),n(0,i),n(1,l)}const ie=()=>l[i].center();function ze(){v=this.checked,n(6,v)}function Je(){f=this.checked,n(2,f)}function le(){g=this.checked,n(3,g)}function ee(){k=this.checked,n(4,k)}function F(){_=this.checked,n(5,_)}function ce(){y=this.checked,n(7,y)}function B(){b=this.checked,n(8,b)}function Ne(){S=this.checked,n(9,S)}function kt(){P=this.checked,n(10,P)}function nn(){E=se(this.value),n(17,E)}function De(){M=se(this.value),n(18,M)}function ln(){I=se(this.value),n(11,I)}function Xe(){O=se(this.value),n(12,O)}function Mt(){j=se(this.value),n(13,j)}function sn(){W=se(this.value),n(14,W)}function Pe(){T=se(this.value),n(15,T)}function on(){C=se(this.value),n(16,C)}function Tt(){de=this.checked,n(19,de)}function an(){$=this.checked,n(20,$)}function Oe(){ae=this.checked,n(24,ae)}function rn(){K=Vi(this),n(23,K),n(33,o)}function Ye(){N=se(this.value),n(21,N)}function Ct(){X=se(this.value),n(22,X)}function un(){ne=this.value,n(32,ne)}function Fe(){c=this.value,n(26,c)}return e.$$set=Q=>{"onMessage"in Q&&n(41,u=Q.onMessage)},e.$$.update=()=>{var Q,rt,Ht,Re,jt,je,ut,Ut,Ee,qt,ct,Bt,We,At,St,Lt,Te,Ue,Ie,dt,Vt,ft;e.$$.dirty[0]&3&&(l[i],G(),D()),e.$$.dirty[0]&7&&((Q=l[i])==null||Q.setResizable(f)),e.$$.dirty[0]&11&&((rt=l[i])==null||rt.setMaximizable(g)),e.$$.dirty[0]&19&&((Ht=l[i])==null||Ht.setMinimizable(k)),e.$$.dirty[0]&35&&((Re=l[i])==null||Re.setClosable(_)),e.$$.dirty[0]&67&&(v?(jt=l[i])==null||jt.maximize():(je=l[i])==null||je.unmaximize()),e.$$.dirty[0]&131&&((ut=l[i])==null||ut.setDecorations(y)),e.$$.dirty[0]&259&&((Ut=l[i])==null||Ut.setAlwaysOnTop(b)),e.$$.dirty[0]&515&&((Ee=l[i])==null||Ee.setContentProtected(S)),e.$$.dirty[0]&1027&&((qt=l[i])==null||qt.setFullscreen(P)),e.$$.dirty[0]&6147&&I&&O&&((ct=l[i])==null||ct.setSize(new gt(I,O))),e.$$.dirty[0]&24579&&(j&&W?(Bt=l[i])==null||Bt.setMinSize(new di(j,W)):(We=l[i])==null||We.setMinSize(null)),e.$$.dirty[0]&98307&&(T>800&&C>400?(At=l[i])==null||At.setMaxSize(new di(T,C)):(St=l[i])==null||St.setMaxSize(null)),e.$$.dirty[0]&393219&&E!==null&&M!==null&&((Lt=l[i])==null||Lt.setPosition(new ot(E,M))),e.$$.dirty[0]&3&&((Te=l[i])==null||Te.scaleFactor().then(cn=>n(27,H=cn))),e.$$.dirty[0]&3&&Le(l[i]),e.$$.dirty[0]&524291&&((Ue=l[i])==null||Ue.setCursorGrab(de)),e.$$.dirty[0]&1048579&&((Ie=l[i])==null||Ie.setCursorVisible($)),e.$$.dirty[0]&8388611&&((dt=l[i])==null||dt.setCursorIcon(K)),e.$$.dirty[0]&6291459&&N!==null&&X!==null&&((Vt=l[i])==null||Vt.setCursorPosition(new ot(N,X))),e.$$.dirty[0]&16777219&&((ft=l[i])==null||ft.setIgnoreCursorEvents(ae))},[i,l,f,g,k,_,v,y,b,S,P,I,O,j,W,T,C,E,M,de,$,N,X,K,ae,d,c,H,U,J,x,me,ne,o,he,_e,fe,re,Ae,Se,ve,u,ue,we,ie,ze,Je,le,ee,F,ce,B,Ne,kt,nn,De,ln,Xe,Mt,sn,Pe,on,Tt,an,Oe,rn,Ye,Ct,un,Fe]}class Va extends ye{constructor(t){super(),ge(this,t,Ba,qa,pe,{onMessage:41},null,[-1,-1,-1])}}var Ga={};Me(Ga,{isRegistered:()=>Xa,register:()=>mo,registerAll:()=>Ja,unregister:()=>ho,unregisterAll:()=>_o});async function mo(e,t){return A({__tauriModule:"GlobalShortcut",message:{cmd:"register",shortcut:e,handler:vt(t)}})}async function Ja(e,t){return A({__tauriModule:"GlobalShortcut",message:{cmd:"registerAll",shortcuts:e,handler:vt(t)}})}async function Xa(e){return A({__tauriModule:"GlobalShortcut",message:{cmd:"isRegistered",shortcut:e}})}async function ho(e){return A({__tauriModule:"GlobalShortcut",message:{cmd:"unregister",shortcut:e}})}async function _o(){return A({__tauriModule:"GlobalShortcut",message:{cmd:"unregisterAll"}})}function ks(e,t,n){const i=e.slice();return i[9]=t[n],i}function Ms(e){let t,n=e[9]+"",i,l,o,u,d;function c(){return e[8](e[9])}return{c(){t=a("div"),i=z(n),l=m(),o=a("button"),o.textContent="Unregister",r(o,"class","btn"),r(o,"type","button"),r(t,"class","flex justify-between")},m(f,g){h(f,t,g),s(t,i),s(t,l),s(t,o),u||(d=L(o,"click",c),u=!0)},p(f,g){e=f,g&2&&n!==(n=e[9]+"")&&Z(i,n)},d(f){f&&p(t),u=!1,d()}}}function Ts(e){let t,n,i,l,o;return{c(){t=a("br"),n=m(),i=a("button"),i.textContent="Unregister all",r(i,"class","btn"),r(i,"type","button")},m(u,d){h(u,t,d),h(u,n,d),h(u,i,d),l||(o=L(i,"click",e[5]),l=!0)},p:V,d(u){u&&p(t),u&&p(n),u&&p(i),l=!1,o()}}}function Ya(e){let t,n,i,l,o,u,d,c,f,g,k,_=e[1],v=[];for(let b=0;b<_.length;b+=1)v[b]=Ms(ks(e,_,b));let y=e[1].length>1&&Ts(e);return{c(){t=a("div"),n=a("input"),i=m(),l=a("button"),l.textContent="Register",o=m(),u=a("br"),d=m(),c=a("div");for(let b=0;b1?y?y.p(b,S):(y=Ts(b),y.c(),y.m(c,null)):y&&(y.d(1),y=null)},i:V,o:V,d(b){b&&p(t),b&&p(o),b&&p(u),b&&p(d),b&&p(c),yt(v,b),y&&y.d(),g=!1,oe(k)}}}function Ka(e,t,n){let i,{onMessage:l}=t;const o=Fs([]);Rs(e,o,_=>n(1,i=_));let u="CmdOrControl+X";function d(){const _=u;mo(_,()=>{l(`Shortcut ${_} triggered`)}).then(()=>{o.update(v=>[...v,_]),l(`Shortcut ${_} registered successfully`)}).catch(l)}function c(_){const v=_;ho(v).then(()=>{o.update(y=>y.filter(b=>b!==v)),l(`Shortcut ${v} unregistered`)}).catch(l)}function f(){_o().then(()=>{o.update(()=>[]),l("Unregistered all shortcuts")}).catch(l)}function g(){u=this.value,n(0,u)}const k=_=>c(_);return e.$$set=_=>{"onMessage"in _&&n(6,l=_.onMessage)},[u,i,o,d,c,f,l,g,k]}class Qa extends ye{constructor(t){super(),ge(this,t,Ka,Ya,pe,{onMessage:6})}}function Cs(e){let t,n,i,l,o,u,d;return{c(){t=a("br"),n=m(),i=a("input"),l=m(),o=a("button"),o.textContent="Write",r(i,"class","input"),r(i,"placeholder","write to stdin"),r(o,"class","btn")},m(c,f){h(c,t,f),h(c,n,f),h(c,i,f),q(i,e[4]),h(c,l,f),h(c,o,f),u||(d=[L(i,"input",e[14]),L(o,"click",e[8])],u=!0)},p(c,f){f&16&&i.value!==c[4]&&q(i,c[4])},d(c){c&&p(t),c&&p(n),c&&p(i),c&&p(l),c&&p(o),u=!1,oe(d)}}}function Za(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,S,P,I,O,j,W,T,C,E,M=e[5]&&Cs(e);return{c(){t=a("div"),n=a("div"),i=z(`Script: `),l=a("input"),o=m(),u=a("div"),d=z(`Encoding: `),c=a("input"),f=m(),g=a("div"),k=z(`Working directory: `),_=a("input"),v=m(),y=a("div"),b=z(`Arguments: - `),S=a("input"),P=m(),I=a("div"),O=a("button"),O.textContent="Run",j=m(),W=a("button"),W.textContent="Kill",T=m(),M&&M.c(),r(l,"class","grow input"),r(n,"class","flex items-center gap-1"),r(c,"class","grow input"),r(u,"class","flex items-center gap-1"),r(_,"class","grow input"),r(_,"placeholder","Working directory"),r(g,"class","flex items-center gap-1"),r(S,"class","grow input"),r(S,"placeholder","Environment variables"),r(y,"class","flex items-center gap-1"),r(O,"class","btn"),r(W,"class","btn"),r(I,"class","flex children:grow gap-1"),r(t,"class","flex flex-col childre:grow gap-1")},m(H,U){h(H,t,U),s(t,n),s(n,i),s(n,l),q(l,e[0]),s(t,o),s(t,u),s(u,d),s(u,c),q(c,e[3]),s(t,f),s(t,g),s(g,k),s(g,_),q(_,e[1]),s(t,v),s(t,y),s(y,b),s(y,S),q(S,e[2]),s(t,P),s(t,I),s(I,O),s(I,j),s(I,W),s(t,T),M&&M.m(t,null),C||(E=[L(l,"input",e[10]),L(c,"input",e[11]),L(_,"input",e[12]),L(S,"input",e[13]),L(O,"click",e[6]),L(W,"click",e[7])],C=!0)},p(H,[U]){U&1&&l.value!==H[0]&&q(l,H[0]),U&8&&c.value!==H[3]&&q(c,H[3]),U&2&&_.value!==H[1]&&q(_,H[1]),U&4&&S.value!==H[2]&&q(S,H[2]),H[5]?M?M.p(H,U):(M=Cs(H),M.c(),M.m(t,null)):M&&(M.d(1),M=null)},i:V,o:V,d(H){H&&p(t),M&&M.d(),C=!1,oe(E)}}}function Za(e,t,n){const i=navigator.userAgent.includes("Windows");let l=i?"cmd":"sh",o=i?["/C"]:["-c"],{onMessage:u}=t,d='echo "hello world"',c=null,f="SOMETHING=value ANOTHER=2",g="",k="",_;function v(){return f.split(" ").reduce((T,C)=>{let[E,M]=C.split("=");return{...T,[E]:M}},{})}function y(){n(5,_=null);const T=new Ki(l,[...o,d],{cwd:c||null,env:v(),encoding:g});T.on("close",C=>{u(`command finished with code ${C.code} and signal ${C.signal}`),n(5,_=null)}),T.on("error",C=>u(`command error: "${C}"`)),T.stdout.on("data",C=>u(`command stdout: "${C}"`)),T.stderr.on("data",C=>u(`command stderr: "${C}"`)),T.spawn().then(C=>{n(5,_=C)}).catch(u)}function b(){_.kill().then(()=>u("killed child process")).catch(u)}function S(){_.write(k).catch(u)}function P(){d=this.value,n(0,d)}function I(){g=this.value,n(3,g)}function O(){c=this.value,n(1,c)}function j(){f=this.value,n(2,f)}function W(){k=this.value,n(4,k)}return e.$$set=T=>{"onMessage"in T&&n(9,u=T.onMessage)},[d,c,f,g,k,_,y,b,S,u,P,I,O,j,W]}class $a extends ye{constructor(t){super(),ge(this,t,Za,Qa,pe,{onMessage:9})}}var xa={};Me(xa,{checkUpdate:()=>go,installUpdate:()=>bo,onUpdaterEvent:()=>ll});async function ll(e){return tn("tauri://update-status",t=>{e(t==null?void 0:t.payload)})}async function bo(){let e;function t(){e&&e(),e=void 0}return new Promise((n,i)=>{function l(o){if(o.error){t(),i(o.error);return}o.status==="DONE"&&(t(),n())}ll(l).then(o=>{e=o}).catch(o=>{throw t(),o}),_i("tauri://update-install").catch(o=>{throw t(),o})})}async function go(){let e;function t(){e&&e(),e=void 0}return new Promise((n,i)=>{function l(u){t(),n({manifest:u,shouldUpdate:!0})}function o(u){if(u.error){t(),i(u.error);return}u.status==="UPTODATE"&&(t(),n({shouldUpdate:!1}))}Gs("tauri://update-available",u=>{l(u==null?void 0:u.payload)}).catch(u=>{throw t(),u}),ll(o).then(u=>{e=u}).catch(u=>{throw t(),u}),_i("tauri://update").catch(u=>{throw t(),u})})}function er(e){let t;return{c(){t=a("button"),t.innerHTML='
',r(t,"class","btn text-accentText dark:text-darkAccentText flex items-center justify-center")},m(n,i){h(n,t,i)},p:V,d(n){n&&p(t)}}}function tr(e){let t,n,i;return{c(){t=a("button"),t.textContent="Install update",r(t,"class","btn")},m(l,o){h(l,t,o),n||(i=L(t,"click",e[4]),n=!0)},p:V,d(l){l&&p(t),n=!1,i()}}}function nr(e){let t,n,i;return{c(){t=a("button"),t.textContent="Check update",r(t,"class","btn")},m(l,o){h(l,t,o),n||(i=L(t,"click",e[3]),n=!0)},p:V,d(l){l&&p(t),n=!1,i()}}}function ir(e){let t;function n(o,u){return!o[0]&&!o[2]?nr:!o[1]&&o[2]?tr:er}let i=n(e),l=i(e);return{c(){t=a("div"),l.c(),r(t,"class","flex children:grow children:h10")},m(o,u){h(o,t,u),l.m(t,null)},p(o,[u]){i===(i=n(o))&&l?l.p(o,u):(l.d(1),l=i(o),l&&(l.c(),l.m(t,null)))},i:V,o:V,d(o){o&&p(t),l.d()}}}function lr(e,t,n){let{onMessage:i}=t,l;_t(async()=>{l=await tn("tauri://update-status",i)}),Yi(()=>{l&&l()});let o,u,d;async function c(){n(0,o=!0);try{const{shouldUpdate:g,manifest:k}=await go();i(`Should update: ${g}`),i(k),n(2,d=g)}catch(g){i(g)}finally{n(0,o=!1)}}async function f(){n(1,u=!0);try{await bo(),i("Installation complete, restart required."),await el()}catch(g){i(g)}finally{n(1,u=!1)}}return e.$$set=g=>{"onMessage"in g&&n(5,i=g.onMessage)},[o,u,d,c,f,i]}class sr extends ye{constructor(t){super(),ge(this,t,lr,ir,pe,{onMessage:5})}}var or={};Me(or,{readText:()=>vo,writeText:()=>yo});async function yo(e){return A({__tauriModule:"Clipboard",message:{cmd:"writeText",data:e}})}async function vo(){return A({__tauriModule:"Clipboard",message:{cmd:"readText",data:null}})}function ar(e){let t,n,i,l,o,u,d,c;return{c(){t=a("div"),n=a("input"),i=m(),l=a("button"),l.textContent="Write",o=m(),u=a("button"),u.textContent="Read",r(n,"class","grow input"),r(n,"placeholder","Text to write to the clipboard"),r(l,"class","btn"),r(l,"type","button"),r(u,"class","btn"),r(u,"type","button"),r(t,"class","flex gap-1")},m(f,g){h(f,t,g),s(t,n),q(n,e[0]),s(t,i),s(t,l),s(t,o),s(t,u),d||(c=[L(n,"input",e[4]),L(l,"click",e[1]),L(u,"click",e[2])],d=!0)},p(f,[g]){g&1&&n.value!==f[0]&&q(n,f[0])},i:V,o:V,d(f){f&&p(t),d=!1,oe(c)}}}function rr(e,t,n){let{onMessage:i}=t,l="clipboard message";function o(){yo(l).then(()=>{i("Wrote to the clipboard")}).catch(i)}function u(){vo().then(c=>{i(`Clipboard contents: ${c}`)}).catch(i)}function d(){l=this.value,n(0,l)}return e.$$set=c=>{"onMessage"in c&&n(3,i=c.onMessage)},[l,o,u,i,d]}class ur extends ye{constructor(t){super(),ge(this,t,rr,ar,pe,{onMessage:3})}}function cr(e){let t;return{c(){t=a("div"),t.innerHTML=`
Not available for Linux
- `,r(t,"class","flex flex-col gap-2")},m(n,i){h(n,t,i)},p:V,i:V,o:V,d(n){n&&p(t)}}}function dr(e,t,n){let{onMessage:i}=t;const l=window.constraints={audio:!0,video:!0};function o(d){const c=document.querySelector("video"),f=d.getVideoTracks();i("Got stream with constraints:",l),i(`Using video device: ${f[0].label}`),window.stream=d,c.srcObject=d}function u(d){if(d.name==="ConstraintNotSatisfiedError"){const c=l.video;i(`The resolution ${c.width.exact}x${c.height.exact} px is not supported by your device.`)}else d.name==="PermissionDeniedError"&&i("Permissions have not been granted to use your camera and microphone, you need to allow the page access to your devices in order for the demo to work.");i(`getUserMedia error: ${d.name}`,d)}return _t(async()=>{try{const d=await navigator.mediaDevices.getUserMedia(l);o(d)}catch(d){u(d)}}),Yi(()=>{window.stream.getTracks().forEach(function(d){d.stop()})}),e.$$set=d=>{"onMessage"in d&&n(0,i=d.onMessage)},[i]}class fr extends ye{constructor(t){super(),ge(this,t,dr,cr,pe,{onMessage:0})}}function pr(e){let t,n,i,l,o,u;return{c(){t=a("div"),n=a("button"),n.textContent="Show",i=m(),l=a("button"),l.textContent="Hide",r(n,"class","btn"),r(n,"id","show"),r(n,"title","Hides and shows the app after 2 seconds"),r(l,"class","btn"),r(l,"id","hide")},m(d,c){h(d,t,c),s(t,n),s(t,i),s(t,l),o||(u=[L(n,"click",e[0]),L(l,"click",e[1])],o=!0)},p:V,i:V,o:V,d(d){d&&p(t),o=!1,oe(u)}}}function mr(e,t,n){let{onMessage:i}=t;function l(){o().then(()=>{setTimeout(()=>{io().then(()=>i("Shown app")).catch(i)},2e3)}).catch(i)}function o(){return lo().then(()=>i("Hide app")).catch(i)}return e.$$set=u=>{"onMessage"in u&&n(2,i=u.onMessage)},[l,o,i]}class hr extends ye{constructor(t){super(),ge(this,t,mr,pr,pe,{onMessage:2})}}function As(e,t,n){const i=e.slice();return i[32]=t[n],i}function Ss(e,t,n){const i=e.slice();return i[35]=t[n],i}function Ls(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b;function S(T,C){return T[3]?br:_r}let P=S(e),I=P(e);function O(T,C){return T[2]?yr:gr}let j=O(e),W=j(e);return{c(){t=a("div"),n=a("span"),n.textContent="Tauri API Validation",i=m(),l=a("span"),o=a("span"),I.c(),d=m(),c=a("span"),c.innerHTML='
',f=m(),g=a("span"),W.c(),_=m(),v=a("span"),v.innerHTML='
',r(n,"class","lt-sm:pl-10 text-darkPrimaryText"),r(o,"title",u=e[3]?"Switch to Light mode":"Switch to Dark mode"),r(o,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),r(c,"title","Minimize"),r(c,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),r(g,"title",k=e[2]?"Restore":"Maximize"),r(g,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),r(v,"title","Close"),r(v,"class","hover:bg-red-700 dark:hover:bg-red-700 hover:text-darkPrimaryText active:bg-red-700/90 dark:active:bg-red-700/90 active:text-darkPrimaryText "),r(l,"class","h-100% children:h-100% children:w-12 children:inline-flex children:items-center children:justify-center"),r(t,"class","w-screen select-none h-8 pl-2 flex justify-between items-center absolute text-primaryText dark:text-darkPrimaryText"),r(t,"data-tauri-drag-region","")},m(T,C){h(T,t,C),s(t,n),s(t,i),s(t,l),s(l,o),I.m(o,null),s(l,d),s(l,c),s(l,f),s(l,g),W.m(g,null),s(l,_),s(l,v),y||(b=[L(o,"click",e[12]),L(c,"click",e[9]),L(g,"click",e[10]),L(v,"click",e[11])],y=!0)},p(T,C){P!==(P=S(T))&&(I.d(1),I=P(T),I&&(I.c(),I.m(o,null))),C[0]&8&&u!==(u=T[3]?"Switch to Light mode":"Switch to Dark mode")&&r(o,"title",u),j!==(j=O(T))&&(W.d(1),W=j(T),W&&(W.c(),W.m(g,null))),C[0]&4&&k!==(k=T[2]?"Restore":"Maximize")&&r(g,"title",k)},d(T){T&&p(t),I.d(),W.d(),y=!1,oe(b)}}}function _r(e){let t;return{c(){t=a("div"),r(t,"class","i-ph-moon")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function br(e){let t;return{c(){t=a("div"),r(t,"class","i-ph-sun")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function gr(e){let t;return{c(){t=a("div"),r(t,"class","i-codicon-chrome-maximize")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function yr(e){let t;return{c(){t=a("div"),r(t,"class","i-codicon-chrome-restore")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function vr(e){let t;return{c(){t=a("span"),r(t,"class","i-codicon-menu animate-duration-300ms animate-fade-in")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function wr(e){let t;return{c(){t=a("span"),r(t,"class","i-codicon-close animate-duration-300ms animate-fade-in")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function zs(e){let t,n,i,l,o,u,d,c,f;function g(v,y){return v[3]?Mr:kr}let k=g(e),_=k(e);return{c(){t=a("a"),_.c(),n=m(),i=a("br"),l=m(),o=a("div"),u=m(),d=a("br"),r(t,"href","##"),r(t,"class","nv justify-between h-8"),r(o,"class","bg-white/5 h-2px")},m(v,y){h(v,t,y),_.m(t,null),h(v,n,y),h(v,i,y),h(v,l,y),h(v,o,y),h(v,u,y),h(v,d,y),c||(f=L(t,"click",e[12]),c=!0)},p(v,y){k!==(k=g(v))&&(_.d(1),_=k(v),_&&(_.c(),_.m(t,null)))},d(v){v&&p(t),_.d(),v&&p(n),v&&p(i),v&&p(l),v&&p(o),v&&p(u),v&&p(d),c=!1,f()}}}function kr(e){let t,n;return{c(){t=z(`Switch to Dark mode - `),n=a("div"),r(n,"class","i-ph-moon")},m(i,l){h(i,t,l),h(i,n,l)},d(i){i&&p(t),i&&p(n)}}}function Mr(e){let t,n;return{c(){t=z(`Switch to Light mode - `),n=a("div"),r(n,"class","i-ph-sun")},m(i,l){h(i,t,l),h(i,n,l)},d(i){i&&p(t),i&&p(n)}}}function Tr(e){let t,n,i,l,o=e[35].label+"",u,d,c,f;function g(){return e[20](e[35])}return{c(){t=a("a"),n=a("div"),i=m(),l=a("p"),u=z(o),r(n,"class",e[35].icon+" mr-2"),r(t,"href","##"),r(t,"class",d="nv "+(e[1]===e[35]?"nv_selected":""))},m(k,_){h(k,t,_),s(t,n),s(t,i),s(t,l),s(l,u),c||(f=L(t,"click",g),c=!0)},p(k,_){e=k,_[0]&2&&d!==(d="nv "+(e[1]===e[35]?"nv_selected":""))&&r(t,"class",d)},d(k){k&&p(t),c=!1,f()}}}function Es(e){let t,n=e[35]&&Tr(e);return{c(){n&&n.c(),t=pi()},m(i,l){n&&n.m(i,l),h(i,t,l)},p(i,l){i[35]&&n.p(i,l)},d(i){n&&n.d(i),i&&p(t)}}}function Ws(e){let t,n=e[32].html+"",i;return{c(){t=new Lo(!1),i=pi(),t.a=i},m(l,o){t.m(n,l,o),h(l,i,o)},p(l,o){o[0]&64&&n!==(n=l[32].html+"")&&t.p(n)},d(l){l&&p(i),l&&t.d()}}}function Cr(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,S,P,I,O,j,W,T,C,E,M,H,U=e[1].label+"",J,x,me,te,Y,de,$,N,X,K,ae,ne,he,_e,fe,re,Ae,Se,D=e[5]&&Ls(e);function G(F,ce){return F[0]?wr:vr}let Le=G(e),ve=Le(e),ue=!e[5]&&zs(e),we=e[7],ie=[];for(let F=0;F{let[E,M]=C.split("=");return{...T,[E]:M}},{})}function y(){n(5,_=null);const T=new Ki(l,[...o,d],{cwd:c||null,env:v(),encoding:g});T.on("close",C=>{u(`command finished with code ${C.code} and signal ${C.signal}`),n(5,_=null)}),T.on("error",C=>u(`command error: "${C}"`)),T.stdout.on("data",C=>u(`command stdout: "${C}"`)),T.stderr.on("data",C=>u(`command stderr: "${C}"`)),T.spawn().then(C=>{n(5,_=C)}).catch(u)}function b(){_.kill().then(()=>u("killed child process")).catch(u)}function S(){_.write(k).catch(u)}function P(){d=this.value,n(0,d)}function I(){g=this.value,n(3,g)}function O(){c=this.value,n(1,c)}function j(){f=this.value,n(2,f)}function W(){k=this.value,n(4,k)}return e.$$set=T=>{"onMessage"in T&&n(9,u=T.onMessage)},[d,c,f,g,k,_,y,b,S,u,P,I,O,j,W]}class xa extends ye{constructor(t){super(),ge(this,t,$a,Za,pe,{onMessage:9})}}var er={};Me(er,{checkUpdate:()=>go,installUpdate:()=>bo,onUpdaterEvent:()=>ll});async function ll(e){return tn("tauri://update-status",t=>{e(t==null?void 0:t.payload)})}async function bo(){let e;function t(){e&&e(),e=void 0}return new Promise((n,i)=>{function l(o){if(o.error){t(),i(o.error);return}o.status==="DONE"&&(t(),n())}ll(l).then(o=>{e=o}).catch(o=>{throw t(),o}),_i("tauri://update-install").catch(o=>{throw t(),o})})}async function go(){let e;function t(){e&&e(),e=void 0}return new Promise((n,i)=>{function l(u){t(),n({manifest:u,shouldUpdate:!0})}function o(u){if(u.error){t(),i(u.error);return}u.status==="UPTODATE"&&(t(),n({shouldUpdate:!1}))}Gs("tauri://update-available",u=>{l(u==null?void 0:u.payload)}).catch(u=>{throw t(),u}),ll(o).then(u=>{e=u}).catch(u=>{throw t(),u}),_i("tauri://update").catch(u=>{throw t(),u})})}function tr(e){let t;return{c(){t=a("button"),t.innerHTML='
',r(t,"class","btn text-accentText dark:text-darkAccentText flex items-center justify-center")},m(n,i){h(n,t,i)},p:V,d(n){n&&p(t)}}}function nr(e){let t,n,i;return{c(){t=a("button"),t.textContent="Install update",r(t,"class","btn")},m(l,o){h(l,t,o),n||(i=L(t,"click",e[4]),n=!0)},p:V,d(l){l&&p(t),n=!1,i()}}}function ir(e){let t,n,i;return{c(){t=a("button"),t.textContent="Check update",r(t,"class","btn")},m(l,o){h(l,t,o),n||(i=L(t,"click",e[3]),n=!0)},p:V,d(l){l&&p(t),n=!1,i()}}}function lr(e){let t;function n(o,u){return!o[0]&&!o[2]?ir:!o[1]&&o[2]?nr:tr}let i=n(e),l=i(e);return{c(){t=a("div"),l.c(),r(t,"class","flex children:grow children:h10")},m(o,u){h(o,t,u),l.m(t,null)},p(o,[u]){i===(i=n(o))&&l?l.p(o,u):(l.d(1),l=i(o),l&&(l.c(),l.m(t,null)))},i:V,o:V,d(o){o&&p(t),l.d()}}}function sr(e,t,n){let{onMessage:i}=t,l;_t(async()=>{l=await tn("tauri://update-status",i)}),Yi(()=>{l&&l()});let o,u,d;async function c(){n(0,o=!0);try{const{shouldUpdate:g,manifest:k}=await go();i(`Should update: ${g}`),i(k),n(2,d=g)}catch(g){i(g)}finally{n(0,o=!1)}}async function f(){n(1,u=!0);try{await bo(),i("Installation complete, restart required."),await el()}catch(g){i(g)}finally{n(1,u=!1)}}return e.$$set=g=>{"onMessage"in g&&n(5,i=g.onMessage)},[o,u,d,c,f,i]}class or extends ye{constructor(t){super(),ge(this,t,sr,lr,pe,{onMessage:5})}}var ar={};Me(ar,{readText:()=>vo,writeText:()=>yo});async function yo(e){return A({__tauriModule:"Clipboard",message:{cmd:"writeText",data:e}})}async function vo(){return A({__tauriModule:"Clipboard",message:{cmd:"readText",data:null}})}function rr(e){let t,n,i,l,o,u,d,c;return{c(){t=a("div"),n=a("input"),i=m(),l=a("button"),l.textContent="Write",o=m(),u=a("button"),u.textContent="Read",r(n,"class","grow input"),r(n,"placeholder","Text to write to the clipboard"),r(l,"class","btn"),r(l,"type","button"),r(u,"class","btn"),r(u,"type","button"),r(t,"class","flex gap-1")},m(f,g){h(f,t,g),s(t,n),q(n,e[0]),s(t,i),s(t,l),s(t,o),s(t,u),d||(c=[L(n,"input",e[4]),L(l,"click",e[1]),L(u,"click",e[2])],d=!0)},p(f,[g]){g&1&&n.value!==f[0]&&q(n,f[0])},i:V,o:V,d(f){f&&p(t),d=!1,oe(c)}}}function ur(e,t,n){let{onMessage:i}=t,l="clipboard message";function o(){yo(l).then(()=>{i("Wrote to the clipboard")}).catch(i)}function u(){vo().then(c=>{i(`Clipboard contents: ${c}`)}).catch(i)}function d(){l=this.value,n(0,l)}return e.$$set=c=>{"onMessage"in c&&n(3,i=c.onMessage)},[l,o,u,i,d]}class cr extends ye{constructor(t){super(),ge(this,t,ur,rr,pe,{onMessage:3})}}function dr(e){let t;return{c(){t=a("div"),t.innerHTML=`
Not available for Linux
+ `,r(t,"class","flex flex-col gap-2")},m(n,i){h(n,t,i)},p:V,i:V,o:V,d(n){n&&p(t)}}}function fr(e,t,n){let{onMessage:i}=t;const l=window.constraints={audio:!0,video:!0};function o(d){const c=document.querySelector("video"),f=d.getVideoTracks();i("Got stream with constraints:",l),i(`Using video device: ${f[0].label}`),window.stream=d,c.srcObject=d}function u(d){if(d.name==="ConstraintNotSatisfiedError"){const c=l.video;i(`The resolution ${c.width.exact}x${c.height.exact} px is not supported by your device.`)}else d.name==="PermissionDeniedError"&&i("Permissions have not been granted to use your camera and microphone, you need to allow the page access to your devices in order for the demo to work.");i(`getUserMedia error: ${d.name}`,d)}return _t(async()=>{try{const d=await navigator.mediaDevices.getUserMedia(l);o(d)}catch(d){u(d)}}),Yi(()=>{window.stream.getTracks().forEach(function(d){d.stop()})}),e.$$set=d=>{"onMessage"in d&&n(0,i=d.onMessage)},[i]}class pr extends ye{constructor(t){super(),ge(this,t,fr,dr,pe,{onMessage:0})}}function mr(e){let t,n,i,l,o,u;return{c(){t=a("div"),n=a("button"),n.textContent="Show",i=m(),l=a("button"),l.textContent="Hide",r(n,"class","btn"),r(n,"id","show"),r(n,"title","Hides and shows the app after 2 seconds"),r(l,"class","btn"),r(l,"id","hide")},m(d,c){h(d,t,c),s(t,n),s(t,i),s(t,l),o||(u=[L(n,"click",e[0]),L(l,"click",e[1])],o=!0)},p:V,i:V,o:V,d(d){d&&p(t),o=!1,oe(u)}}}function hr(e,t,n){let{onMessage:i}=t;function l(){o().then(()=>{setTimeout(()=>{io().then(()=>i("Shown app")).catch(i)},2e3)}).catch(i)}function o(){return lo().then(()=>i("Hide app")).catch(i)}return e.$$set=u=>{"onMessage"in u&&n(2,i=u.onMessage)},[l,o,i]}class _r extends ye{constructor(t){super(),ge(this,t,hr,mr,pe,{onMessage:2})}}function As(e,t,n){const i=e.slice();return i[32]=t[n],i}function Ss(e,t,n){const i=e.slice();return i[35]=t[n],i}function Ls(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b;function S(T,C){return T[3]?gr:br}let P=S(e),I=P(e);function O(T,C){return T[2]?vr:yr}let j=O(e),W=j(e);return{c(){t=a("div"),n=a("span"),n.textContent="Tauri API Validation",i=m(),l=a("span"),o=a("span"),I.c(),d=m(),c=a("span"),c.innerHTML='
',f=m(),g=a("span"),W.c(),_=m(),v=a("span"),v.innerHTML='
',r(n,"class","lt-sm:pl-10 text-darkPrimaryText"),r(o,"title",u=e[3]?"Switch to Light mode":"Switch to Dark mode"),r(o,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),r(c,"title","Minimize"),r(c,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),r(g,"title",k=e[2]?"Restore":"Maximize"),r(g,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),r(v,"title","Close"),r(v,"class","hover:bg-red-700 dark:hover:bg-red-700 hover:text-darkPrimaryText active:bg-red-700/90 dark:active:bg-red-700/90 active:text-darkPrimaryText "),r(l,"class","h-100% children:h-100% children:w-12 children:inline-flex children:items-center children:justify-center"),r(t,"class","w-screen select-none h-8 pl-2 flex justify-between items-center absolute text-primaryText dark:text-darkPrimaryText"),r(t,"data-tauri-drag-region","")},m(T,C){h(T,t,C),s(t,n),s(t,i),s(t,l),s(l,o),I.m(o,null),s(l,d),s(l,c),s(l,f),s(l,g),W.m(g,null),s(l,_),s(l,v),y||(b=[L(o,"click",e[12]),L(c,"click",e[9]),L(g,"click",e[10]),L(v,"click",e[11])],y=!0)},p(T,C){P!==(P=S(T))&&(I.d(1),I=P(T),I&&(I.c(),I.m(o,null))),C[0]&8&&u!==(u=T[3]?"Switch to Light mode":"Switch to Dark mode")&&r(o,"title",u),j!==(j=O(T))&&(W.d(1),W=j(T),W&&(W.c(),W.m(g,null))),C[0]&4&&k!==(k=T[2]?"Restore":"Maximize")&&r(g,"title",k)},d(T){T&&p(t),I.d(),W.d(),y=!1,oe(b)}}}function br(e){let t;return{c(){t=a("div"),r(t,"class","i-ph-moon")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function gr(e){let t;return{c(){t=a("div"),r(t,"class","i-ph-sun")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function yr(e){let t;return{c(){t=a("div"),r(t,"class","i-codicon-chrome-maximize")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function vr(e){let t;return{c(){t=a("div"),r(t,"class","i-codicon-chrome-restore")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function wr(e){let t;return{c(){t=a("span"),r(t,"class","i-codicon-menu animate-duration-300ms animate-fade-in")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function kr(e){let t;return{c(){t=a("span"),r(t,"class","i-codicon-close animate-duration-300ms animate-fade-in")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function zs(e){let t,n,i,l,o,u,d,c,f;function g(v,y){return v[3]?Tr:Mr}let k=g(e),_=k(e);return{c(){t=a("a"),_.c(),n=m(),i=a("br"),l=m(),o=a("div"),u=m(),d=a("br"),r(t,"href","##"),r(t,"class","nv justify-between h-8"),r(o,"class","bg-white/5 h-2px")},m(v,y){h(v,t,y),_.m(t,null),h(v,n,y),h(v,i,y),h(v,l,y),h(v,o,y),h(v,u,y),h(v,d,y),c||(f=L(t,"click",e[12]),c=!0)},p(v,y){k!==(k=g(v))&&(_.d(1),_=k(v),_&&(_.c(),_.m(t,null)))},d(v){v&&p(t),_.d(),v&&p(n),v&&p(i),v&&p(l),v&&p(o),v&&p(u),v&&p(d),c=!1,f()}}}function Mr(e){let t,n;return{c(){t=z(`Switch to Dark mode + `),n=a("div"),r(n,"class","i-ph-moon")},m(i,l){h(i,t,l),h(i,n,l)},d(i){i&&p(t),i&&p(n)}}}function Tr(e){let t,n;return{c(){t=z(`Switch to Light mode + `),n=a("div"),r(n,"class","i-ph-sun")},m(i,l){h(i,t,l),h(i,n,l)},d(i){i&&p(t),i&&p(n)}}}function Cr(e){let t,n,i,l,o=e[35].label+"",u,d,c,f;function g(){return e[20](e[35])}return{c(){t=a("a"),n=a("div"),i=m(),l=a("p"),u=z(o),r(n,"class",e[35].icon+" mr-2"),r(t,"href","##"),r(t,"class",d="nv "+(e[1]===e[35]?"nv_selected":""))},m(k,_){h(k,t,_),s(t,n),s(t,i),s(t,l),s(l,u),c||(f=L(t,"click",g),c=!0)},p(k,_){e=k,_[0]&2&&d!==(d="nv "+(e[1]===e[35]?"nv_selected":""))&&r(t,"class",d)},d(k){k&&p(t),c=!1,f()}}}function Es(e){let t,n=e[35]&&Cr(e);return{c(){n&&n.c(),t=pi()},m(i,l){n&&n.m(i,l),h(i,t,l)},p(i,l){i[35]&&n.p(i,l)},d(i){n&&n.d(i),i&&p(t)}}}function Ws(e){let t,n=e[32].html+"",i;return{c(){t=new Lo(!1),i=pi(),t.a=i},m(l,o){t.m(n,l,o),h(l,i,o)},p(l,o){o[0]&64&&n!==(n=l[32].html+"")&&t.p(n)},d(l){l&&p(i),l&&t.d()}}}function Ar(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,S,P,I,O,j,W,T,C,E,M,H,U=e[1].label+"",J,x,me,te,Y,de,$,N,X,K,ae,ne,he,_e,fe,re,Ae,Se,D=e[5]&&Ls(e);function G(F,ce){return F[0]?kr:wr}let Le=G(e),ve=Le(e),ue=!e[5]&&zs(e),we=e[7],ie=[];for(let F=0;F`,k=m(),_=a("a"),_.innerHTML=`GitHub `,v=m(),y=a("a"),y.innerHTML=`Source - `,b=m(),S=a("br"),P=m(),I=a("div"),O=m(),j=a("br"),W=m(),T=a("div");for(let F=0;F',_e=m(),fe=a("div");for(let F=0;F{xt(B,1)}),hi()}ze?(Y=new ze(Je(F)),ui(Y.$$.fragment),Ce(Y.$$.fragment,1),$t(Y,te,null)):Y=null}if(ce[0]&64){le=F[6];let B;for(B=0;B{await confirm("Are you sure?")||N.preventDefault()}),Ge.onFileDropEvent(N=>{P(`File drop: ${JSON.stringify(N.payload)}`)});const l=navigator.userAgent.toLowerCase(),o=l.includes("android")||l.includes("iphone"),u=[{label:"Welcome",component:ea,icon:"i-ph-hand-waving"},{label:"Communication",component:aa,icon:"i-codicon-radio-tower"},!o&&{label:"CLI",component:la,icon:"i-codicon-terminal"},!o&&{label:"Dialog",component:Ma,icon:"i-codicon-multiple-windows"},{label:"File system",component:Sa,icon:"i-codicon-files"},{label:"HTTP",component:Na,icon:"i-ph-globe-hemisphere-west"},!o&&{label:"Notifications",component:ja,icon:"i-codicon-bell-dot"},!o&&{label:"App",component:hr,icon:"i-codicon-hubot"},!o&&{label:"Window",component:Ba,icon:"i-codicon-window"},!o&&{label:"Shortcuts",component:Ka,icon:"i-codicon-record-keys"},{label:"Shell",component:$a,icon:"i-codicon-terminal-bash"},!o&&{label:"Updater",component:sr,icon:"i-codicon-cloud-download"},!o&&{label:"Clipboard",component:ur,icon:"i-codicon-clippy"},{label:"WebRTC",component:fr,icon:"i-ph-broadcast"}];let d=u[0];function c(N){n(1,d=N)}let f;_t(async()=>{const N=Kt();n(2,f=await N.isMaximized()),tn("tauri://resize",async()=>{n(2,f=await N.isMaximized())})});function g(){Kt().minimize()}async function k(){const N=Kt();await N.isMaximized()?N.unmaximize():N.maximize()}let _=!1;async function v(){_||(_=await ro("Are you sure that you want to close this window?",{title:"Tauri API"}),_&&Kt().close())}let y;_t(()=>{n(3,y=localStorage&&localStorage.getItem("theme")=="dark"),Ps(y)});function b(){n(3,y=!y),Ps(y)}let S=Fs([]);Rs(e,S,N=>n(6,i=N));function P(N){S.update(X=>[{html:`
[${new Date().toLocaleTimeString()}]: `+(typeof N=="string"?N:JSON.stringify(N,null,1))+"
"},...X])}function I(N){S.update(X=>[{html:`
[${new Date().toLocaleTimeString()}]: `+N+"
"},...X])}function O(){S.update(()=>[])}let j,W,T;function C(N){T=N.clientY;const X=window.getComputedStyle(j);W=parseInt(X.height,10);const K=ne=>{const he=ne.clientY-T,_e=W-he;n(4,j.style.height=`${_e{document.removeEventListener("mouseup",ae),document.removeEventListener("mousemove",K)};document.addEventListener("mouseup",ae),document.addEventListener("mousemove",K)}let E;_t(async()=>{n(5,E=await $s()==="win32")});let M=!1,H,U,J=!1,x=0,me=0;const te=(N,X,K)=>Math.min(Math.max(X,N),K);_t(()=>{n(18,H=document.querySelector("#sidebar")),U=document.querySelector("#sidebarToggle"),document.addEventListener("click",N=>{U.contains(N.target)?n(0,M=!M):M&&!H.contains(N.target)&&n(0,M=!1)}),document.addEventListener("touchstart",N=>{if(U.contains(N.target))return;const X=N.touches[0].clientX;(0{if(J){const X=N.touches[0].clientX;me=X;const K=(X-x)/10;H.style.setProperty("--translate-x",`-${te(0,M?0-K:18.75-K,18.75)}rem`)}}),document.addEventListener("touchend",()=>{if(J){const N=(me-x)/10;n(0,M=M?N>-(18.75/2):N>18.75/2)}J=!1})});const Y=()=>Qi("https://tauri.app/"),de=N=>{c(N),n(0,M=!1)};function $(N){ri[N?"unshift":"push"](()=>{j=N,n(4,j)})}return e.$$.update=()=>{if(e.$$.dirty[0]&1){const N=document.querySelector("#sidebar");N&&Ar(N,M)}},[M,d,f,y,j,E,i,u,c,g,k,v,b,S,P,I,O,C,H,Y,de,$]}class Lr extends ye{constructor(t){super(),ge(this,t,Sr,Cr,pe,{},null,[-1,-1])}}new Lr({target:document.querySelector("#app")}); + `,b=m(),S=a("br"),P=m(),I=a("div"),O=m(),j=a("br"),W=m(),T=a("div");for(let F=0;F',_e=m(),fe=a("div");for(let F=0;F{xt(B,1)}),hi()}ze?(Y=new ze(Je(F)),ui(Y.$$.fragment),Ce(Y.$$.fragment,1),$t(Y,te,null)):Y=null}if(ce[0]&64){le=F[6];let B;for(B=0;B{await confirm("Are you sure?")||N.preventDefault()}),Ge.onFileDropEvent(N=>{P(`File drop: ${JSON.stringify(N.payload)}`)});const l=navigator.userAgent.toLowerCase(),o=l.includes("android")||l.includes("iphone"),u=[{label:"Welcome",component:ea,icon:"i-ph-hand-waving"},{label:"Communication",component:aa,icon:"i-codicon-radio-tower"},!o&&{label:"CLI",component:la,icon:"i-codicon-terminal"},!o&&{label:"Dialog",component:Ma,icon:"i-codicon-multiple-windows"},{label:"File system",component:Sa,icon:"i-codicon-files"},{label:"HTTP",component:Fa,icon:"i-ph-globe-hemisphere-west"},!o&&{label:"Notifications",component:Ua,icon:"i-codicon-bell-dot"},!o&&{label:"App",component:_r,icon:"i-codicon-hubot"},!o&&{label:"Window",component:Va,icon:"i-codicon-window"},!o&&{label:"Shortcuts",component:Qa,icon:"i-codicon-record-keys"},{label:"Shell",component:xa,icon:"i-codicon-terminal-bash"},!o&&{label:"Updater",component:or,icon:"i-codicon-cloud-download"},!o&&{label:"Clipboard",component:cr,icon:"i-codicon-clippy"},{label:"WebRTC",component:pr,icon:"i-ph-broadcast"}];let d=u[0];function c(N){n(1,d=N)}let f;_t(async()=>{const N=Kt();n(2,f=await N.isMaximized()),tn("tauri://resize",async()=>{n(2,f=await N.isMaximized())})});function g(){Kt().minimize()}async function k(){const N=Kt();await N.isMaximized()?N.unmaximize():N.maximize()}let _=!1;async function v(){_||(_=await ro("Are you sure that you want to close this window?",{title:"Tauri API"}),_&&Kt().close())}let y;_t(()=>{n(3,y=localStorage&&localStorage.getItem("theme")=="dark"),Ps(y)});function b(){n(3,y=!y),Ps(y)}let S=Fs([]);Rs(e,S,N=>n(6,i=N));function P(N){S.update(X=>[{html:`
[${new Date().toLocaleTimeString()}]: `+(typeof N=="string"?N:JSON.stringify(N,null,1))+"
"},...X])}function I(N){S.update(X=>[{html:`
[${new Date().toLocaleTimeString()}]: `+N+"
"},...X])}function O(){S.update(()=>[])}let j,W,T;function C(N){T=N.clientY;const X=window.getComputedStyle(j);W=parseInt(X.height,10);const K=ne=>{const he=ne.clientY-T,_e=W-he;n(4,j.style.height=`${_e{document.removeEventListener("mouseup",ae),document.removeEventListener("mousemove",K)};document.addEventListener("mouseup",ae),document.addEventListener("mousemove",K)}let E;_t(async()=>{n(5,E=await $s()==="win32")});let M=!1,H,U,J=!1,x=0,me=0;const te=(N,X,K)=>Math.min(Math.max(X,N),K);_t(()=>{n(18,H=document.querySelector("#sidebar")),U=document.querySelector("#sidebarToggle"),document.addEventListener("click",N=>{U.contains(N.target)?n(0,M=!M):M&&!H.contains(N.target)&&n(0,M=!1)}),document.addEventListener("touchstart",N=>{if(U.contains(N.target))return;const X=N.touches[0].clientX;(0{if(J){const X=N.touches[0].clientX;me=X;const K=(X-x)/10;H.style.setProperty("--translate-x",`-${te(0,M?0-K:18.75-K,18.75)}rem`)}}),document.addEventListener("touchend",()=>{if(J){const N=(me-x)/10;n(0,M=M?N>-(18.75/2):N>18.75/2)}J=!1})});const Y=()=>Qi("https://tauri.app/"),de=N=>{c(N),n(0,M=!1)};function $(N){ri[N?"unshift":"push"](()=>{j=N,n(4,j)})}return e.$$.update=()=>{if(e.$$.dirty[0]&1){const N=document.querySelector("#sidebar");N&&Sr(N,M)}},[M,d,f,y,j,E,i,u,c,g,k,v,b,S,P,I,O,C,H,Y,de,$]}class zr extends ye{constructor(t){super(),ge(this,t,Lr,Ar,pe,{},null,[-1,-1])}}new zr({target:document.querySelector("#app")}); diff --git a/examples/api/src-tauri/Cargo.lock b/examples/api/src-tauri/Cargo.lock index 93236c254067..c30d606b3095 100644 --- a/examples/api/src-tauri/Cargo.lock +++ b/examples/api/src-tauri/Cargo.lock @@ -1510,7 +1510,21 @@ checksum = "e5c13fb08e5d4dfc151ee5e88bae63f7773d61852f3bdc73c9f4b9e1bde03148" dependencies = [ "log", "mac", - "markup5ever", + "markup5ever 0.10.1", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "html5ever" +version = "0.26.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bea68cab48b8459f17cf1c944c67ddc572d272d9f2b274140f223ecb1da4a3b7" +dependencies = [ + "log", + "mac", + "markup5ever 0.11.0", "proc-macro2", "quote", "syn 1.0.109", @@ -1849,7 +1863,20 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1ea8e9c6e031377cff82ee3001dc8026cdf431ed4e2e6b51f98ab8c73484a358" dependencies = [ "cssparser", - "html5ever", + "html5ever 0.25.2", + "matches", + "selectors", +] + +[[package]] +name = "kuchikiki" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f29e4755b7b995046f510a7520c42b2fed58b77bd94d5a87a8eb43d2fd126da8" +dependencies = [ + "cssparser", + "html5ever 0.26.0", + "indexmap", "matches", "selectors", ] @@ -1954,9 +1981,9 @@ checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4" [[package]] name = "mac-notification-sys" -version = "0.5.6" +version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e72d50edb17756489e79d52eb146927bec8eba9dd48faadf9ef08bca3791ad5" +checksum = "abc434554ad0e640d772f7f262aa28e61d485212533d3673abe5f3d1729bd42a" dependencies = [ "cc", "dirs-next", @@ -1982,7 +2009,21 @@ checksum = "a24f40fb03852d1cdd84330cddcaf98e9ec08a7b7768e952fad3b4cf048ec8fd" dependencies = [ "log", "phf 0.8.0", - "phf_codegen", + "phf_codegen 0.8.0", + "string_cache", + "string_cache_codegen", + "tendril", +] + +[[package]] +name = "markup5ever" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a2629bb1404f3d34c2e921f21fd34ba00b206124c81f65c50b43b6aaefeb016" +dependencies = [ + "log", + "phf 0.10.1", + "phf_codegen 0.10.0", "string_cache", "string_cache_codegen", "tendril", @@ -2488,6 +2529,16 @@ dependencies = [ "phf_shared 0.8.0", ] +[[package]] +name = "phf_codegen" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fb1c3a8bc4dd4e5cfce29b44ffc14bedd2ee294559a294e2a4d4c9e9a6a13cd" +dependencies = [ + "phf_generator 0.10.0", + "phf_shared 0.10.0", +] + [[package]] name = "phf_generator" version = "0.8.0" @@ -3034,7 +3085,7 @@ dependencies = [ "log", "matches", "phf 0.8.0", - "phf_codegen", + "phf_codegen 0.8.0", "precomputed-hash", "servo_arc", "smallvec", @@ -3639,10 +3690,10 @@ dependencies = [ "getrandom 0.2.10", "glob", "heck 0.4.1", - "html5ever", + "html5ever 0.26.0", "infer 0.12.0", "json-patch", - "kuchiki", + "kuchikiki", "memchr", "phf 0.10.1", "proc-macro2", @@ -4697,7 +4748,7 @@ dependencies = [ "gio", "glib", "gtk", - "html5ever", + "html5ever 0.25.2", "http", "kuchiki", "libc", diff --git a/examples/api/src/views/Notifications.svelte b/examples/api/src/views/Notifications.svelte index 32f5b137afb5..8fed0aea4af6 100644 --- a/examples/api/src/views/Notifications.svelte +++ b/examples/api/src/views/Notifications.svelte @@ -7,16 +7,16 @@ // the backend is responsible for checking the permission async function _sendNotification() { const osType = await type() - console.log(osType) new Notification('Notification title', { body: 'This is the notification body', - sound: osType === 'Windows_NT' - ? 'Default' - : osType === 'Linux' + sound: + osType === 'Windows_NT' + ? 'Default' + : osType === 'Linux' ? 'dialog-information' : osType === 'Darwin' - ? 'NSUserNotificationDefaultSoundName' - : undefined + ? 'NSUserNotificationDefaultSoundName' + : undefined }) } From 80fbac818e25c9dd68dc783d5bd02338f752369e Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Tue, 8 Aug 2023 13:44:28 -0300 Subject: [PATCH 09/13] fix downgrade --- .github/workflows/test-core.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-core.yml b/.github/workflows/test-core.yml index 94015bbf730f..4fa44f07bc27 100644 --- a/.github/workflows/test-core.yml +++ b/.github/workflows/test-core.yml @@ -99,7 +99,7 @@ jobs: cargo update -p is-terminal --precise 0.4.7 cargo update -p colored --precise 2.0.2 cargo update -p tempfile --precise 3.6.0 - cargo update -p serde_with:3.1.0 --precise 3.0.0 + cargo update -p serde_with:3.2.0 --precise 3.0.0 - name: test run: cargo test --target ${{ matrix.platform.target }} ${{ matrix.features.args }} From 18746065d4b0e127129792b61942ca21d5642826 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Tue, 8 Aug 2023 13:49:29 -0300 Subject: [PATCH 10/13] fix ci --- .github/workflows/check-generated-files.yml | 5 +---- .prettierignore | 1 - tooling/api/.gitignore | 1 - 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/check-generated-files.yml b/.github/workflows/check-generated-files.yml index 0f5b6ecc64c1..69d0ba86004f 100644 --- a/.github/workflows/check-generated-files.yml +++ b/.github/workflows/check-generated-files.yml @@ -32,7 +32,6 @@ jobs: filters: | api: - 'tooling/api/src/**' - - 'tooling/api/docs/js-api.json' - 'core/tauri/scripts/bundle.global.js' schema: - 'core/tauri-utils/src/config.rs' @@ -50,9 +49,7 @@ jobs: working-directory: tooling/api run: yarn && yarn build - name: check api - run: | - git restore tooling/api/docs/js-api.json - ./.scripts/ci/has-diff.sh + run: ./.scripts/ci/has-diff.sh schema: runs-on: ubuntu-latest diff --git a/.prettierignore b/.prettierignore index fd6c5b9ba982..b8a0bcc4fd25 100644 --- a/.prettierignore +++ b/.prettierignore @@ -9,5 +9,4 @@ dist /tooling/cli/templates /tooling/cli/node /tooling/cli/schema.json -/tooling/api/docs/js-api.json /core/tauri-config-schema/schema.json diff --git a/tooling/api/.gitignore b/tooling/api/.gitignore index 99b0d35f79ae..6b41dba2686f 100644 --- a/tooling/api/.gitignore +++ b/tooling/api/.gitignore @@ -65,4 +65,3 @@ package-lock.json # Documentation output docs/* -!docs/js-api.json From 7af5c64b9f7a2e8341b449b72b7bd9f8ec55099b Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Tue, 8 Aug 2023 14:12:41 -0300 Subject: [PATCH 11/13] use Sound enum --- core/tauri/src/api/notification.rs | 80 ++++++++++++++------- core/tauri/src/endpoints/notification.rs | 35 ++++++++- examples/api/dist/assets/index.js | 64 ++++++++--------- examples/api/src/views/Notifications.svelte | 15 ++-- tooling/api/src/notification.ts | 7 +- 5 files changed, 126 insertions(+), 75 deletions(-) diff --git a/core/tauri/src/api/notification.rs b/core/tauri/src/api/notification.rs index 2ce55b6bb122..938f5d608507 100644 --- a/core/tauri/src/api/notification.rs +++ b/core/tauri/src/api/notification.rs @@ -41,7 +41,49 @@ pub struct Notification { /// The notification identifier identifier: String, /// The notification sound - sound: Option, + sound: Option, +} + +/// Notification sound. +#[derive(Debug)] +pub enum Sound { + /// The default notification sound. + Default, + /// A custom notification sound. + /// + /// ## Platform-specific + /// + /// Each OS has a different sound name so you will need to conditionally specify an appropriate sound + /// based on the OS in use, for a list of sounds see: + /// - **Linux**: can be one of the sounds listed in + /// - **Windows**: can be one of the sounds listed in + /// but without the prefix, for example, if `ms-winsoundevent:Notification.Default` you would use `Default` and + /// if `ms-winsoundevent:Notification.Looping.Alarm2`, you would use `Alarm2`. + /// Windows 7 is not supported, if a sound is provided, it will play the default sound, otherwise it will be silent. + /// - **macOS**: you can specify the name of the sound you'd like to play when the notification is shown. + /// Any of the default sounds (under System Preferences > Sound) can be used, in addition to custom sound files. + /// Be sure that the sound file is under one of the following locations: + /// - `~/Library/Sounds` + /// - `/Library/Sounds` + /// - `/Network/Library/Sounds` + /// - `/System/Library/Sounds` + /// + /// See the [`NSSound`] docs for more information. + /// + /// [`NSSound`]: https://developer.apple.com/documentation/appkit/nssound + Custom(String), +} + +impl From for Sound { + fn from(value: String) -> Self { + Self::Custom(value) + } +} + +impl From<&str> for Sound { + fn from(value: &str) -> Self { + Self::Custom(value.into()) + } } impl Notification { @@ -74,31 +116,11 @@ impl Notification { self } - /// Sets the notification sound. Silent by default. - /// - /// ## Platform-specific - /// - /// Each OS has a different sound name so you will need to conditionally specify an appropriate sound - /// based on the OS in use, for a list of sounds see: - /// - **Linux**: can be one of the sounds listed in - /// - **Windows**: can be one of the sounds listed in - /// but without the prefix, for example, if `ms-winsoundevent:Notification.Default` you would use `Default` and - /// if `ms-winsoundevent:Notification.Looping.Alarm2`, you would use `Alarm2`. - /// Windows 7 is not supported, if a sound is provided, it will play the default sound, otherwise it will be silent. - /// - **macOS**: you can specify the name of the sound you'd like to play when the notification is shown - /// or use `NSUserNotificationDefaultSoundName` to play the default sound. - /// Any of the default sounds (under System Preferences > Sound) can be used, in addition to custom sound files. - /// Be sure that the sound file is under one of the following locations: - /// - `~/Library/Sounds` - /// - `/Library/Sounds` - /// - `/Network/Library/Sounds` - /// - `/System/Library/Sounds` - /// - /// See the [`NSSound`] docs for more information. + /// Sets the notification sound. By default the notification has no sound. /// - /// [`NSSound`]: https://developer.apple.com/documentation/appkit/nssound + /// See [`Sound`] for more information. #[must_use] - pub fn sound(mut self, sound: impl Into) -> Self { + pub fn sound(mut self, sound: impl Into) -> Self { self.sound.replace(sound.into()); self } @@ -140,7 +162,15 @@ impl Notification { notification.auto_icon(); } if let Some(sound) = self.sound { - notification.sound_name(&sound); + notification.sound_name(&match sound { + #[cfg(target_os = "macos")] + Sound::Default => "NSUserNotificationDefaultSoundName".to_string(), + #[cfg(windows)] + Sound::Default => "Default".to_string(), + #[cfg(all(unix, not(target_os = "macos")))] + Sound::Default => "message-new-instant".to_string(), + Sound::Custom(c) => c, + }); } #[cfg(windows)] { diff --git a/core/tauri/src/endpoints/notification.rs b/core/tauri/src/endpoints/notification.rs index 55df0fdf93d7..de19b0d7abcb 100644 --- a/core/tauri/src/endpoints/notification.rs +++ b/core/tauri/src/endpoints/notification.rs @@ -6,7 +6,7 @@ use super::InvokeContext; use crate::Runtime; -use serde::Deserialize; +use serde::{Deserialize, Deserializer}; use tauri_macros::{command_enum, module_command_handler, CommandModule}; #[cfg(notification_all)] @@ -17,8 +17,37 @@ const PERMISSION_GRANTED: &str = "granted"; // `Denied` response from `request_permission`. Matches the Web API return value. const PERMISSION_DENIED: &str = "denied"; +#[derive(Debug)] +pub enum SoundDto { + Default, + Custom(String), +} + +impl From for crate::api::notification::Sound { + fn from(sound: SoundDto) -> Self { + match sound { + SoundDto::Default => crate::api::notification::Sound::Default, + SoundDto::Custom(s) => crate::api::notification::Sound::Custom(s), + } + } +} + +impl<'de> Deserialize<'de> for SoundDto { + fn deserialize(deserializer: D) -> Result + where + D: Deserializer<'de>, + { + let s = String::deserialize(deserializer)?; + if s.to_lowercase() == "default" { + Ok(Self::Default) + } else { + Ok(Self::Custom(s)) + } + } +} + /// The options for the notification API. -#[derive(Debug, Clone, Deserialize)] +#[derive(Debug, Deserialize)] pub struct NotificationOptions { /// The notification title. pub title: String, @@ -27,7 +56,7 @@ pub struct NotificationOptions { /// The notification icon. pub icon: Option, /// The notification sound. - pub sound: Option, + pub sound: Option, } /// The API descriptor. diff --git a/examples/api/dist/assets/index.js b/examples/api/dist/assets/index.js index e77d722291fd..19c036dd653c 100644 --- a/examples/api/dist/assets/index.js +++ b/examples/api/dist/assets/index.js @@ -1,50 +1,50 @@ -const wo=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerpolicy&&(o.referrerPolicy=l.referrerpolicy),l.crossorigin==="use-credentials"?o.credentials="include":l.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}};wo();function V(){}function Os(e){return e()}function is(){return Object.create(null)}function oe(e){e.forEach(Os)}function ko(e){return typeof e=="function"}function pe(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let ti;function Mo(e,t){return ti||(ti=document.createElement("a")),ti.href=t,e===ti.href}function To(e){return Object.keys(e).length===0}function Co(e,...t){if(e==null)return V;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Rs(e,t,n){e.$$.on_destroy.push(Co(t,n))}function s(e,t){e.appendChild(t)}function h(e,t,n){e.insertBefore(t,n||null)}function p(e){e.parentNode.removeChild(e)}function yt(e,t){for(let n=0;ne.removeEventListener(t,n,i)}function ai(e){return function(t){return t.preventDefault(),e.call(this,t)}}function r(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function se(e){return e===""?null:+e}function So(e){return Array.from(e.childNodes)}function Z(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function q(e,t){e.value=t==null?"":t}function Nt(e,t){for(let n=0;n{si.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function ui(e){e&&e.c()}function $t(e,t,n,i){const{fragment:l,on_mount:o,on_destroy:u,after_update:d}=e.$$;l&&l.m(t,n),i||Ft(()=>{const c=o.map(Os).filter(ko);u?u.push(...c):oe(c),e.$$.on_mount=[]}),d.forEach(Ft)}function xt(e,t){const n=e.$$;n.fragment!==null&&(oe(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Do(e,t){e.$$.dirty[0]===-1&&(Yt.push(e),Eo(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const y=v.length?v[0]:_;return f.ctx&&l(f.ctx[k],f.ctx[k]=y)&&(!f.skip_bound&&f.bound[k]&&f.bound[k](y),g&&Do(e,k)),_}):[],f.update(),g=!0,oe(f.before_update),f.fragment=i?i(f.ctx):!1,t.target){if(t.hydrate){const k=So(t.target);f.fragment&&f.fragment.l(k),k.forEach(p)}else f.fragment&&f.fragment.c();t.intro&&Ce(e.$$.fragment),$t(e,t.target,t.anchor,t.customElement),Ns()}Qt(c)}class ye{$destroy(){xt(this,1),this.$destroy=V}$on(t,n){const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const l=i.indexOf(n);l!==-1&&i.splice(l,1)}}$set(t){this.$$set&&!To(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const It=[];function Fs(e,t=V){let n;const i=new Set;function l(d){if(pe(e,d)&&(e=d,n)){const c=!It.length;for(const f of i)f[1](),It.push(f,e);if(c){for(let f=0;f{i.delete(f),i.size===0&&(n(),n=null)}}return{set:l,update:o,subscribe:u}}var Po=Object.defineProperty,Me=(e,t)=>{for(var n in t)Po(e,n,{get:t[n],enumerable:!0})},Oo={};Me(Oo,{convertFileSrc:()=>Hs,invoke:()=>ci,transformCallback:()=>vt});function Ro(){return window.crypto.getRandomValues(new Uint32Array(1))[0]}function vt(e,t=!1){let n=Ro(),i=`_${n}`;return Object.defineProperty(window,i,{value:l=>(t&&Reflect.deleteProperty(window,i),e==null?void 0:e(l)),writable:!1,configurable:!0}),n}async function ci(e,t={}){return new Promise((n,i)=>{let l=vt(u=>{n(u),Reflect.deleteProperty(window,`_${o}`)},!0),o=vt(u=>{i(u),Reflect.deleteProperty(window,`_${l}`)},!0);window.__TAURI_IPC__({cmd:e,callback:l,error:o,...t})})}function Hs(e,t="asset"){let n=encodeURIComponent(e);return navigator.userAgent.includes("Windows")?`https://${t}.localhost/${n}`:`${t}://localhost/${n}`}async function A(e){return ci("tauri",e)}var Io={};Me(Io,{Child:()=>js,Command:()=>Ki,EventEmitter:()=>oi,open:()=>Qi});async function No(e,t,n=[],i){return typeof n=="object"&&Object.freeze(n),A({__tauriModule:"Shell",message:{cmd:"execute",program:t,args:n,options:i,onEventFn:vt(e)}})}var oi=class{constructor(){this.eventListeners=Object.create(null)}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}on(e,t){return e in this.eventListeners?this.eventListeners[e].push(t):this.eventListeners[e]=[t],this}once(e,t){let n=(...i)=>{this.removeListener(e,n),t(...i)};return this.addListener(e,n)}off(e,t){return e in this.eventListeners&&(this.eventListeners[e]=this.eventListeners[e].filter(n=>n!==t)),this}removeAllListeners(e){return e?delete this.eventListeners[e]:this.eventListeners=Object.create(null),this}emit(e,...t){if(e in this.eventListeners){let n=this.eventListeners[e];for(let i of n)i(...t);return!0}return!1}listenerCount(e){return e in this.eventListeners?this.eventListeners[e].length:0}prependListener(e,t){return e in this.eventListeners?this.eventListeners[e].unshift(t):this.eventListeners[e]=[t],this}prependOnceListener(e,t){let n=(...i)=>{this.removeListener(e,n),t(...i)};return this.prependListener(e,n)}},js=class{constructor(e){this.pid=e}async write(e){return A({__tauriModule:"Shell",message:{cmd:"stdinWrite",pid:this.pid,buffer:typeof e=="string"?e:Array.from(e)}})}async kill(){return A({__tauriModule:"Shell",message:{cmd:"killChild",pid:this.pid}})}},Ki=class extends oi{constructor(e,t=[],n){super(),this.stdout=new oi,this.stderr=new oi,this.program=e,this.args=typeof t=="string"?[t]:t,this.options=n!=null?n:{}}static sidecar(e,t=[],n){let i=new Ki(e,t,n);return i.options.sidecar=!0,i}async spawn(){return No(e=>{switch(e.event){case"Error":this.emit("error",e.payload);break;case"Terminated":this.emit("close",e.payload);break;case"Stdout":this.stdout.emit("data",e.payload);break;case"Stderr":this.stderr.emit("data",e.payload);break}},this.program,this.args,this.options).then(e=>new js(e))}async execute(){return new Promise((e,t)=>{this.on("error",t);let n=[],i=[];this.stdout.on("data",l=>{n.push(l)}),this.stderr.on("data",l=>{i.push(l)}),this.on("close",l=>{e({code:l.code,signal:l.signal,stdout:n.join(` +const wo=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerpolicy&&(o.referrerPolicy=l.referrerpolicy),l.crossorigin==="use-credentials"?o.credentials="include":l.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}};wo();function G(){}function Os(e){return e()}function is(){return Object.create(null)}function oe(e){e.forEach(Os)}function ko(e){return typeof e=="function"}function pe(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let ti;function Mo(e,t){return ti||(ti=document.createElement("a")),ti.href=t,e===ti.href}function Co(e){return Object.keys(e).length===0}function To(e,...t){if(e==null)return G;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Rs(e,t,n){e.$$.on_destroy.push(To(t,n))}function s(e,t){e.appendChild(t)}function h(e,t,n){e.insertBefore(t,n||null)}function p(e){e.parentNode.removeChild(e)}function yt(e,t){for(let n=0;ne.removeEventListener(t,n,i)}function ai(e){return function(t){return t.preventDefault(),e.call(this,t)}}function r(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function se(e){return e===""?null:+e}function So(e){return Array.from(e.childNodes)}function Q(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function q(e,t){e.value=t==null?"":t}function It(e,t){for(let n=0;n{si.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function ui(e){e&&e.c()}function Zt(e,t,n,i){const{fragment:l,on_mount:o,on_destroy:u,after_update:d}=e.$$;l&&l.m(t,n),i||Ft(()=>{const c=o.map(Os).filter(ko);u?u.push(...c):oe(c),e.$$.on_mount=[]}),d.forEach(Ft)}function xt(e,t){const n=e.$$;n.fragment!==null&&(oe(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Po(e,t){e.$$.dirty[0]===-1&&(Yt.push(e),Eo(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const y=v.length?v[0]:_;return f.ctx&&l(f.ctx[k],f.ctx[k]=y)&&(!f.skip_bound&&f.bound[k]&&f.bound[k](y),g&&Po(e,k)),_}):[],f.update(),g=!0,oe(f.before_update),f.fragment=i?i(f.ctx):!1,t.target){if(t.hydrate){const k=So(t.target);f.fragment&&f.fragment.l(k),k.forEach(p)}else f.fragment&&f.fragment.c();t.intro&&Te(e.$$.fragment),Zt(e,t.target,t.anchor,t.customElement),Is()}Kt(c)}class ye{$destroy(){xt(this,1),this.$destroy=G}$on(t,n){const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const l=i.indexOf(n);l!==-1&&i.splice(l,1)}}$set(t){this.$$set&&!Co(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Nt=[];function Fs(e,t=G){let n;const i=new Set;function l(d){if(pe(e,d)&&(e=d,n)){const c=!Nt.length;for(const f of i)f[1](),Nt.push(f,e);if(c){for(let f=0;f{i.delete(f),i.size===0&&(n(),n=null)}}return{set:l,update:o,subscribe:u}}var Do=Object.defineProperty,ke=(e,t)=>{for(var n in t)Do(e,n,{get:t[n],enumerable:!0})},Oo={};ke(Oo,{convertFileSrc:()=>Hs,invoke:()=>ci,transformCallback:()=>vt});function Ro(){return window.crypto.getRandomValues(new Uint32Array(1))[0]}function vt(e,t=!1){let n=Ro(),i=`_${n}`;return Object.defineProperty(window,i,{value:l=>(t&&Reflect.deleteProperty(window,i),e==null?void 0:e(l)),writable:!1,configurable:!0}),n}async function ci(e,t={}){return new Promise((n,i)=>{let l=vt(u=>{n(u),Reflect.deleteProperty(window,`_${o}`)},!0),o=vt(u=>{i(u),Reflect.deleteProperty(window,`_${l}`)},!0);window.__TAURI_IPC__({cmd:e,callback:l,error:o,...t})})}function Hs(e,t="asset"){let n=encodeURIComponent(e);return navigator.userAgent.includes("Windows")?`https://${t}.localhost/${n}`:`${t}://localhost/${n}`}async function T(e){return ci("tauri",e)}var No={};ke(No,{Child:()=>js,Command:()=>$i,EventEmitter:()=>oi,open:()=>Ki});async function Io(e,t,n=[],i){return typeof n=="object"&&Object.freeze(n),T({__tauriModule:"Shell",message:{cmd:"execute",program:t,args:n,options:i,onEventFn:vt(e)}})}var oi=class{constructor(){this.eventListeners=Object.create(null)}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}on(e,t){return e in this.eventListeners?this.eventListeners[e].push(t):this.eventListeners[e]=[t],this}once(e,t){let n=(...i)=>{this.removeListener(e,n),t(...i)};return this.addListener(e,n)}off(e,t){return e in this.eventListeners&&(this.eventListeners[e]=this.eventListeners[e].filter(n=>n!==t)),this}removeAllListeners(e){return e?delete this.eventListeners[e]:this.eventListeners=Object.create(null),this}emit(e,...t){if(e in this.eventListeners){let n=this.eventListeners[e];for(let i of n)i(...t);return!0}return!1}listenerCount(e){return e in this.eventListeners?this.eventListeners[e].length:0}prependListener(e,t){return e in this.eventListeners?this.eventListeners[e].unshift(t):this.eventListeners[e]=[t],this}prependOnceListener(e,t){let n=(...i)=>{this.removeListener(e,n),t(...i)};return this.prependListener(e,n)}},js=class{constructor(e){this.pid=e}async write(e){return T({__tauriModule:"Shell",message:{cmd:"stdinWrite",pid:this.pid,buffer:typeof e=="string"?e:Array.from(e)}})}async kill(){return T({__tauriModule:"Shell",message:{cmd:"killChild",pid:this.pid}})}},$i=class extends oi{constructor(e,t=[],n){super(),this.stdout=new oi,this.stderr=new oi,this.program=e,this.args=typeof t=="string"?[t]:t,this.options=n!=null?n:{}}static sidecar(e,t=[],n){let i=new $i(e,t,n);return i.options.sidecar=!0,i}async spawn(){return Io(e=>{switch(e.event){case"Error":this.emit("error",e.payload);break;case"Terminated":this.emit("close",e.payload);break;case"Stdout":this.stdout.emit("data",e.payload);break;case"Stderr":this.stderr.emit("data",e.payload);break}},this.program,this.args,this.options).then(e=>new js(e))}async execute(){return new Promise((e,t)=>{this.on("error",t);let n=[],i=[];this.stdout.on("data",l=>{n.push(l)}),this.stderr.on("data",l=>{i.push(l)}),this.on("close",l=>{e({code:l.code,signal:l.signal,stdout:n.join(` `),stderr:i.join(` -`)})}),this.spawn().catch(t)})}};async function Qi(e,t){return A({__tauriModule:"Shell",message:{cmd:"open",path:e,with:t}})}var Fo={};Me(Fo,{TauriEvent:()=>Vs,emit:()=>_i,listen:()=>tn,once:()=>Gs});async function Us(e,t){return A({__tauriModule:"Event",message:{cmd:"unlisten",event:e,eventId:t}})}async function qs(e,t,n){await A({__tauriModule:"Event",message:{cmd:"emit",event:e,windowLabel:t,payload:n}})}async function Zi(e,t,n){return A({__tauriModule:"Event",message:{cmd:"listen",event:e,windowLabel:t,handler:vt(n)}}).then(i=>async()=>Us(e,i))}async function Bs(e,t,n){return Zi(e,t,i=>{n(i),Us(e,i.id).catch(()=>{})})}var Vs=(e=>(e.WINDOW_RESIZED="tauri://resize",e.WINDOW_MOVED="tauri://move",e.WINDOW_CLOSE_REQUESTED="tauri://close-requested",e.WINDOW_CREATED="tauri://window-created",e.WINDOW_DESTROYED="tauri://destroyed",e.WINDOW_FOCUS="tauri://focus",e.WINDOW_BLUR="tauri://blur",e.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",e.WINDOW_THEME_CHANGED="tauri://theme-changed",e.WINDOW_FILE_DROP="tauri://file-drop",e.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",e.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",e.MENU="tauri://menu",e.CHECK_UPDATE="tauri://update",e.UPDATE_AVAILABLE="tauri://update-available",e.INSTALL_UPDATE="tauri://update-install",e.STATUS_UPDATE="tauri://update-status",e.DOWNLOAD_PROGRESS="tauri://update-download-progress",e))(Vs||{});async function tn(e,t){return Zi(e,null,t)}async function Gs(e,t){return Bs(e,null,t)}async function _i(e,t){return qs(e,void 0,t)}var Ho={};Me(Ho,{CloseRequestedEvent:()=>Ks,LogicalPosition:()=>Js,LogicalSize:()=>di,PhysicalPosition:()=>ot,PhysicalSize:()=>gt,UserAttentionType:()=>$i,WebviewWindow:()=>wt,WebviewWindowHandle:()=>Xs,WindowManager:()=>Ys,appWindow:()=>Ge,availableMonitors:()=>qo,currentMonitor:()=>jo,getAll:()=>Ji,getCurrent:()=>Kt,primaryMonitor:()=>Uo});var di=class{constructor(e,t){this.type="Logical",this.width=e,this.height=t}},gt=class{constructor(e,t){this.type="Physical",this.width=e,this.height=t}toLogical(e){return new di(this.width/e,this.height/e)}},Js=class{constructor(e,t){this.type="Logical",this.x=e,this.y=t}},ot=class{constructor(e,t){this.type="Physical",this.x=e,this.y=t}toLogical(e){return new Js(this.x/e,this.y/e)}},$i=(e=>(e[e.Critical=1]="Critical",e[e.Informational=2]="Informational",e))($i||{});function Kt(){return new wt(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0})}function Ji(){return window.__TAURI_METADATA__.__windows.map(e=>new wt(e.label,{skip:!0}))}var ss=["tauri://created","tauri://error"],Xs=class{constructor(e){this.label=e,this.listeners=Object.create(null)}async listen(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let n=this.listeners[e];n.splice(n.indexOf(t),1)}):Zi(e,this.label,t)}async once(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let n=this.listeners[e];n.splice(n.indexOf(t),1)}):Bs(e,this.label,t)}async emit(e,t){if(ss.includes(e)){for(let n of this.listeners[e]||[])n({event:e,id:-1,windowLabel:this.label,payload:t});return Promise.resolve()}return qs(e,this.label,t)}_handleTauriEvent(e,t){return ss.includes(e)?(e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t],!0):!1}},Ys=class extends Xs{async scaleFactor(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"scaleFactor"}}}})}async innerPosition(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerPosition"}}}}).then(({x:e,y:t})=>new ot(e,t))}async outerPosition(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerPosition"}}}}).then(({x:e,y:t})=>new ot(e,t))}async innerSize(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerSize"}}}}).then(({width:e,height:t})=>new gt(e,t))}async outerSize(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerSize"}}}}).then(({width:e,height:t})=>new gt(e,t))}async isFullscreen(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFullscreen"}}}})}async isMinimized(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimized"}}}})}async isMaximized(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximized"}}}})}async isFocused(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFocused"}}}})}async isDecorated(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isDecorated"}}}})}async isResizable(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isResizable"}}}})}async isMaximizable(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximizable"}}}})}async isMinimizable(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimizable"}}}})}async isClosable(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isClosable"}}}})}async isVisible(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isVisible"}}}})}async title(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"title"}}}})}async theme(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"theme"}}}})}async center(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"center"}}}})}async requestUserAttention(e){let t=null;return e&&(e===1?t={type:"Critical"}:t={type:"Informational"}),A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"requestUserAttention",payload:t}}}})}async setResizable(e){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setResizable",payload:e}}}})}async setMaximizable(e){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaximizable",payload:e}}}})}async setMinimizable(e){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinimizable",payload:e}}}})}async setClosable(e){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setClosable",payload:e}}}})}async setTitle(e){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setTitle",payload:e}}}})}async maximize(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"maximize"}}}})}async unmaximize(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unmaximize"}}}})}async toggleMaximize(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"toggleMaximize"}}}})}async minimize(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"minimize"}}}})}async unminimize(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unminimize"}}}})}async show(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"show"}}}})}async hide(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"hide"}}}})}async close(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"close"}}}})}async setDecorations(e){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setDecorations",payload:e}}}})}async setAlwaysOnTop(e){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setAlwaysOnTop",payload:e}}}})}async setContentProtected(e){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setContentProtected",payload:e}}}})}async setSize(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSize",payload:{type:e.type,data:{width:e.width,height:e.height}}}}}})}async setMinSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setMaxSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaxSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setFullscreen(e){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFullscreen",payload:e}}}})}async setFocus(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFocus"}}}})}async setIcon(e){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIcon",payload:{icon:typeof e=="string"?e:Array.from(e)}}}}})}async setSkipTaskbar(e){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSkipTaskbar",payload:e}}}})}async setCursorGrab(e){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorGrab",payload:e}}}})}async setCursorVisible(e){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorVisible",payload:e}}}})}async setCursorIcon(e){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorIcon",payload:e}}}})}async setCursorPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setIgnoreCursorEvents(e){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIgnoreCursorEvents",payload:e}}}})}async startDragging(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"startDragging"}}}})}async onResized(e){return this.listen("tauri://resize",t=>{t.payload=Zs(t.payload),e(t)})}async onMoved(e){return this.listen("tauri://move",t=>{t.payload=Qs(t.payload),e(t)})}async onCloseRequested(e){return this.listen("tauri://close-requested",t=>{let n=new Ks(t);Promise.resolve(e(n)).then(()=>{if(!n.isPreventDefault())return this.close()})})}async onFocusChanged(e){let t=await this.listen("tauri://focus",i=>{e({...i,payload:!0})}),n=await this.listen("tauri://blur",i=>{e({...i,payload:!1})});return()=>{t(),n()}}async onScaleChanged(e){return this.listen("tauri://scale-change",e)}async onMenuClicked(e){return this.listen("tauri://menu",e)}async onFileDropEvent(e){let t=await this.listen("tauri://file-drop",l=>{e({...l,payload:{type:"drop",paths:l.payload}})}),n=await this.listen("tauri://file-drop-hover",l=>{e({...l,payload:{type:"hover",paths:l.payload}})}),i=await this.listen("tauri://file-drop-cancelled",l=>{e({...l,payload:{type:"cancel"}})});return()=>{t(),n(),i()}}async onThemeChanged(e){return this.listen("tauri://theme-changed",e)}},Ks=class{constructor(e){this._preventDefault=!1,this.event=e.event,this.windowLabel=e.windowLabel,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}},wt=class extends Ys{constructor(e,t={}){super(e),t!=null&&t.skip||A({__tauriModule:"Window",message:{cmd:"createWebview",data:{options:{label:e,...t}}}}).then(async()=>this.emit("tauri://created")).catch(async n=>this.emit("tauri://error",n))}static getByLabel(e){return Ji().some(t=>t.label===e)?new wt(e,{skip:!0}):null}static async getFocusedWindow(){for(let e of Ji())if(await e.isFocused())return e;return null}},Ge;"__TAURI_METADATA__"in window?Ge=new wt(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0}):(console.warn(`Could not find "window.__TAURI_METADATA__". The "appWindow" value will reference the "main" window label. -Note that this is not an issue if running this frontend on a browser instead of a Tauri window.`),Ge=new wt("main",{skip:!0}));function xi(e){return e===null?null:{name:e.name,scaleFactor:e.scaleFactor,position:Qs(e.position),size:Zs(e.size)}}function Qs(e){return new ot(e.x,e.y)}function Zs(e){return new gt(e.width,e.height)}async function jo(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"currentMonitor"}}}}).then(xi)}async function Uo(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"primaryMonitor"}}}}).then(xi)}async function qo(){return A({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"availableMonitors"}}}}).then(e=>e.map(xi))}function Bo(){return navigator.appVersion.includes("Win")}var Vo={};Me(Vo,{EOL:()=>Go,arch:()=>Xo,locale:()=>Ko,platform:()=>$s,tempdir:()=>Yo,type:()=>xs,version:()=>Jo});var Go=Bo()?`\r +`)})}),this.spawn().catch(t)})}};async function Ki(e,t){return T({__tauriModule:"Shell",message:{cmd:"open",path:e,with:t}})}var Fo={};ke(Fo,{TauriEvent:()=>Gs,emit:()=>_i,listen:()=>tn,once:()=>Vs});async function Us(e,t){return T({__tauriModule:"Event",message:{cmd:"unlisten",event:e,eventId:t}})}async function qs(e,t,n){await T({__tauriModule:"Event",message:{cmd:"emit",event:e,windowLabel:t,payload:n}})}async function Qi(e,t,n){return T({__tauriModule:"Event",message:{cmd:"listen",event:e,windowLabel:t,handler:vt(n)}}).then(i=>async()=>Us(e,i))}async function Bs(e,t,n){return Qi(e,t,i=>{n(i),Us(e,i.id).catch(()=>{})})}var Gs=(e=>(e.WINDOW_RESIZED="tauri://resize",e.WINDOW_MOVED="tauri://move",e.WINDOW_CLOSE_REQUESTED="tauri://close-requested",e.WINDOW_CREATED="tauri://window-created",e.WINDOW_DESTROYED="tauri://destroyed",e.WINDOW_FOCUS="tauri://focus",e.WINDOW_BLUR="tauri://blur",e.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",e.WINDOW_THEME_CHANGED="tauri://theme-changed",e.WINDOW_FILE_DROP="tauri://file-drop",e.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",e.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",e.MENU="tauri://menu",e.CHECK_UPDATE="tauri://update",e.UPDATE_AVAILABLE="tauri://update-available",e.INSTALL_UPDATE="tauri://update-install",e.STATUS_UPDATE="tauri://update-status",e.DOWNLOAD_PROGRESS="tauri://update-download-progress",e))(Gs||{});async function tn(e,t){return Qi(e,null,t)}async function Vs(e,t){return Bs(e,null,t)}async function _i(e,t){return qs(e,void 0,t)}var Ho={};ke(Ho,{CloseRequestedEvent:()=>$s,LogicalPosition:()=>Js,LogicalSize:()=>di,PhysicalPosition:()=>ot,PhysicalSize:()=>gt,UserAttentionType:()=>Zi,WebviewWindow:()=>wt,WebviewWindowHandle:()=>Xs,WindowManager:()=>Ys,appWindow:()=>Ve,availableMonitors:()=>qo,currentMonitor:()=>jo,getAll:()=>Ji,getCurrent:()=>$t,primaryMonitor:()=>Uo});var di=class{constructor(e,t){this.type="Logical",this.width=e,this.height=t}},gt=class{constructor(e,t){this.type="Physical",this.width=e,this.height=t}toLogical(e){return new di(this.width/e,this.height/e)}},Js=class{constructor(e,t){this.type="Logical",this.x=e,this.y=t}},ot=class{constructor(e,t){this.type="Physical",this.x=e,this.y=t}toLogical(e){return new Js(this.x/e,this.y/e)}},Zi=(e=>(e[e.Critical=1]="Critical",e[e.Informational=2]="Informational",e))(Zi||{});function $t(){return new wt(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0})}function Ji(){return window.__TAURI_METADATA__.__windows.map(e=>new wt(e.label,{skip:!0}))}var ss=["tauri://created","tauri://error"],Xs=class{constructor(e){this.label=e,this.listeners=Object.create(null)}async listen(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let n=this.listeners[e];n.splice(n.indexOf(t),1)}):Qi(e,this.label,t)}async once(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let n=this.listeners[e];n.splice(n.indexOf(t),1)}):Bs(e,this.label,t)}async emit(e,t){if(ss.includes(e)){for(let n of this.listeners[e]||[])n({event:e,id:-1,windowLabel:this.label,payload:t});return Promise.resolve()}return qs(e,this.label,t)}_handleTauriEvent(e,t){return ss.includes(e)?(e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t],!0):!1}},Ys=class extends Xs{async scaleFactor(){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"scaleFactor"}}}})}async innerPosition(){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerPosition"}}}}).then(({x:e,y:t})=>new ot(e,t))}async outerPosition(){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerPosition"}}}}).then(({x:e,y:t})=>new ot(e,t))}async innerSize(){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerSize"}}}}).then(({width:e,height:t})=>new gt(e,t))}async outerSize(){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerSize"}}}}).then(({width:e,height:t})=>new gt(e,t))}async isFullscreen(){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFullscreen"}}}})}async isMinimized(){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimized"}}}})}async isMaximized(){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximized"}}}})}async isFocused(){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFocused"}}}})}async isDecorated(){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isDecorated"}}}})}async isResizable(){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isResizable"}}}})}async isMaximizable(){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximizable"}}}})}async isMinimizable(){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimizable"}}}})}async isClosable(){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isClosable"}}}})}async isVisible(){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isVisible"}}}})}async title(){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"title"}}}})}async theme(){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"theme"}}}})}async center(){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"center"}}}})}async requestUserAttention(e){let t=null;return e&&(e===1?t={type:"Critical"}:t={type:"Informational"}),T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"requestUserAttention",payload:t}}}})}async setResizable(e){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setResizable",payload:e}}}})}async setMaximizable(e){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaximizable",payload:e}}}})}async setMinimizable(e){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinimizable",payload:e}}}})}async setClosable(e){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setClosable",payload:e}}}})}async setTitle(e){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setTitle",payload:e}}}})}async maximize(){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"maximize"}}}})}async unmaximize(){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unmaximize"}}}})}async toggleMaximize(){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"toggleMaximize"}}}})}async minimize(){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"minimize"}}}})}async unminimize(){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unminimize"}}}})}async show(){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"show"}}}})}async hide(){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"hide"}}}})}async close(){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"close"}}}})}async setDecorations(e){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setDecorations",payload:e}}}})}async setAlwaysOnTop(e){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setAlwaysOnTop",payload:e}}}})}async setContentProtected(e){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setContentProtected",payload:e}}}})}async setSize(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSize",payload:{type:e.type,data:{width:e.width,height:e.height}}}}}})}async setMinSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setMaxSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaxSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setFullscreen(e){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFullscreen",payload:e}}}})}async setFocus(){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFocus"}}}})}async setIcon(e){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIcon",payload:{icon:typeof e=="string"?e:Array.from(e)}}}}})}async setSkipTaskbar(e){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSkipTaskbar",payload:e}}}})}async setCursorGrab(e){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorGrab",payload:e}}}})}async setCursorVisible(e){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorVisible",payload:e}}}})}async setCursorIcon(e){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorIcon",payload:e}}}})}async setCursorPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setIgnoreCursorEvents(e){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIgnoreCursorEvents",payload:e}}}})}async startDragging(){return T({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"startDragging"}}}})}async onResized(e){return this.listen("tauri://resize",t=>{t.payload=Qs(t.payload),e(t)})}async onMoved(e){return this.listen("tauri://move",t=>{t.payload=Ks(t.payload),e(t)})}async onCloseRequested(e){return this.listen("tauri://close-requested",t=>{let n=new $s(t);Promise.resolve(e(n)).then(()=>{if(!n.isPreventDefault())return this.close()})})}async onFocusChanged(e){let t=await this.listen("tauri://focus",i=>{e({...i,payload:!0})}),n=await this.listen("tauri://blur",i=>{e({...i,payload:!1})});return()=>{t(),n()}}async onScaleChanged(e){return this.listen("tauri://scale-change",e)}async onMenuClicked(e){return this.listen("tauri://menu",e)}async onFileDropEvent(e){let t=await this.listen("tauri://file-drop",l=>{e({...l,payload:{type:"drop",paths:l.payload}})}),n=await this.listen("tauri://file-drop-hover",l=>{e({...l,payload:{type:"hover",paths:l.payload}})}),i=await this.listen("tauri://file-drop-cancelled",l=>{e({...l,payload:{type:"cancel"}})});return()=>{t(),n(),i()}}async onThemeChanged(e){return this.listen("tauri://theme-changed",e)}},$s=class{constructor(e){this._preventDefault=!1,this.event=e.event,this.windowLabel=e.windowLabel,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}},wt=class extends Ys{constructor(e,t={}){super(e),t!=null&&t.skip||T({__tauriModule:"Window",message:{cmd:"createWebview",data:{options:{label:e,...t}}}}).then(async()=>this.emit("tauri://created")).catch(async n=>this.emit("tauri://error",n))}static getByLabel(e){return Ji().some(t=>t.label===e)?new wt(e,{skip:!0}):null}static async getFocusedWindow(){for(let e of Ji())if(await e.isFocused())return e;return null}},Ve;"__TAURI_METADATA__"in window?Ve=new wt(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0}):(console.warn(`Could not find "window.__TAURI_METADATA__". The "appWindow" value will reference the "main" window label. +Note that this is not an issue if running this frontend on a browser instead of a Tauri window.`),Ve=new wt("main",{skip:!0}));function xi(e){return e===null?null:{name:e.name,scaleFactor:e.scaleFactor,position:Ks(e.position),size:Qs(e.size)}}function Ks(e){return new ot(e.x,e.y)}function Qs(e){return new gt(e.width,e.height)}async function jo(){return T({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"currentMonitor"}}}}).then(xi)}async function Uo(){return T({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"primaryMonitor"}}}}).then(xi)}async function qo(){return T({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"availableMonitors"}}}}).then(e=>e.map(xi))}function Bo(){return navigator.appVersion.includes("Win")}var Go={};ke(Go,{EOL:()=>Vo,arch:()=>Yo,locale:()=>Ko,platform:()=>Zs,tempdir:()=>$o,type:()=>Xo,version:()=>Jo});var Vo=Bo()?`\r `:` -`;async function $s(){return A({__tauriModule:"Os",message:{cmd:"platform"}})}async function Jo(){return A({__tauriModule:"Os",message:{cmd:"version"}})}async function xs(){return A({__tauriModule:"Os",message:{cmd:"osType"}})}async function Xo(){return A({__tauriModule:"Os",message:{cmd:"arch"}})}async function Yo(){return A({__tauriModule:"Os",message:{cmd:"tempdir"}})}async function Ko(){return A({__tauriModule:"Os",message:{cmd:"locale"}})}var Qo={};Me(Qo,{getName:()=>to,getTauriVersion:()=>no,getVersion:()=>eo,hide:()=>lo,show:()=>io});async function eo(){return A({__tauriModule:"App",message:{cmd:"getAppVersion"}})}async function to(){return A({__tauriModule:"App",message:{cmd:"getAppName"}})}async function no(){return A({__tauriModule:"App",message:{cmd:"getTauriVersion"}})}async function io(){return A({__tauriModule:"App",message:{cmd:"show"}})}async function lo(){return A({__tauriModule:"App",message:{cmd:"hide"}})}var Zo={};Me(Zo,{exit:()=>so,relaunch:()=>el});async function so(e=0){return A({__tauriModule:"Process",message:{cmd:"exit",exitCode:e}})}async function el(){return A({__tauriModule:"Process",message:{cmd:"relaunch"}})}function $o(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,S,P,I,O,j,W,T,C,E,M,H;return{c(){t=a("p"),t.innerHTML=`This is a demo of Tauri's API capabilities using the @tauri-apps/api package. It's used as the main validation app, serving as the test bed of our +`;async function Zs(){return T({__tauriModule:"Os",message:{cmd:"platform"}})}async function Jo(){return T({__tauriModule:"Os",message:{cmd:"version"}})}async function Xo(){return T({__tauriModule:"Os",message:{cmd:"osType"}})}async function Yo(){return T({__tauriModule:"Os",message:{cmd:"arch"}})}async function $o(){return T({__tauriModule:"Os",message:{cmd:"tempdir"}})}async function Ko(){return T({__tauriModule:"Os",message:{cmd:"locale"}})}var Qo={};ke(Qo,{getName:()=>eo,getTauriVersion:()=>to,getVersion:()=>xs,hide:()=>io,show:()=>no});async function xs(){return T({__tauriModule:"App",message:{cmd:"getAppVersion"}})}async function eo(){return T({__tauriModule:"App",message:{cmd:"getAppName"}})}async function to(){return T({__tauriModule:"App",message:{cmd:"getTauriVersion"}})}async function no(){return T({__tauriModule:"App",message:{cmd:"show"}})}async function io(){return T({__tauriModule:"App",message:{cmd:"hide"}})}var Zo={};ke(Zo,{exit:()=>lo,relaunch:()=>el});async function lo(e=0){return T({__tauriModule:"Process",message:{cmd:"exit",exitCode:e}})}async function el(){return T({__tauriModule:"Process",message:{cmd:"relaunch"}})}function xo(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,S,D,N,O,j,W,C,A,E,M,H;return{c(){t=a("p"),t.innerHTML=`This is a demo of Tauri's API capabilities using the @tauri-apps/api package. It's used as the main validation app, serving as the test bed of our development process. In the future, this app will be used on Tauri's integration tests.`,n=m(),i=a("br"),l=m(),o=a("br"),u=m(),d=a("pre"),c=z("App name: "),f=a("code"),g=z(e[2]),k=z(` App version: `),_=a("code"),v=z(e[0]),y=z(` -Tauri version: `),b=a("code"),S=z(e[1]),P=z(` -`),I=m(),O=a("br"),j=m(),W=a("div"),T=a("button"),T.textContent="Close application",C=m(),E=a("button"),E.textContent="Relaunch application",r(T,"class","btn"),r(E,"class","btn"),r(W,"class","flex flex-wrap gap-1 shadow-")},m(U,J){h(U,t,J),h(U,n,J),h(U,i,J),h(U,l,J),h(U,o,J),h(U,u,J),h(U,d,J),s(d,c),s(d,f),s(f,g),s(d,k),s(d,_),s(_,v),s(d,y),s(d,b),s(b,S),s(d,P),h(U,I,J),h(U,O,J),h(U,j,J),h(U,W,J),s(W,T),s(W,C),s(W,E),M||(H=[L(T,"click",e[3]),L(E,"click",e[4])],M=!0)},p(U,[J]){J&4&&Z(g,U[2]),J&1&&Z(v,U[0]),J&2&&Z(S,U[1])},i:V,o:V,d(U){U&&p(t),U&&p(n),U&&p(i),U&&p(l),U&&p(o),U&&p(u),U&&p(d),U&&p(I),U&&p(O),U&&p(j),U&&p(W),M=!1,oe(H)}}}function xo(e,t,n){let i="0.0.0",l="0.0.0",o="Unknown";to().then(c=>{n(2,o=c)}),eo().then(c=>{n(0,i=c)}),no().then(c=>{n(1,l=c)});async function u(){await so()}async function d(){await el()}return[i,l,o,u,d]}class ea extends ye{constructor(t){super(),ge(this,t,xo,$o,pe,{})}}var ta={};Me(ta,{getMatches:()=>oo});async function oo(){return A({__tauriModule:"Cli",message:{cmd:"cliMatches"}})}function na(e){let t,n,i,l,o,u,d,c,f,g,k,_,v;return{c(){t=a("p"),t.innerHTML=`This binary can be run from the terminal and takes the following arguments: +Tauri version: `),b=a("code"),S=z(e[1]),D=z(` +`),N=m(),O=a("br"),j=m(),W=a("div"),C=a("button"),C.textContent="Close application",A=m(),E=a("button"),E.textContent="Relaunch application",r(C,"class","btn"),r(E,"class","btn"),r(W,"class","flex flex-wrap gap-1 shadow-")},m(U,J){h(U,t,J),h(U,n,J),h(U,i,J),h(U,l,J),h(U,o,J),h(U,u,J),h(U,d,J),s(d,c),s(d,f),s(f,g),s(d,k),s(d,_),s(_,v),s(d,y),s(d,b),s(b,S),s(d,D),h(U,N,J),h(U,O,J),h(U,j,J),h(U,W,J),s(W,C),s(W,A),s(W,E),M||(H=[L(C,"click",e[3]),L(E,"click",e[4])],M=!0)},p(U,[J]){J&4&&Q(g,U[2]),J&1&&Q(v,U[0]),J&2&&Q(S,U[1])},i:G,o:G,d(U){U&&p(t),U&&p(n),U&&p(i),U&&p(l),U&&p(o),U&&p(u),U&&p(d),U&&p(N),U&&p(O),U&&p(j),U&&p(W),M=!1,oe(H)}}}function ea(e,t,n){let i="0.0.0",l="0.0.0",o="Unknown";eo().then(c=>{n(2,o=c)}),xs().then(c=>{n(0,i=c)}),to().then(c=>{n(1,l=c)});async function u(){await lo()}async function d(){await el()}return[i,l,o,u,d]}class ta extends ye{constructor(t){super(),ge(this,t,ea,xo,pe,{})}}var na={};ke(na,{getMatches:()=>so});async function so(){return T({__tauriModule:"Cli",message:{cmd:"cliMatches"}})}function ia(e){let t,n,i,l,o,u,d,c,f,g,k,_,v;return{c(){t=a("p"),t.innerHTML=`This binary can be run from the terminal and takes the following arguments:
  --config <PATH>
   --theme <light|dark|system>
   --verbose
- Additionally, it has a update --background subcommand.`,n=m(),i=a("br"),l=m(),o=a("div"),o.textContent="Note that the arguments are only parsed, not implemented.",u=m(),d=a("br"),c=m(),f=a("br"),g=m(),k=a("button"),k.textContent="Get matches",r(o,"class","note"),r(k,"class","btn"),r(k,"id","cli-matches")},m(y,b){h(y,t,b),h(y,n,b),h(y,i,b),h(y,l,b),h(y,o,b),h(y,u,b),h(y,d,b),h(y,c,b),h(y,f,b),h(y,g,b),h(y,k,b),_||(v=L(k,"click",e[0]),_=!0)},p:V,i:V,o:V,d(y){y&&p(t),y&&p(n),y&&p(i),y&&p(l),y&&p(o),y&&p(u),y&&p(d),y&&p(c),y&&p(f),y&&p(g),y&&p(k),_=!1,v()}}}function ia(e,t,n){let{onMessage:i}=t;function l(){oo().then(i).catch(i)}return e.$$set=o=>{"onMessage"in o&&n(1,i=o.onMessage)},[l,i]}class la extends ye{constructor(t){super(),ge(this,t,ia,na,pe,{onMessage:1})}}function sa(e){let t,n,i,l,o,u,d,c;return{c(){t=a("div"),n=a("button"),n.textContent="Call Log API",i=m(),l=a("button"),l.textContent="Call Request (async) API",o=m(),u=a("button"),u.textContent="Send event to Rust",r(n,"class","btn"),r(n,"id","log"),r(l,"class","btn"),r(l,"id","request"),r(u,"class","btn"),r(u,"id","event")},m(f,g){h(f,t,g),s(t,n),s(t,i),s(t,l),s(t,o),s(t,u),d||(c=[L(n,"click",e[0]),L(l,"click",e[1]),L(u,"click",e[2])],d=!0)},p:V,i:V,o:V,d(f){f&&p(t),d=!1,oe(c)}}}function oa(e,t,n){let{onMessage:i}=t,l;_t(async()=>{l=await tn("rust-event",i)}),Yi(()=>{l&&l()});function o(){ci("log_operation",{event:"tauri-click",payload:"this payload is optional because we used Option in Rust"})}function u(){ci("perform_request",{endpoint:"dummy endpoint arg",body:{id:5,name:"test"}}).then(i).catch(i)}function d(){_i("js-event","this is the payload string")}return e.$$set=c=>{"onMessage"in c&&n(3,i=c.onMessage)},[o,u,d,i]}class aa extends ye{constructor(t){super(),ge(this,t,oa,sa,pe,{onMessage:3})}}var ra={};Me(ra,{ask:()=>ro,confirm:()=>ca,message:()=>ua,open:()=>tl,save:()=>ao});async function tl(e={}){return typeof e=="object"&&Object.freeze(e),A({__tauriModule:"Dialog",message:{cmd:"openDialog",options:e}})}async function ao(e={}){return typeof e=="object"&&Object.freeze(e),A({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:e}})}async function ua(e,t){var i,l;let n=typeof t=="string"?{title:t}:t;return A({__tauriModule:"Dialog",message:{cmd:"messageDialog",message:e.toString(),title:(i=n==null?void 0:n.title)==null?void 0:i.toString(),type:n==null?void 0:n.type,buttonLabel:(l=n==null?void 0:n.okLabel)==null?void 0:l.toString()}})}async function ro(e,t){var i,l,o,u,d;let n=typeof t=="string"?{title:t}:t;return A({__tauriModule:"Dialog",message:{cmd:"askDialog",message:e.toString(),title:(i=n==null?void 0:n.title)==null?void 0:i.toString(),type:n==null?void 0:n.type,buttonLabels:[(o=(l=n==null?void 0:n.okLabel)==null?void 0:l.toString())!=null?o:"Yes",(d=(u=n==null?void 0:n.cancelLabel)==null?void 0:u.toString())!=null?d:"No"]}})}async function ca(e,t){var i,l,o,u,d;let n=typeof t=="string"?{title:t}:t;return A({__tauriModule:"Dialog",message:{cmd:"confirmDialog",message:e.toString(),title:(i=n==null?void 0:n.title)==null?void 0:i.toString(),type:n==null?void 0:n.type,buttonLabels:[(o=(l=n==null?void 0:n.okLabel)==null?void 0:l.toString())!=null?o:"Ok",(d=(u=n==null?void 0:n.cancelLabel)==null?void 0:u.toString())!=null?d:"Cancel"]}})}var da={};Me(da,{BaseDirectory:()=>en,Dir:()=>en,copyFile:()=>_a,createDir:()=>ma,exists:()=>ya,readBinaryFile:()=>nl,readDir:()=>uo,readTextFile:()=>fa,removeDir:()=>ha,removeFile:()=>ba,renameFile:()=>ga,writeBinaryFile:()=>pa,writeFile:()=>Xi,writeTextFile:()=>Xi});var en=(e=>(e[e.Audio=1]="Audio",e[e.Cache=2]="Cache",e[e.Config=3]="Config",e[e.Data=4]="Data",e[e.LocalData=5]="LocalData",e[e.Desktop=6]="Desktop",e[e.Document=7]="Document",e[e.Download=8]="Download",e[e.Executable=9]="Executable",e[e.Font=10]="Font",e[e.Home=11]="Home",e[e.Picture=12]="Picture",e[e.Public=13]="Public",e[e.Runtime=14]="Runtime",e[e.Template=15]="Template",e[e.Video=16]="Video",e[e.Resource=17]="Resource",e[e.App=18]="App",e[e.Log=19]="Log",e[e.Temp=20]="Temp",e[e.AppConfig=21]="AppConfig",e[e.AppData=22]="AppData",e[e.AppLocalData=23]="AppLocalData",e[e.AppCache=24]="AppCache",e[e.AppLog=25]="AppLog",e))(en||{});async function fa(e,t={}){return A({__tauriModule:"Fs",message:{cmd:"readTextFile",path:e,options:t}})}async function nl(e,t={}){let n=await A({__tauriModule:"Fs",message:{cmd:"readFile",path:e,options:t}});return Uint8Array.from(n)}async function Xi(e,t,n){typeof n=="object"&&Object.freeze(n),typeof e=="object"&&Object.freeze(e);let i={path:"",contents:""},l=n;return typeof e=="string"?i.path=e:(i.path=e.path,i.contents=e.contents),typeof t=="string"?i.contents=t!=null?t:"":l=t,A({__tauriModule:"Fs",message:{cmd:"writeFile",path:i.path,contents:Array.from(new TextEncoder().encode(i.contents)),options:l}})}async function pa(e,t,n){typeof n=="object"&&Object.freeze(n),typeof e=="object"&&Object.freeze(e);let i={path:"",contents:[]},l=n;return typeof e=="string"?i.path=e:(i.path=e.path,i.contents=e.contents),t&&"dir"in t?l=t:typeof e=="string"&&(i.contents=t!=null?t:[]),A({__tauriModule:"Fs",message:{cmd:"writeFile",path:i.path,contents:Array.from(i.contents instanceof ArrayBuffer?new Uint8Array(i.contents):i.contents),options:l}})}async function uo(e,t={}){return A({__tauriModule:"Fs",message:{cmd:"readDir",path:e,options:t}})}async function ma(e,t={}){return A({__tauriModule:"Fs",message:{cmd:"createDir",path:e,options:t}})}async function ha(e,t={}){return A({__tauriModule:"Fs",message:{cmd:"removeDir",path:e,options:t}})}async function _a(e,t,n={}){return A({__tauriModule:"Fs",message:{cmd:"copyFile",source:e,destination:t,options:n}})}async function ba(e,t={}){return A({__tauriModule:"Fs",message:{cmd:"removeFile",path:e,options:t}})}async function ga(e,t,n={}){return A({__tauriModule:"Fs",message:{cmd:"renameFile",oldPath:e,newPath:t,options:n}})}async function ya(e,t={}){return A({__tauriModule:"Fs",message:{cmd:"exists",path:e,options:t}})}function va(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,S,P,I,O,j,W,T,C,E;return{c(){t=a("div"),n=a("input"),i=m(),l=a("input"),o=m(),u=a("br"),d=m(),c=a("div"),f=a("input"),g=m(),k=a("label"),k.textContent="Multiple",_=m(),v=a("div"),y=a("input"),b=m(),S=a("label"),S.textContent="Directory",P=m(),I=a("br"),O=m(),j=a("button"),j.textContent="Open dialog",W=m(),T=a("button"),T.textContent="Open save dialog",r(n,"class","input"),r(n,"id","dialog-default-path"),r(n,"placeholder","Default path"),r(l,"class","input"),r(l,"id","dialog-filter"),r(l,"placeholder","Extensions filter, comma-separated"),r(t,"class","flex gap-2 children:grow"),r(f,"type","checkbox"),r(f,"id","dialog-multiple"),r(k,"for","dialog-multiple"),r(y,"type","checkbox"),r(y,"id","dialog-directory"),r(S,"for","dialog-directory"),r(j,"class","btn"),r(j,"id","open-dialog"),r(T,"class","btn"),r(T,"id","save-dialog")},m(M,H){h(M,t,H),s(t,n),q(n,e[0]),s(t,i),s(t,l),q(l,e[1]),h(M,o,H),h(M,u,H),h(M,d,H),h(M,c,H),s(c,f),f.checked=e[2],s(c,g),s(c,k),h(M,_,H),h(M,v,H),s(v,y),y.checked=e[3],s(v,b),s(v,S),h(M,P,H),h(M,I,H),h(M,O,H),h(M,j,H),h(M,W,H),h(M,T,H),C||(E=[L(n,"input",e[8]),L(l,"input",e[9]),L(f,"change",e[10]),L(y,"change",e[11]),L(j,"click",e[4]),L(T,"click",e[5])],C=!0)},p(M,[H]){H&1&&n.value!==M[0]&&q(n,M[0]),H&2&&l.value!==M[1]&&q(l,M[1]),H&4&&(f.checked=M[2]),H&8&&(y.checked=M[3])},i:V,o:V,d(M){M&&p(t),M&&p(o),M&&p(u),M&&p(d),M&&p(c),M&&p(_),M&&p(v),M&&p(P),M&&p(I),M&&p(O),M&&p(j),M&&p(W),M&&p(T),C=!1,oe(E)}}}function wa(e,t){const n=new Blob([e],{type:"application/octet-binary"}),i=new FileReader;i.onload=function(l){const o=l.target.result;t(o.substr(o.indexOf(",")+1))},i.readAsDataURL(n)}function ka(e,t,n){let{onMessage:i}=t,{insecureRenderHtml:l}=t,o=null,u=null,d=!1,c=!1;function f(){tl({title:"My wonderful open dialog",defaultPath:o,filters:u?[{name:"Tauri Example",extensions:u.split(",").map(b=>b.trim())}]:[],multiple:d,directory:c}).then(function(b){if(Array.isArray(b))i(b);else{const S=b,P=S.match(/\S+\.\S+$/g);nl(S).then(function(I){P&&(S.includes(".png")||S.includes(".jpg"))?wa(new Uint8Array(I),function(O){const j="data:image/png;base64,"+O;l('')}):i(b)}).catch(i(b))}}).catch(i)}function g(){ao({title:"My wonderful save dialog",defaultPath:o,filters:u?[{name:"Tauri Example",extensions:u.split(",").map(b=>b.trim())}]:[]}).then(i).catch(i)}function k(){o=this.value,n(0,o)}function _(){u=this.value,n(1,u)}function v(){d=this.checked,n(2,d)}function y(){c=this.checked,n(3,c)}return e.$$set=b=>{"onMessage"in b&&n(6,i=b.onMessage),"insecureRenderHtml"in b&&n(7,l=b.insecureRenderHtml)},[o,u,d,c,f,g,i,l,k,_,v,y]}class Ma extends ye{constructor(t){super(),ge(this,t,ka,va,pe,{onMessage:6,insecureRenderHtml:7})}}function os(e,t,n){const i=e.slice();return i[9]=t[n],i}function as(e){let t,n=e[9][0]+"",i;return{c(){t=a("option"),i=z(n),t.__value=e[9][1],t.value=t.__value},m(l,o){h(l,t,o),s(t,i)},p:V,d(l){l&&p(t)}}}function Ta(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,S,P,I,O,j=e[2],W=[];for(let T=0;TisNaN(parseInt(_))).map(_=>[_,en[_]]);function c(){const _=o.match(/\S+\.\S+$/g),v={dir:rs()};(_?nl(o,v):uo(o,v)).then(function(b){if(_)if(o.includes(".png")||o.includes(".jpg"))Ca(new Uint8Array(b),function(S){const P="data:image/png;base64,"+S;l('')});else{const S=String.fromCharCode.apply(null,b);l(''),setTimeout(()=>{const P=document.getElementById("file-response");P.value=S,document.getElementById("file-save").addEventListener("click",function(){Xi(o,P.value,{dir:rs()}).catch(i)})})}else i(b)}).catch(i)}function f(){n(1,u.src=Hs(o),u)}function g(){o=this.value,n(0,o)}function k(_){ri[_?"unshift":"push"](()=>{u=_,n(1,u)})}return e.$$set=_=>{"onMessage"in _&&n(5,i=_.onMessage),"insecureRenderHtml"in _&&n(6,l=_.insecureRenderHtml)},[o,u,d,c,f,i,l,g,k]}class Sa extends ye{constructor(t){super(),ge(this,t,Aa,Ta,pe,{onMessage:5,insecureRenderHtml:6})}}var La={};Me(La,{Body:()=>at,Client:()=>fo,Response:()=>co,ResponseType:()=>il,fetch:()=>Ea,getClient:()=>fi});var il=(e=>(e[e.JSON=1]="JSON",e[e.Text=2]="Text",e[e.Binary=3]="Binary",e))(il||{});async function za(e){let t={},n=async(i,l)=>{if(l!==null){let o;typeof l=="string"?o=l:l instanceof Uint8Array||Array.isArray(l)?o=Array.from(l):l instanceof File?o={file:Array.from(new Uint8Array(await l.arrayBuffer())),mime:l.type,fileName:l.name}:typeof l.file=="string"?o={file:l.file,mime:l.mime,fileName:l.fileName}:o={file:Array.from(l.file),mime:l.mime,fileName:l.fileName},t[String(i)]=o}};if(e instanceof FormData)for(let[i,l]of e)await n(i,l);else for(let[i,l]of Object.entries(e))await n(i,l);return t}var at=class{constructor(e,t){this.type=e,this.payload=t}static form(e){return new at("Form",e)}static json(e){return new at("Json",e)}static text(e){return new at("Text",e)}static bytes(e){return new at("Bytes",Array.from(e instanceof ArrayBuffer?new Uint8Array(e):e))}},co=class{constructor(e){this.url=e.url,this.status=e.status,this.ok=this.status>=200&&this.status<300,this.headers=e.headers,this.rawHeaders=e.rawHeaders,this.data=e.data}},fo=class{constructor(e){this.id=e}async drop(){return A({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})}async request(e){var n;let t=!e.responseType||e.responseType===1;return t&&(e.responseType=2),((n=e.body)==null?void 0:n.type)==="Form"&&(e.body.payload=await za(e.body.payload)),A({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:e}}).then(i=>{let l=new co(i);if(t){try{l.data=JSON.parse(l.data)}catch(o){if(l.ok&&l.data==="")l.data={};else if(l.ok)throw Error(`Failed to parse response \`${l.data}\` as JSON: ${o}; - try setting the \`responseType\` option to \`ResponseType.Text\` or \`ResponseType.Binary\` if the API does not return a JSON response.`)}return l}return l})}async get(e,t){return this.request({method:"GET",url:e,...t})}async post(e,t,n){return this.request({method:"POST",url:e,body:t,...n})}async put(e,t,n){return this.request({method:"PUT",url:e,body:t,...n})}async patch(e,t){return this.request({method:"PATCH",url:e,...t})}async delete(e,t){return this.request({method:"DELETE",url:e,...t})}};async function fi(e){return A({__tauriModule:"Http",message:{cmd:"createClient",options:e}}).then(t=>new fo(t))}var Bi=null;async function Ea(e,t){var n;return Bi===null&&(Bi=await fi()),Bi.request({url:e,method:(n=t==null?void 0:t.method)!=null?n:"GET",...t})}function us(e,t,n){const i=e.slice();return i[12]=t[n],i[14]=n,i}function cs(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,S,P,I=e[5],O=[];for(let C=0;CHe(O[C],1,1,()=>{O[C]=null});let W=!e[3]&&ms(),T=!e[3]&&e[8]&&hs();return{c(){t=a("span"),n=a("span"),i=z(e[6]),l=m(),o=a("ul");for(let C=0;C{g[y]=null}),hi(),o=g[l],o?o.p(_,v):(o=g[l]=f[l](_),o.c()),Ce(o,1),o.m(t,u))},i(_){d||(Ce(o),d=!0)},o(_){He(o),d=!1},d(_){_&&p(t),c&&c.d(),g[l].d()}}}function ms(e){let t;return{c(){t=a("span"),t.textContent=",",r(t,"class","comma svelte-gbh3pt")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function hs(e){let t;return{c(){t=a("span"),t.textContent=",",r(t,"class","comma svelte-gbh3pt")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function Pa(e){let t,n,i=e[5].length&&cs(e);return{c(){i&&i.c(),t=pi()},m(l,o){i&&i.m(l,o),h(l,t,o),n=!0},p(l,[o]){l[5].length?i?(i.p(l,o),o&32&&Ce(i,1)):(i=cs(l),i.c(),Ce(i,1),i.m(t.parentNode,t)):i&&(mi(),He(i,1,1,()=>{i=null}),hi())},i(l){n||(Ce(i),n=!0)},o(l){He(i),n=!1},d(l){i&&i.d(l),l&&p(t)}}}const Oa="...";function Ra(e,t,n){let{json:i}=t,{depth:l=1/0}=t,{_lvl:o=0}=t,{_last:u=!0}=t;const d=b=>b===null?"null":typeof b;let c,f,g,k,_;const v=b=>{switch(d(b)){case"string":return`"${b}"`;case"function":return"f () {...}";case"symbol":return b.toString();default:return b}},y=()=>{n(8,_=!_)};return e.$$set=b=>{"json"in b&&n(0,i=b.json),"depth"in b&&n(1,l=b.depth),"_lvl"in b&&n(2,o=b._lvl),"_last"in b&&n(3,u=b._last)},e.$$.update=()=>{e.$$.dirty&17&&(n(5,c=d(i)==="object"?Object.keys(i):[]),n(4,f=Array.isArray(i)),n(6,g=f?"[":"{"),n(7,k=f?"]":"}")),e.$$.dirty&6&&n(8,_=le[9].call(n)),r(k,"class","input h-auto w-100%"),r(k,"id","request-body"),r(k,"placeholder","Request body"),r(k,"rows","5"),r(b,"class","btn"),r(b,"id","make-request"),r(T,"class","input"),r(E,"class","input"),r(W,"class","flex gap-2 children:grow"),r(x,"type","checkbox"),r(X,"class","btn"),r(X,"type","button")},m(D,G){h(D,t,G),s(t,n),s(n,i),s(n,l),s(n,o),s(n,u),s(n,d),Nt(n,e[0]),s(t,c),s(t,f),s(t,g),s(t,k),q(k,e[1]),s(t,_),s(t,v),s(t,y),s(t,b),h(D,S,G),h(D,P,G),h(D,I,G),h(D,O,G),h(D,j,G),h(D,W,G),s(W,T),q(T,e[2]),s(W,C),s(W,E),q(E,e[3]),h(D,M,G),h(D,H,G),h(D,U,G),h(D,J,G),s(J,x),x.checked=e[5],s(J,me),h(D,te,G),h(D,Y,G),h(D,de,G),h(D,$,G),h(D,N,G),h(D,X,G),h(D,K,G),h(D,ae,G),h(D,ne,G),h(D,he,G),h(D,_e,G),$t(fe,D,G),re=!0,Ae||(Se=[L(n,"change",e[9]),L(k,"input",e[10]),L(t,"submit",ai(e[6])),L(T,"input",e[11]),L(E,"input",e[12]),L(x,"change",e[13]),L(X,"click",e[7])],Ae=!0)},p(D,[G]){G&1&&Nt(n,D[0]),G&2&&q(k,D[1]),G&4&&T.value!==D[2]&&q(T,D[2]),G&8&&E.value!==D[3]&&q(E,D[3]),G&32&&(x.checked=D[5]);const Le={};G&16&&(Le.json=D[4]),fe.$set(Le)},i(D){re||(Ce(fe.$$.fragment,D),re=!0)},o(D){He(fe.$$.fragment,D),re=!1},d(D){D&&p(t),D&&p(S),D&&p(P),D&&p(I),D&&p(O),D&&p(j),D&&p(W),D&&p(M),D&&p(H),D&&p(U),D&&p(J),D&&p(te),D&&p(Y),D&&p(de),D&&p($),D&&p(N),D&&p(X),D&&p(K),D&&p(ae),D&&p(ne),D&&p(he),D&&p(_e),xt(fe,D),Ae=!1,oe(Se)}}}function Na(e,t,n){let i="GET",l="",{onMessage:o}=t;async function u(){const P=await fi().catch(j=>{throw o(j),j}),O={url:"http://localhost:3003",method:i||"GET"||"GET"};l.startsWith("{")&&l.endsWith("}")||l.startsWith("[")&&l.endsWith("]")?O.body=at.json(JSON.parse(l)):l!==""&&(O.body=at.text(l)),P.request(O).then(o).catch(o)}let d="baz",c="qux",f=null,g=!0;async function k(){const P=await fi().catch(I=>{throw o(I),I});n(4,f=await P.request({url:"http://localhost:3003",method:"POST",body:at.form({foo:d,bar:c}),headers:g?{"Content-Type":"multipart/form-data"}:void 0,responseType:il.Text}))}function _(){i=Vi(this),n(0,i)}function v(){l=this.value,n(1,l)}function y(){d=this.value,n(2,d)}function b(){c=this.value,n(3,c)}function S(){g=this.checked,n(5,g)}return e.$$set=P=>{"onMessage"in P&&n(8,o=P.onMessage)},[i,l,d,c,f,g,u,k,o,_,v,y,b,S]}class Fa extends ye{constructor(t){super(),ge(this,t,Na,Ia,pe,{onMessage:8})}}function Ha(e){let t,n,i;return{c(){t=a("button"),t.textContent="Send test notification",r(t,"class","btn"),r(t,"id","notification")},m(l,o){h(l,t,o),n||(i=L(t,"click",e[0]),n=!0)},p:V,i:V,o:V,d(l){l&&p(t),n=!1,i()}}}function ja(e,t,n){let{onMessage:i}=t;async function l(){const u=await xs();new Notification("Notification title",{body:"This is the notification body",sound:u==="Windows_NT"?"Default":u==="Linux"?"dialog-information":u==="Darwin"?"NSUserNotificationDefaultSoundName":void 0})}function o(){Notification.permission==="default"?Notification.requestPermission().then(function(u){u==="granted"?l():i("Permission is "+u)}).catch(i):Notification.permission==="granted"?l():i("Permission is denied")}return e.$$set=u=>{"onMessage"in u&&n(1,i=u.onMessage)},[o,i]}class Ua extends ye{constructor(t){super(),ge(this,t,ja,Ha,pe,{onMessage:1})}}function _s(e,t,n){const i=e.slice();return i[75]=t[n],i}function bs(e,t,n){const i=e.slice();return i[78]=t[n],i}function gs(e){let t,n,i,l,o,u,d=Object.keys(e[1]),c=[];for(let f=0;fe[43].call(i))},m(f,g){h(f,t,g),h(f,n,g),h(f,i,g),s(i,l);for(let k=0;kupdate --background subcommand.`,n=m(),i=a("br"),l=m(),o=a("div"),o.textContent="Note that the arguments are only parsed, not implemented.",u=m(),d=a("br"),c=m(),f=a("br"),g=m(),k=a("button"),k.textContent="Get matches",r(o,"class","note"),r(k,"class","btn"),r(k,"id","cli-matches")},m(y,b){h(y,t,b),h(y,n,b),h(y,i,b),h(y,l,b),h(y,o,b),h(y,u,b),h(y,d,b),h(y,c,b),h(y,f,b),h(y,g,b),h(y,k,b),_||(v=L(k,"click",e[0]),_=!0)},p:G,i:G,o:G,d(y){y&&p(t),y&&p(n),y&&p(i),y&&p(l),y&&p(o),y&&p(u),y&&p(d),y&&p(c),y&&p(f),y&&p(g),y&&p(k),_=!1,v()}}}function la(e,t,n){let{onMessage:i}=t;function l(){so().then(i).catch(i)}return e.$$set=o=>{"onMessage"in o&&n(1,i=o.onMessage)},[l,i]}class sa extends ye{constructor(t){super(),ge(this,t,la,ia,pe,{onMessage:1})}}function oa(e){let t,n,i,l,o,u,d,c;return{c(){t=a("div"),n=a("button"),n.textContent="Call Log API",i=m(),l=a("button"),l.textContent="Call Request (async) API",o=m(),u=a("button"),u.textContent="Send event to Rust",r(n,"class","btn"),r(n,"id","log"),r(l,"class","btn"),r(l,"id","request"),r(u,"class","btn"),r(u,"id","event")},m(f,g){h(f,t,g),s(t,n),s(t,i),s(t,l),s(t,o),s(t,u),d||(c=[L(n,"click",e[0]),L(l,"click",e[1]),L(u,"click",e[2])],d=!0)},p:G,i:G,o:G,d(f){f&&p(t),d=!1,oe(c)}}}function aa(e,t,n){let{onMessage:i}=t,l;_t(async()=>{l=await tn("rust-event",i)}),Yi(()=>{l&&l()});function o(){ci("log_operation",{event:"tauri-click",payload:"this payload is optional because we used Option in Rust"})}function u(){ci("perform_request",{endpoint:"dummy endpoint arg",body:{id:5,name:"test"}}).then(i).catch(i)}function d(){_i("js-event","this is the payload string")}return e.$$set=c=>{"onMessage"in c&&n(3,i=c.onMessage)},[o,u,d,i]}class ra extends ye{constructor(t){super(),ge(this,t,aa,oa,pe,{onMessage:3})}}var ua={};ke(ua,{ask:()=>ao,confirm:()=>da,message:()=>ca,open:()=>tl,save:()=>oo});async function tl(e={}){return typeof e=="object"&&Object.freeze(e),T({__tauriModule:"Dialog",message:{cmd:"openDialog",options:e}})}async function oo(e={}){return typeof e=="object"&&Object.freeze(e),T({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:e}})}async function ca(e,t){var i,l;let n=typeof t=="string"?{title:t}:t;return T({__tauriModule:"Dialog",message:{cmd:"messageDialog",message:e.toString(),title:(i=n==null?void 0:n.title)==null?void 0:i.toString(),type:n==null?void 0:n.type,buttonLabel:(l=n==null?void 0:n.okLabel)==null?void 0:l.toString()}})}async function ao(e,t){var i,l,o,u,d;let n=typeof t=="string"?{title:t}:t;return T({__tauriModule:"Dialog",message:{cmd:"askDialog",message:e.toString(),title:(i=n==null?void 0:n.title)==null?void 0:i.toString(),type:n==null?void 0:n.type,buttonLabels:[(o=(l=n==null?void 0:n.okLabel)==null?void 0:l.toString())!=null?o:"Yes",(d=(u=n==null?void 0:n.cancelLabel)==null?void 0:u.toString())!=null?d:"No"]}})}async function da(e,t){var i,l,o,u,d;let n=typeof t=="string"?{title:t}:t;return T({__tauriModule:"Dialog",message:{cmd:"confirmDialog",message:e.toString(),title:(i=n==null?void 0:n.title)==null?void 0:i.toString(),type:n==null?void 0:n.type,buttonLabels:[(o=(l=n==null?void 0:n.okLabel)==null?void 0:l.toString())!=null?o:"Ok",(d=(u=n==null?void 0:n.cancelLabel)==null?void 0:u.toString())!=null?d:"Cancel"]}})}var fa={};ke(fa,{BaseDirectory:()=>en,Dir:()=>en,copyFile:()=>ba,createDir:()=>ha,exists:()=>va,readBinaryFile:()=>nl,readDir:()=>ro,readTextFile:()=>pa,removeDir:()=>_a,removeFile:()=>ga,renameFile:()=>ya,writeBinaryFile:()=>ma,writeFile:()=>Xi,writeTextFile:()=>Xi});var en=(e=>(e[e.Audio=1]="Audio",e[e.Cache=2]="Cache",e[e.Config=3]="Config",e[e.Data=4]="Data",e[e.LocalData=5]="LocalData",e[e.Desktop=6]="Desktop",e[e.Document=7]="Document",e[e.Download=8]="Download",e[e.Executable=9]="Executable",e[e.Font=10]="Font",e[e.Home=11]="Home",e[e.Picture=12]="Picture",e[e.Public=13]="Public",e[e.Runtime=14]="Runtime",e[e.Template=15]="Template",e[e.Video=16]="Video",e[e.Resource=17]="Resource",e[e.App=18]="App",e[e.Log=19]="Log",e[e.Temp=20]="Temp",e[e.AppConfig=21]="AppConfig",e[e.AppData=22]="AppData",e[e.AppLocalData=23]="AppLocalData",e[e.AppCache=24]="AppCache",e[e.AppLog=25]="AppLog",e))(en||{});async function pa(e,t={}){return T({__tauriModule:"Fs",message:{cmd:"readTextFile",path:e,options:t}})}async function nl(e,t={}){let n=await T({__tauriModule:"Fs",message:{cmd:"readFile",path:e,options:t}});return Uint8Array.from(n)}async function Xi(e,t,n){typeof n=="object"&&Object.freeze(n),typeof e=="object"&&Object.freeze(e);let i={path:"",contents:""},l=n;return typeof e=="string"?i.path=e:(i.path=e.path,i.contents=e.contents),typeof t=="string"?i.contents=t!=null?t:"":l=t,T({__tauriModule:"Fs",message:{cmd:"writeFile",path:i.path,contents:Array.from(new TextEncoder().encode(i.contents)),options:l}})}async function ma(e,t,n){typeof n=="object"&&Object.freeze(n),typeof e=="object"&&Object.freeze(e);let i={path:"",contents:[]},l=n;return typeof e=="string"?i.path=e:(i.path=e.path,i.contents=e.contents),t&&"dir"in t?l=t:typeof e=="string"&&(i.contents=t!=null?t:[]),T({__tauriModule:"Fs",message:{cmd:"writeFile",path:i.path,contents:Array.from(i.contents instanceof ArrayBuffer?new Uint8Array(i.contents):i.contents),options:l}})}async function ro(e,t={}){return T({__tauriModule:"Fs",message:{cmd:"readDir",path:e,options:t}})}async function ha(e,t={}){return T({__tauriModule:"Fs",message:{cmd:"createDir",path:e,options:t}})}async function _a(e,t={}){return T({__tauriModule:"Fs",message:{cmd:"removeDir",path:e,options:t}})}async function ba(e,t,n={}){return T({__tauriModule:"Fs",message:{cmd:"copyFile",source:e,destination:t,options:n}})}async function ga(e,t={}){return T({__tauriModule:"Fs",message:{cmd:"removeFile",path:e,options:t}})}async function ya(e,t,n={}){return T({__tauriModule:"Fs",message:{cmd:"renameFile",oldPath:e,newPath:t,options:n}})}async function va(e,t={}){return T({__tauriModule:"Fs",message:{cmd:"exists",path:e,options:t}})}function wa(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,S,D,N,O,j,W,C,A,E;return{c(){t=a("div"),n=a("input"),i=m(),l=a("input"),o=m(),u=a("br"),d=m(),c=a("div"),f=a("input"),g=m(),k=a("label"),k.textContent="Multiple",_=m(),v=a("div"),y=a("input"),b=m(),S=a("label"),S.textContent="Directory",D=m(),N=a("br"),O=m(),j=a("button"),j.textContent="Open dialog",W=m(),C=a("button"),C.textContent="Open save dialog",r(n,"class","input"),r(n,"id","dialog-default-path"),r(n,"placeholder","Default path"),r(l,"class","input"),r(l,"id","dialog-filter"),r(l,"placeholder","Extensions filter, comma-separated"),r(t,"class","flex gap-2 children:grow"),r(f,"type","checkbox"),r(f,"id","dialog-multiple"),r(k,"for","dialog-multiple"),r(y,"type","checkbox"),r(y,"id","dialog-directory"),r(S,"for","dialog-directory"),r(j,"class","btn"),r(j,"id","open-dialog"),r(C,"class","btn"),r(C,"id","save-dialog")},m(M,H){h(M,t,H),s(t,n),q(n,e[0]),s(t,i),s(t,l),q(l,e[1]),h(M,o,H),h(M,u,H),h(M,d,H),h(M,c,H),s(c,f),f.checked=e[2],s(c,g),s(c,k),h(M,_,H),h(M,v,H),s(v,y),y.checked=e[3],s(v,b),s(v,S),h(M,D,H),h(M,N,H),h(M,O,H),h(M,j,H),h(M,W,H),h(M,C,H),A||(E=[L(n,"input",e[8]),L(l,"input",e[9]),L(f,"change",e[10]),L(y,"change",e[11]),L(j,"click",e[4]),L(C,"click",e[5])],A=!0)},p(M,[H]){H&1&&n.value!==M[0]&&q(n,M[0]),H&2&&l.value!==M[1]&&q(l,M[1]),H&4&&(f.checked=M[2]),H&8&&(y.checked=M[3])},i:G,o:G,d(M){M&&p(t),M&&p(o),M&&p(u),M&&p(d),M&&p(c),M&&p(_),M&&p(v),M&&p(D),M&&p(N),M&&p(O),M&&p(j),M&&p(W),M&&p(C),A=!1,oe(E)}}}function ka(e,t){const n=new Blob([e],{type:"application/octet-binary"}),i=new FileReader;i.onload=function(l){const o=l.target.result;t(o.substr(o.indexOf(",")+1))},i.readAsDataURL(n)}function Ma(e,t,n){let{onMessage:i}=t,{insecureRenderHtml:l}=t,o=null,u=null,d=!1,c=!1;function f(){tl({title:"My wonderful open dialog",defaultPath:o,filters:u?[{name:"Tauri Example",extensions:u.split(",").map(b=>b.trim())}]:[],multiple:d,directory:c}).then(function(b){if(Array.isArray(b))i(b);else{const S=b,D=S.match(/\S+\.\S+$/g);nl(S).then(function(N){D&&(S.includes(".png")||S.includes(".jpg"))?ka(new Uint8Array(N),function(O){const j="data:image/png;base64,"+O;l('')}):i(b)}).catch(i(b))}}).catch(i)}function g(){oo({title:"My wonderful save dialog",defaultPath:o,filters:u?[{name:"Tauri Example",extensions:u.split(",").map(b=>b.trim())}]:[]}).then(i).catch(i)}function k(){o=this.value,n(0,o)}function _(){u=this.value,n(1,u)}function v(){d=this.checked,n(2,d)}function y(){c=this.checked,n(3,c)}return e.$$set=b=>{"onMessage"in b&&n(6,i=b.onMessage),"insecureRenderHtml"in b&&n(7,l=b.insecureRenderHtml)},[o,u,d,c,f,g,i,l,k,_,v,y]}class Ca extends ye{constructor(t){super(),ge(this,t,Ma,wa,pe,{onMessage:6,insecureRenderHtml:7})}}function os(e,t,n){const i=e.slice();return i[9]=t[n],i}function as(e){let t,n=e[9][0]+"",i;return{c(){t=a("option"),i=z(n),t.__value=e[9][1],t.value=t.__value},m(l,o){h(l,t,o),s(t,i)},p:G,d(l){l&&p(t)}}}function Ta(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,S,D,N,O,j=e[2],W=[];for(let C=0;CisNaN(parseInt(_))).map(_=>[_,en[_]]);function c(){const _=o.match(/\S+\.\S+$/g),v={dir:rs()};(_?nl(o,v):ro(o,v)).then(function(b){if(_)if(o.includes(".png")||o.includes(".jpg"))Aa(new Uint8Array(b),function(S){const D="data:image/png;base64,"+S;l('')});else{const S=String.fromCharCode.apply(null,b);l(''),setTimeout(()=>{const D=document.getElementById("file-response");D.value=S,document.getElementById("file-save").addEventListener("click",function(){Xi(o,D.value,{dir:rs()}).catch(i)})})}else i(b)}).catch(i)}function f(){n(1,u.src=Hs(o),u)}function g(){o=this.value,n(0,o)}function k(_){ri[_?"unshift":"push"](()=>{u=_,n(1,u)})}return e.$$set=_=>{"onMessage"in _&&n(5,i=_.onMessage),"insecureRenderHtml"in _&&n(6,l=_.insecureRenderHtml)},[o,u,d,c,f,i,l,g,k]}class La extends ye{constructor(t){super(),ge(this,t,Sa,Ta,pe,{onMessage:5,insecureRenderHtml:6})}}var za={};ke(za,{Body:()=>at,Client:()=>co,Response:()=>uo,ResponseType:()=>il,fetch:()=>Wa,getClient:()=>fi});var il=(e=>(e[e.JSON=1]="JSON",e[e.Text=2]="Text",e[e.Binary=3]="Binary",e))(il||{});async function Ea(e){let t={},n=async(i,l)=>{if(l!==null){let o;typeof l=="string"?o=l:l instanceof Uint8Array||Array.isArray(l)?o=Array.from(l):l instanceof File?o={file:Array.from(new Uint8Array(await l.arrayBuffer())),mime:l.type,fileName:l.name}:typeof l.file=="string"?o={file:l.file,mime:l.mime,fileName:l.fileName}:o={file:Array.from(l.file),mime:l.mime,fileName:l.fileName},t[String(i)]=o}};if(e instanceof FormData)for(let[i,l]of e)await n(i,l);else for(let[i,l]of Object.entries(e))await n(i,l);return t}var at=class{constructor(e,t){this.type=e,this.payload=t}static form(e){return new at("Form",e)}static json(e){return new at("Json",e)}static text(e){return new at("Text",e)}static bytes(e){return new at("Bytes",Array.from(e instanceof ArrayBuffer?new Uint8Array(e):e))}},uo=class{constructor(e){this.url=e.url,this.status=e.status,this.ok=this.status>=200&&this.status<300,this.headers=e.headers,this.rawHeaders=e.rawHeaders,this.data=e.data}},co=class{constructor(e){this.id=e}async drop(){return T({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})}async request(e){var n;let t=!e.responseType||e.responseType===1;return t&&(e.responseType=2),((n=e.body)==null?void 0:n.type)==="Form"&&(e.body.payload=await Ea(e.body.payload)),T({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:e}}).then(i=>{let l=new uo(i);if(t){try{l.data=JSON.parse(l.data)}catch(o){if(l.ok&&l.data==="")l.data={};else if(l.ok)throw Error(`Failed to parse response \`${l.data}\` as JSON: ${o}; + try setting the \`responseType\` option to \`ResponseType.Text\` or \`ResponseType.Binary\` if the API does not return a JSON response.`)}return l}return l})}async get(e,t){return this.request({method:"GET",url:e,...t})}async post(e,t,n){return this.request({method:"POST",url:e,body:t,...n})}async put(e,t,n){return this.request({method:"PUT",url:e,body:t,...n})}async patch(e,t){return this.request({method:"PATCH",url:e,...t})}async delete(e,t){return this.request({method:"DELETE",url:e,...t})}};async function fi(e){return T({__tauriModule:"Http",message:{cmd:"createClient",options:e}}).then(t=>new co(t))}var Bi=null;async function Wa(e,t){var n;return Bi===null&&(Bi=await fi()),Bi.request({url:e,method:(n=t==null?void 0:t.method)!=null?n:"GET",...t})}function us(e,t,n){const i=e.slice();return i[12]=t[n],i[14]=n,i}function cs(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,S,D,N=e[5],O=[];for(let A=0;AHe(O[A],1,1,()=>{O[A]=null});let W=!e[3]&&ms(),C=!e[3]&&e[8]&&hs();return{c(){t=a("span"),n=a("span"),i=z(e[6]),l=m(),o=a("ul");for(let A=0;A{g[y]=null}),hi(),o=g[l],o?o.p(_,v):(o=g[l]=f[l](_),o.c()),Te(o,1),o.m(t,u))},i(_){d||(Te(o),d=!0)},o(_){He(o),d=!1},d(_){_&&p(t),c&&c.d(),g[l].d()}}}function ms(e){let t;return{c(){t=a("span"),t.textContent=",",r(t,"class","comma svelte-gbh3pt")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function hs(e){let t;return{c(){t=a("span"),t.textContent=",",r(t,"class","comma svelte-gbh3pt")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function Oa(e){let t,n,i=e[5].length&&cs(e);return{c(){i&&i.c(),t=pi()},m(l,o){i&&i.m(l,o),h(l,t,o),n=!0},p(l,[o]){l[5].length?i?(i.p(l,o),o&32&&Te(i,1)):(i=cs(l),i.c(),Te(i,1),i.m(t.parentNode,t)):i&&(mi(),He(i,1,1,()=>{i=null}),hi())},i(l){n||(Te(i),n=!0)},o(l){He(i),n=!1},d(l){i&&i.d(l),l&&p(t)}}}const Ra="...";function Na(e,t,n){let{json:i}=t,{depth:l=1/0}=t,{_lvl:o=0}=t,{_last:u=!0}=t;const d=b=>b===null?"null":typeof b;let c,f,g,k,_;const v=b=>{switch(d(b)){case"string":return`"${b}"`;case"function":return"f () {...}";case"symbol":return b.toString();default:return b}},y=()=>{n(8,_=!_)};return e.$$set=b=>{"json"in b&&n(0,i=b.json),"depth"in b&&n(1,l=b.depth),"_lvl"in b&&n(2,o=b._lvl),"_last"in b&&n(3,u=b._last)},e.$$.update=()=>{e.$$.dirty&17&&(n(5,c=d(i)==="object"?Object.keys(i):[]),n(4,f=Array.isArray(i)),n(6,g=f?"[":"{"),n(7,k=f?"]":"}")),e.$$.dirty&6&&n(8,_=le[9].call(n)),r(k,"class","input h-auto w-100%"),r(k,"id","request-body"),r(k,"placeholder","Request body"),r(k,"rows","5"),r(b,"class","btn"),r(b,"id","make-request"),r(C,"class","input"),r(E,"class","input"),r(W,"class","flex gap-2 children:grow"),r(x,"type","checkbox"),r(X,"class","btn"),r(X,"type","button")},m(P,V){h(P,t,V),s(t,n),s(n,i),s(n,l),s(n,o),s(n,u),s(n,d),It(n,e[0]),s(t,c),s(t,f),s(t,g),s(t,k),q(k,e[1]),s(t,_),s(t,v),s(t,y),s(t,b),h(P,S,V),h(P,D,V),h(P,N,V),h(P,O,V),h(P,j,V),h(P,W,V),s(W,C),q(C,e[2]),s(W,A),s(W,E),q(E,e[3]),h(P,M,V),h(P,H,V),h(P,U,V),h(P,J,V),s(J,x),x.checked=e[5],s(J,me),h(P,te,V),h(P,Y,V),h(P,de,V),h(P,Z,V),h(P,I,V),h(P,X,V),h(P,$,V),h(P,ae,V),h(P,ne,V),h(P,he,V),h(P,_e,V),Zt(fe,P,V),re=!0,Ae||(Se=[L(n,"change",e[9]),L(k,"input",e[10]),L(t,"submit",ai(e[6])),L(C,"input",e[11]),L(E,"input",e[12]),L(x,"change",e[13]),L(X,"click",e[7])],Ae=!0)},p(P,[V]){V&1&&It(n,P[0]),V&2&&q(k,P[1]),V&4&&C.value!==P[2]&&q(C,P[2]),V&8&&E.value!==P[3]&&q(E,P[3]),V&32&&(x.checked=P[5]);const Le={};V&16&&(Le.json=P[4]),fe.$set(Le)},i(P){re||(Te(fe.$$.fragment,P),re=!0)},o(P){He(fe.$$.fragment,P),re=!1},d(P){P&&p(t),P&&p(S),P&&p(D),P&&p(N),P&&p(O),P&&p(j),P&&p(W),P&&p(M),P&&p(H),P&&p(U),P&&p(J),P&&p(te),P&&p(Y),P&&p(de),P&&p(Z),P&&p(I),P&&p(X),P&&p($),P&&p(ae),P&&p(ne),P&&p(he),P&&p(_e),xt(fe,P),Ae=!1,oe(Se)}}}function Fa(e,t,n){let i="GET",l="",{onMessage:o}=t;async function u(){const D=await fi().catch(j=>{throw o(j),j}),O={url:"http://localhost:3003",method:i||"GET"||"GET"};l.startsWith("{")&&l.endsWith("}")||l.startsWith("[")&&l.endsWith("]")?O.body=at.json(JSON.parse(l)):l!==""&&(O.body=at.text(l)),D.request(O).then(o).catch(o)}let d="baz",c="qux",f=null,g=!0;async function k(){const D=await fi().catch(N=>{throw o(N),N});n(4,f=await D.request({url:"http://localhost:3003",method:"POST",body:at.form({foo:d,bar:c}),headers:g?{"Content-Type":"multipart/form-data"}:void 0,responseType:il.Text}))}function _(){i=Gi(this),n(0,i)}function v(){l=this.value,n(1,l)}function y(){d=this.value,n(2,d)}function b(){c=this.value,n(3,c)}function S(){g=this.checked,n(5,g)}return e.$$set=D=>{"onMessage"in D&&n(8,o=D.onMessage)},[i,l,d,c,f,g,u,k,o,_,v,y,b,S]}class Ha extends ye{constructor(t){super(),ge(this,t,Fa,Ia,pe,{onMessage:8})}}var ja={};ke(ja,{isPermissionGranted:()=>Ua,requestPermission:()=>qa,sendNotification:()=>po});async function Ua(){return window.Notification.permission!=="default"?Promise.resolve(window.Notification.permission==="granted"):T({__tauriModule:"Notification",message:{cmd:"isNotificationPermissionGranted"}})}async function qa(){return window.Notification.requestPermission()}function po(e){typeof e=="string"?new window.Notification(e):new window.Notification(e.title,e)}function Ba(e){let t,n,i;return{c(){t=a("button"),t.textContent="Send test notification",r(t,"class","btn"),r(t,"id","notification")},m(l,o){h(l,t,o),n||(i=L(t,"click",e[0]),n=!0)},p:G,i:G,o:G,d(l){l&&p(t),n=!1,i()}}}function Ga(e,t,n){let{onMessage:i}=t;async function l(){po({title:"Notification title",body:"This is the notification body",sound:"default"})}function o(){Notification.permission==="default"?Notification.requestPermission().then(function(u){u==="granted"?l():i("Permission is "+u)}).catch(i):Notification.permission==="granted"?l():i("Permission is denied")}return e.$$set=u=>{"onMessage"in u&&n(1,i=u.onMessage)},[o,i]}class Va extends ye{constructor(t){super(),ge(this,t,Ga,Ba,pe,{onMessage:1})}}function _s(e,t,n){const i=e.slice();return i[75]=t[n],i}function bs(e,t,n){const i=e.slice();return i[78]=t[n],i}function gs(e){let t,n,i,l,o,u,d=Object.keys(e[1]),c=[];for(let f=0;fe[43].call(i))},m(f,g){h(f,t,g),h(f,n,g),h(f,i,g),s(i,l);for(let k=0;ke[65].call(Ve)),r(nt,"class","input"),r(nt,"type","number"),r(it,"class","input"),r(it,"type","number"),r(Be,"class","flex gap-2"),r(lt,"class","input grow"),r(lt,"id","title"),r(Jt,"class","btn"),r(Jt,"type","submit"),r(mt,"class","flex gap-1"),r(st,"class","input grow"),r(st,"id","url"),r(Xt,"class","btn"),r(Xt,"id","open-url"),r(ht,"class","flex gap-1"),r(pt,"class","flex flex-col gap-1")},m(w,R){h(w,t,R),h(w,n,R),h(w,i,R),s(i,l),s(i,o),s(i,u),s(i,d),s(i,c),s(i,f),s(i,g),s(i,k),s(i,_),h(w,v,R),h(w,y,R),h(w,b,R),h(w,S,R),s(S,P),s(P,I),s(P,O),O.checked=e[6],s(S,j),s(S,W),s(W,T),s(W,C),C.checked=e[2],s(S,E),s(S,M),s(M,H),s(M,U),U.checked=e[3],s(S,J),s(S,x),s(x,me),s(x,te),te.checked=e[4],s(S,Y),s(S,de),s(de,$),s(de,N),N.checked=e[5],s(S,X),s(S,K),s(K,ae),s(K,ne),ne.checked=e[7],s(S,he),s(S,_e),s(_e,fe),s(_e,re),re.checked=e[8],s(S,Ae),s(S,Se),s(Se,D),s(Se,G),G.checked=e[9],s(S,Le),s(S,ve),s(ve,ue),s(ve,we),we.checked=e[10],h(w,ie,R),h(w,ze,R),h(w,Je,R),h(w,le,R),s(le,ee),s(ee,F),s(F,ce),s(F,B),q(B,e[17]),s(ee,Ne),s(ee,kt),s(kt,nn),s(kt,De),q(De,e[18]),s(le,ln),s(le,Xe),s(Xe,Mt),s(Mt,sn),s(Mt,Pe),q(Pe,e[11]),s(Xe,on),s(Xe,Tt),s(Tt,an),s(Tt,Oe),q(Oe,e[12]),s(le,rn),s(le,Ye),s(Ye,Ct),s(Ct,un),s(Ct,Fe),q(Fe,e[13]),s(Ye,Q),s(Ye,rt),s(rt,Ht),s(rt,Re),q(Re,e[14]),s(le,jt),s(le,je),s(je,ut),s(ut,Ut),s(ut,Ee),q(Ee,e[15]),s(je,qt),s(je,ct),s(ct,Bt),s(ct,We),q(We,e[16]),h(w,At,R),h(w,St,R),h(w,Lt,R),h(w,Te,R),s(Te,Ue),s(Ue,Ie),s(Ie,dt),s(Ie,Vt),s(Ie,ft),s(ft,cn),s(ft,bi),s(Ie,sl),s(Ie,fn),s(fn,ol),s(fn,gi),s(Ue,al),s(Ue,Ke),s(Ke,mn),s(Ke,rl),s(Ke,hn),s(hn,ul),s(hn,yi),s(Ke,cl),s(Ke,bn),s(bn,dl),s(bn,vi),s(Te,fl),s(Te,zt),s(zt,Qe),s(Qe,yn),s(Qe,pl),s(Qe,vn),s(vn,ml),s(vn,wi),s(Qe,hl),s(Qe,kn),s(kn,_l),s(kn,ki),s(zt,bl),s(zt,Ze),s(Ze,Tn),s(Ze,gl),s(Ze,Cn),s(Cn,yl),s(Cn,Mi),s(Ze,vl),s(Ze,Sn),s(Sn,wl),s(Sn,Ti),s(Te,kl),s(Te,Et),s(Et,$e),s($e,zn),s($e,Ml),s($e,En),s(En,Tl),s(En,Ci),s($e,Cl),s($e,Dn),s(Dn,Al),s(Dn,Ai),s(Et,Sl),s(Et,xe),s(xe,On),s(xe,Ll),s(xe,Rn),s(Rn,zl),s(Rn,Si),s(xe,El),s(xe,Nn),s(Nn,Wl),s(Nn,Li),s(Te,Dl),s(Te,Wt),s(Wt,et),s(et,Hn),s(et,Pl),s(et,jn),s(jn,Ol),s(jn,zi),s(et,Rl),s(et,qn),s(qn,Il),s(qn,Ei),s(Wt,Nl),s(Wt,tt),s(tt,Vn),s(tt,Fl),s(tt,Gn),s(Gn,Hl),s(Gn,Wi),s(tt,jl),s(tt,Xn),s(Xn,Ul),s(Xn,Di),h(w,Pi,R),h(w,Oi,R),h(w,Ri,R),h(w,Gt,R),h(w,Ii,R),h(w,qe,R),s(qe,Kn),s(Kn,Dt),Dt.checked=e[19],s(Kn,ql),s(qe,Bl),s(qe,Qn),s(Qn,Pt),Pt.checked=e[20],s(Qn,Vl),s(qe,Gl),s(qe,Zn),s(Zn,Ot),Ot.checked=e[24],s(Zn,Jl),h(w,Ni,R),h(w,Be,R),s(Be,$n),s($n,Xl),s($n,Ve);for(let be=0;be=1,g,k,_,v=f&&gs(e),y=e[1][e[0]]&&vs(e);return{c(){t=a("div"),n=a("div"),i=a("input"),l=m(),o=a("button"),o.textContent="New window",u=m(),d=a("br"),c=m(),v&&v.c(),g=m(),y&&y.c(),r(i,"class","input grow"),r(i,"type","text"),r(i,"placeholder","New Window label.."),r(o,"class","btn"),r(n,"class","flex gap-1"),r(t,"class","flex flex-col children:grow gap-2")},m(b,S){h(b,t,S),s(t,n),s(n,i),q(i,e[25]),s(n,l),s(n,o),s(t,u),s(t,d),s(t,c),v&&v.m(t,null),s(t,g),y&&y.m(t,null),k||(_=[L(i,"input",e[42]),L(o,"click",e[39])],k=!0)},p(b,S){S[0]&33554432&&i.value!==b[25]&&q(i,b[25]),S[0]&2&&(f=Object.keys(b[1]).length>=1),f?v?v.p(b,S):(v=gs(b),v.c(),v.m(t,g)):v&&(v.d(1),v=null),b[1][b[0]]?y?y.p(b,S):(y=vs(b),y.c(),y.m(t,null)):y&&(y.d(1),y=null)},i:V,o:V,d(b){b&&p(t),v&&v.d(),y&&y.d(),k=!1,oe(_)}}}function Ba(e,t,n){let i=Ge.label;const l={[Ge.label]:Ge},o=["default","crosshair","hand","arrow","move","text","wait","help","progress","notAllowed","contextMenu","cell","verticalText","alias","copy","noDrop","grab","grabbing","allScroll","zoomIn","zoomOut","eResize","nResize","neResize","nwResize","sResize","seResize","swResize","wResize","ewResize","nsResize","neswResize","nwseResize","colResize","rowResize"];let{onMessage:u}=t,d,c="https://tauri.app",f=!0,g=!0,k=!0,_=!0,v=!1,y=!0,b=!1,S=!0,P=!1,I=null,O=null,j=null,W=null,T=null,C=null,E=null,M=null,H=1,U=new ot(E,M),J=new ot(E,M),x=new gt(I,O),me=new gt(I,O),te,Y,de=!1,$=!0,N=null,X=null,K="default",ae=!1,ne="Awesome Tauri Example!";function he(){Qi(c)}function _e(){l[i].setTitle(ne)}function fe(){l[i].hide(),setTimeout(l[i].show,2e3)}function re(){l[i].minimize(),setTimeout(l[i].unminimize,2e3)}function Ae(){tl({multiple:!1}).then(Q=>{typeof Q=="string"&&l[i].setIcon(Q)})}function Se(){if(!d)return;const Q=new wt(d);n(1,l[d]=Q,l),Q.once("tauri://error",function(){u("Error creating new webview")})}function D(){l[i].innerSize().then(Q=>{n(30,x=Q),n(11,I=x.width),n(12,O=x.height)}),l[i].outerSize().then(Q=>{n(31,me=Q)})}function G(){l[i].innerPosition().then(Q=>{n(28,U=Q)}),l[i].outerPosition().then(Q=>{n(29,J=Q),n(17,E=J.x),n(18,M=J.y)})}async function Le(Q){!Q||(te&&te(),Y&&Y(),Y=await Q.listen("tauri://move",G),te=await Q.listen("tauri://resize",D))}async function ve(){await l[i].minimize(),await l[i].requestUserAttention($i.Critical),await new Promise(Q=>setTimeout(Q,3e3)),await l[i].requestUserAttention(null)}function ue(){d=this.value,n(25,d)}function we(){i=Vi(this),n(0,i),n(1,l)}const ie=()=>l[i].center();function ze(){v=this.checked,n(6,v)}function Je(){f=this.checked,n(2,f)}function le(){g=this.checked,n(3,g)}function ee(){k=this.checked,n(4,k)}function F(){_=this.checked,n(5,_)}function ce(){y=this.checked,n(7,y)}function B(){b=this.checked,n(8,b)}function Ne(){S=this.checked,n(9,S)}function kt(){P=this.checked,n(10,P)}function nn(){E=se(this.value),n(17,E)}function De(){M=se(this.value),n(18,M)}function ln(){I=se(this.value),n(11,I)}function Xe(){O=se(this.value),n(12,O)}function Mt(){j=se(this.value),n(13,j)}function sn(){W=se(this.value),n(14,W)}function Pe(){T=se(this.value),n(15,T)}function on(){C=se(this.value),n(16,C)}function Tt(){de=this.checked,n(19,de)}function an(){$=this.checked,n(20,$)}function Oe(){ae=this.checked,n(24,ae)}function rn(){K=Vi(this),n(23,K),n(33,o)}function Ye(){N=se(this.value),n(21,N)}function Ct(){X=se(this.value),n(22,X)}function un(){ne=this.value,n(32,ne)}function Fe(){c=this.value,n(26,c)}return e.$$set=Q=>{"onMessage"in Q&&n(41,u=Q.onMessage)},e.$$.update=()=>{var Q,rt,Ht,Re,jt,je,ut,Ut,Ee,qt,ct,Bt,We,At,St,Lt,Te,Ue,Ie,dt,Vt,ft;e.$$.dirty[0]&3&&(l[i],G(),D()),e.$$.dirty[0]&7&&((Q=l[i])==null||Q.setResizable(f)),e.$$.dirty[0]&11&&((rt=l[i])==null||rt.setMaximizable(g)),e.$$.dirty[0]&19&&((Ht=l[i])==null||Ht.setMinimizable(k)),e.$$.dirty[0]&35&&((Re=l[i])==null||Re.setClosable(_)),e.$$.dirty[0]&67&&(v?(jt=l[i])==null||jt.maximize():(je=l[i])==null||je.unmaximize()),e.$$.dirty[0]&131&&((ut=l[i])==null||ut.setDecorations(y)),e.$$.dirty[0]&259&&((Ut=l[i])==null||Ut.setAlwaysOnTop(b)),e.$$.dirty[0]&515&&((Ee=l[i])==null||Ee.setContentProtected(S)),e.$$.dirty[0]&1027&&((qt=l[i])==null||qt.setFullscreen(P)),e.$$.dirty[0]&6147&&I&&O&&((ct=l[i])==null||ct.setSize(new gt(I,O))),e.$$.dirty[0]&24579&&(j&&W?(Bt=l[i])==null||Bt.setMinSize(new di(j,W)):(We=l[i])==null||We.setMinSize(null)),e.$$.dirty[0]&98307&&(T>800&&C>400?(At=l[i])==null||At.setMaxSize(new di(T,C)):(St=l[i])==null||St.setMaxSize(null)),e.$$.dirty[0]&393219&&E!==null&&M!==null&&((Lt=l[i])==null||Lt.setPosition(new ot(E,M))),e.$$.dirty[0]&3&&((Te=l[i])==null||Te.scaleFactor().then(cn=>n(27,H=cn))),e.$$.dirty[0]&3&&Le(l[i]),e.$$.dirty[0]&524291&&((Ue=l[i])==null||Ue.setCursorGrab(de)),e.$$.dirty[0]&1048579&&((Ie=l[i])==null||Ie.setCursorVisible($)),e.$$.dirty[0]&8388611&&((dt=l[i])==null||dt.setCursorIcon(K)),e.$$.dirty[0]&6291459&&N!==null&&X!==null&&((Vt=l[i])==null||Vt.setCursorPosition(new ot(N,X))),e.$$.dirty[0]&16777219&&((ft=l[i])==null||ft.setIgnoreCursorEvents(ae))},[i,l,f,g,k,_,v,y,b,S,P,I,O,j,W,T,C,E,M,de,$,N,X,K,ae,d,c,H,U,J,x,me,ne,o,he,_e,fe,re,Ae,Se,ve,u,ue,we,ie,ze,Je,le,ee,F,ce,B,Ne,kt,nn,De,ln,Xe,Mt,sn,Pe,on,Tt,an,Oe,rn,Ye,Ct,un,Fe]}class Va extends ye{constructor(t){super(),ge(this,t,Ba,qa,pe,{onMessage:41},null,[-1,-1,-1])}}var Ga={};Me(Ga,{isRegistered:()=>Xa,register:()=>mo,registerAll:()=>Ja,unregister:()=>ho,unregisterAll:()=>_o});async function mo(e,t){return A({__tauriModule:"GlobalShortcut",message:{cmd:"register",shortcut:e,handler:vt(t)}})}async function Ja(e,t){return A({__tauriModule:"GlobalShortcut",message:{cmd:"registerAll",shortcuts:e,handler:vt(t)}})}async function Xa(e){return A({__tauriModule:"GlobalShortcut",message:{cmd:"isRegistered",shortcut:e}})}async function ho(e){return A({__tauriModule:"GlobalShortcut",message:{cmd:"unregister",shortcut:e}})}async function _o(){return A({__tauriModule:"GlobalShortcut",message:{cmd:"unregisterAll"}})}function ks(e,t,n){const i=e.slice();return i[9]=t[n],i}function Ms(e){let t,n=e[9]+"",i,l,o,u,d;function c(){return e[8](e[9])}return{c(){t=a("div"),i=z(n),l=m(),o=a("button"),o.textContent="Unregister",r(o,"class","btn"),r(o,"type","button"),r(t,"class","flex justify-between")},m(f,g){h(f,t,g),s(t,i),s(t,l),s(t,o),u||(d=L(o,"click",c),u=!0)},p(f,g){e=f,g&2&&n!==(n=e[9]+"")&&Z(i,n)},d(f){f&&p(t),u=!1,d()}}}function Ts(e){let t,n,i,l,o;return{c(){t=a("br"),n=m(),i=a("button"),i.textContent="Unregister all",r(i,"class","btn"),r(i,"type","button")},m(u,d){h(u,t,d),h(u,n,d),h(u,i,d),l||(o=L(i,"click",e[5]),l=!0)},p:V,d(u){u&&p(t),u&&p(n),u&&p(i),l=!1,o()}}}function Ya(e){let t,n,i,l,o,u,d,c,f,g,k,_=e[1],v=[];for(let b=0;b<_.length;b+=1)v[b]=Ms(ks(e,_,b));let y=e[1].length>1&&Ts(e);return{c(){t=a("div"),n=a("input"),i=m(),l=a("button"),l.textContent="Register",o=m(),u=a("br"),d=m(),c=a("div");for(let b=0;b1?y?y.p(b,S):(y=Ts(b),y.c(),y.m(c,null)):y&&(y.d(1),y=null)},i:V,o:V,d(b){b&&p(t),b&&p(o),b&&p(u),b&&p(d),b&&p(c),yt(v,b),y&&y.d(),g=!1,oe(k)}}}function Ka(e,t,n){let i,{onMessage:l}=t;const o=Fs([]);Rs(e,o,_=>n(1,i=_));let u="CmdOrControl+X";function d(){const _=u;mo(_,()=>{l(`Shortcut ${_} triggered`)}).then(()=>{o.update(v=>[...v,_]),l(`Shortcut ${_} registered successfully`)}).catch(l)}function c(_){const v=_;ho(v).then(()=>{o.update(y=>y.filter(b=>b!==v)),l(`Shortcut ${v} unregistered`)}).catch(l)}function f(){_o().then(()=>{o.update(()=>[]),l("Unregistered all shortcuts")}).catch(l)}function g(){u=this.value,n(0,u)}const k=_=>c(_);return e.$$set=_=>{"onMessage"in _&&n(6,l=_.onMessage)},[u,i,o,d,c,f,l,g,k]}class Qa extends ye{constructor(t){super(),ge(this,t,Ka,Ya,pe,{onMessage:6})}}function Cs(e){let t,n,i,l,o,u,d;return{c(){t=a("br"),n=m(),i=a("input"),l=m(),o=a("button"),o.textContent="Write",r(i,"class","input"),r(i,"placeholder","write to stdin"),r(o,"class","btn")},m(c,f){h(c,t,f),h(c,n,f),h(c,i,f),q(i,e[4]),h(c,l,f),h(c,o,f),u||(d=[L(i,"input",e[14]),L(o,"click",e[8])],u=!0)},p(c,f){f&16&&i.value!==c[4]&&q(i,c[4])},d(c){c&&p(t),c&&p(n),c&&p(i),c&&p(l),c&&p(o),u=!1,oe(d)}}}function Za(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,S,P,I,O,j,W,T,C,E,M=e[5]&&Cs(e);return{c(){t=a("div"),n=a("div"),i=z(`Script: + `),We=a("input"),At=m(),St=a("br"),Lt=m(),Ce=a("div"),Ue=a("div"),Ne=a("div"),dt=a("div"),dt.textContent="Inner Size",Gt=m(),ft=a("span"),cn=z("Width: "),bi=z(dn),sl=m(),fn=a("span"),ol=z("Height: "),gi=z(pn),al=m(),$e=a("div"),mn=a("div"),mn.textContent="Outer Size",rl=m(),hn=a("span"),ul=z("Width: "),yi=z(_n),cl=m(),bn=a("span"),dl=z("Height: "),vi=z(gn),fl=m(),zt=a("div"),Ke=a("div"),yn=a("div"),yn.textContent="Inner Logical Size",pl=m(),vn=a("span"),ml=z("Width: "),wi=z(wn),hl=m(),kn=a("span"),_l=z("Height: "),ki=z(Mn),bl=m(),Qe=a("div"),Cn=a("div"),Cn.textContent="Outer Logical Size",gl=m(),Tn=a("span"),yl=z("Width: "),Mi=z(An),vl=m(),Sn=a("span"),wl=z("Height: "),Ci=z(Ln),kl=m(),Et=a("div"),Ze=a("div"),zn=a("div"),zn.textContent="Inner Position",Ml=m(),En=a("span"),Cl=z("x: "),Ti=z(Wn),Tl=m(),Pn=a("span"),Al=z("y: "),Ai=z(Dn),Sl=m(),xe=a("div"),On=a("div"),On.textContent="Outer Position",Ll=m(),Rn=a("span"),zl=z("x: "),Si=z(Nn),El=m(),In=a("span"),Wl=z("y: "),Li=z(Fn),Pl=m(),Wt=a("div"),et=a("div"),Hn=a("div"),Hn.textContent="Inner Logical Position",Dl=m(),jn=a("span"),Ol=z("x: "),zi=z(Un),Rl=m(),qn=a("span"),Nl=z("y: "),Ei=z(Bn),Il=m(),tt=a("div"),Gn=a("div"),Gn.textContent="Outer Logical Position",Fl=m(),Vn=a("span"),Hl=z("x: "),Wi=z(Jn),jl=m(),Xn=a("span"),Ul=z("y: "),Pi=z(Yn),Di=m(),Oi=a("br"),Ri=m(),Vt=a("h4"),Vt.textContent="Cursor",Ni=m(),qe=a("div"),$n=a("label"),Pt=a("input"),ql=z(` + Grab`),Bl=m(),Kn=a("label"),Dt=a("input"),Gl=z(` + Visible`),Vl=m(),Qn=a("label"),Ot=a("input"),Jl=z(` + Ignore events`),Ii=m(),Be=a("div"),Zn=a("label"),Xl=z(`Icon + `),Ge=a("select");for(let w=0;we[65].call(Ge)),r(nt,"class","input"),r(nt,"type","number"),r(it,"class","input"),r(it,"type","number"),r(Be,"class","flex gap-2"),r(lt,"class","input grow"),r(lt,"id","title"),r(Jt,"class","btn"),r(Jt,"type","submit"),r(mt,"class","flex gap-1"),r(st,"class","input grow"),r(st,"id","url"),r(Xt,"class","btn"),r(Xt,"id","open-url"),r(ht,"class","flex gap-1"),r(pt,"class","flex flex-col gap-1")},m(w,R){h(w,t,R),h(w,n,R),h(w,i,R),s(i,l),s(i,o),s(i,u),s(i,d),s(i,c),s(i,f),s(i,g),s(i,k),s(i,_),h(w,v,R),h(w,y,R),h(w,b,R),h(w,S,R),s(S,D),s(D,N),s(D,O),O.checked=e[6],s(S,j),s(S,W),s(W,C),s(W,A),A.checked=e[2],s(S,E),s(S,M),s(M,H),s(M,U),U.checked=e[3],s(S,J),s(S,x),s(x,me),s(x,te),te.checked=e[4],s(S,Y),s(S,de),s(de,Z),s(de,I),I.checked=e[5],s(S,X),s(S,$),s($,ae),s($,ne),ne.checked=e[7],s(S,he),s(S,_e),s(_e,fe),s(_e,re),re.checked=e[8],s(S,Ae),s(S,Se),s(Se,P),s(Se,V),V.checked=e[9],s(S,Le),s(S,ve),s(ve,ue),s(ve,we),we.checked=e[10],h(w,ie,R),h(w,ze,R),h(w,Je,R),h(w,le,R),s(le,ee),s(ee,F),s(F,ce),s(F,B),q(B,e[17]),s(ee,Ie),s(ee,kt),s(kt,nn),s(kt,Pe),q(Pe,e[18]),s(le,ln),s(le,Xe),s(Xe,Mt),s(Mt,sn),s(Mt,De),q(De,e[11]),s(Xe,on),s(Xe,Ct),s(Ct,an),s(Ct,Oe),q(Oe,e[12]),s(le,rn),s(le,Ye),s(Ye,Tt),s(Tt,un),s(Tt,Fe),q(Fe,e[13]),s(Ye,K),s(Ye,rt),s(rt,Ht),s(rt,Re),q(Re,e[14]),s(le,jt),s(le,je),s(je,ut),s(ut,Ut),s(ut,Ee),q(Ee,e[15]),s(je,qt),s(je,ct),s(ct,Bt),s(ct,We),q(We,e[16]),h(w,At,R),h(w,St,R),h(w,Lt,R),h(w,Ce,R),s(Ce,Ue),s(Ue,Ne),s(Ne,dt),s(Ne,Gt),s(Ne,ft),s(ft,cn),s(ft,bi),s(Ne,sl),s(Ne,fn),s(fn,ol),s(fn,gi),s(Ue,al),s(Ue,$e),s($e,mn),s($e,rl),s($e,hn),s(hn,ul),s(hn,yi),s($e,cl),s($e,bn),s(bn,dl),s(bn,vi),s(Ce,fl),s(Ce,zt),s(zt,Ke),s(Ke,yn),s(Ke,pl),s(Ke,vn),s(vn,ml),s(vn,wi),s(Ke,hl),s(Ke,kn),s(kn,_l),s(kn,ki),s(zt,bl),s(zt,Qe),s(Qe,Cn),s(Qe,gl),s(Qe,Tn),s(Tn,yl),s(Tn,Mi),s(Qe,vl),s(Qe,Sn),s(Sn,wl),s(Sn,Ci),s(Ce,kl),s(Ce,Et),s(Et,Ze),s(Ze,zn),s(Ze,Ml),s(Ze,En),s(En,Cl),s(En,Ti),s(Ze,Tl),s(Ze,Pn),s(Pn,Al),s(Pn,Ai),s(Et,Sl),s(Et,xe),s(xe,On),s(xe,Ll),s(xe,Rn),s(Rn,zl),s(Rn,Si),s(xe,El),s(xe,In),s(In,Wl),s(In,Li),s(Ce,Pl),s(Ce,Wt),s(Wt,et),s(et,Hn),s(et,Dl),s(et,jn),s(jn,Ol),s(jn,zi),s(et,Rl),s(et,qn),s(qn,Nl),s(qn,Ei),s(Wt,Il),s(Wt,tt),s(tt,Gn),s(tt,Fl),s(tt,Vn),s(Vn,Hl),s(Vn,Wi),s(tt,jl),s(tt,Xn),s(Xn,Ul),s(Xn,Pi),h(w,Di,R),h(w,Oi,R),h(w,Ri,R),h(w,Vt,R),h(w,Ni,R),h(w,qe,R),s(qe,$n),s($n,Pt),Pt.checked=e[19],s($n,ql),s(qe,Bl),s(qe,Kn),s(Kn,Dt),Dt.checked=e[20],s(Kn,Gl),s(qe,Vl),s(qe,Qn),s(Qn,Ot),Ot.checked=e[24],s(Qn,Jl),h(w,Ii,R),h(w,Be,R),s(Be,Zn),s(Zn,Xl),s(Zn,Ge);for(let be=0;be=1,g,k,_,v=f&&gs(e),y=e[1][e[0]]&&vs(e);return{c(){t=a("div"),n=a("div"),i=a("input"),l=m(),o=a("button"),o.textContent="New window",u=m(),d=a("br"),c=m(),v&&v.c(),g=m(),y&&y.c(),r(i,"class","input grow"),r(i,"type","text"),r(i,"placeholder","New Window label.."),r(o,"class","btn"),r(n,"class","flex gap-1"),r(t,"class","flex flex-col children:grow gap-2")},m(b,S){h(b,t,S),s(t,n),s(n,i),q(i,e[25]),s(n,l),s(n,o),s(t,u),s(t,d),s(t,c),v&&v.m(t,null),s(t,g),y&&y.m(t,null),k||(_=[L(i,"input",e[42]),L(o,"click",e[39])],k=!0)},p(b,S){S[0]&33554432&&i.value!==b[25]&&q(i,b[25]),S[0]&2&&(f=Object.keys(b[1]).length>=1),f?v?v.p(b,S):(v=gs(b),v.c(),v.m(t,g)):v&&(v.d(1),v=null),b[1][b[0]]?y?y.p(b,S):(y=vs(b),y.c(),y.m(t,null)):y&&(y.d(1),y=null)},i:G,o:G,d(b){b&&p(t),v&&v.d(),y&&y.d(),k=!1,oe(_)}}}function Xa(e,t,n){let i=Ve.label;const l={[Ve.label]:Ve},o=["default","crosshair","hand","arrow","move","text","wait","help","progress","notAllowed","contextMenu","cell","verticalText","alias","copy","noDrop","grab","grabbing","allScroll","zoomIn","zoomOut","eResize","nResize","neResize","nwResize","sResize","seResize","swResize","wResize","ewResize","nsResize","neswResize","nwseResize","colResize","rowResize"];let{onMessage:u}=t,d,c="https://tauri.app",f=!0,g=!0,k=!0,_=!0,v=!1,y=!0,b=!1,S=!0,D=!1,N=null,O=null,j=null,W=null,C=null,A=null,E=null,M=null,H=1,U=new ot(E,M),J=new ot(E,M),x=new gt(N,O),me=new gt(N,O),te,Y,de=!1,Z=!0,I=null,X=null,$="default",ae=!1,ne="Awesome Tauri Example!";function he(){Ki(c)}function _e(){l[i].setTitle(ne)}function fe(){l[i].hide(),setTimeout(l[i].show,2e3)}function re(){l[i].minimize(),setTimeout(l[i].unminimize,2e3)}function Ae(){tl({multiple:!1}).then(K=>{typeof K=="string"&&l[i].setIcon(K)})}function Se(){if(!d)return;const K=new wt(d);n(1,l[d]=K,l),K.once("tauri://error",function(){u("Error creating new webview")})}function P(){l[i].innerSize().then(K=>{n(30,x=K),n(11,N=x.width),n(12,O=x.height)}),l[i].outerSize().then(K=>{n(31,me=K)})}function V(){l[i].innerPosition().then(K=>{n(28,U=K)}),l[i].outerPosition().then(K=>{n(29,J=K),n(17,E=J.x),n(18,M=J.y)})}async function Le(K){!K||(te&&te(),Y&&Y(),Y=await K.listen("tauri://move",V),te=await K.listen("tauri://resize",P))}async function ve(){await l[i].minimize(),await l[i].requestUserAttention(Zi.Critical),await new Promise(K=>setTimeout(K,3e3)),await l[i].requestUserAttention(null)}function ue(){d=this.value,n(25,d)}function we(){i=Gi(this),n(0,i),n(1,l)}const ie=()=>l[i].center();function ze(){v=this.checked,n(6,v)}function Je(){f=this.checked,n(2,f)}function le(){g=this.checked,n(3,g)}function ee(){k=this.checked,n(4,k)}function F(){_=this.checked,n(5,_)}function ce(){y=this.checked,n(7,y)}function B(){b=this.checked,n(8,b)}function Ie(){S=this.checked,n(9,S)}function kt(){D=this.checked,n(10,D)}function nn(){E=se(this.value),n(17,E)}function Pe(){M=se(this.value),n(18,M)}function ln(){N=se(this.value),n(11,N)}function Xe(){O=se(this.value),n(12,O)}function Mt(){j=se(this.value),n(13,j)}function sn(){W=se(this.value),n(14,W)}function De(){C=se(this.value),n(15,C)}function on(){A=se(this.value),n(16,A)}function Ct(){de=this.checked,n(19,de)}function an(){Z=this.checked,n(20,Z)}function Oe(){ae=this.checked,n(24,ae)}function rn(){$=Gi(this),n(23,$),n(33,o)}function Ye(){I=se(this.value),n(21,I)}function Tt(){X=se(this.value),n(22,X)}function un(){ne=this.value,n(32,ne)}function Fe(){c=this.value,n(26,c)}return e.$$set=K=>{"onMessage"in K&&n(41,u=K.onMessage)},e.$$.update=()=>{var K,rt,Ht,Re,jt,je,ut,Ut,Ee,qt,ct,Bt,We,At,St,Lt,Ce,Ue,Ne,dt,Gt,ft;e.$$.dirty[0]&3&&(l[i],V(),P()),e.$$.dirty[0]&7&&((K=l[i])==null||K.setResizable(f)),e.$$.dirty[0]&11&&((rt=l[i])==null||rt.setMaximizable(g)),e.$$.dirty[0]&19&&((Ht=l[i])==null||Ht.setMinimizable(k)),e.$$.dirty[0]&35&&((Re=l[i])==null||Re.setClosable(_)),e.$$.dirty[0]&67&&(v?(jt=l[i])==null||jt.maximize():(je=l[i])==null||je.unmaximize()),e.$$.dirty[0]&131&&((ut=l[i])==null||ut.setDecorations(y)),e.$$.dirty[0]&259&&((Ut=l[i])==null||Ut.setAlwaysOnTop(b)),e.$$.dirty[0]&515&&((Ee=l[i])==null||Ee.setContentProtected(S)),e.$$.dirty[0]&1027&&((qt=l[i])==null||qt.setFullscreen(D)),e.$$.dirty[0]&6147&&N&&O&&((ct=l[i])==null||ct.setSize(new gt(N,O))),e.$$.dirty[0]&24579&&(j&&W?(Bt=l[i])==null||Bt.setMinSize(new di(j,W)):(We=l[i])==null||We.setMinSize(null)),e.$$.dirty[0]&98307&&(C>800&&A>400?(At=l[i])==null||At.setMaxSize(new di(C,A)):(St=l[i])==null||St.setMaxSize(null)),e.$$.dirty[0]&393219&&E!==null&&M!==null&&((Lt=l[i])==null||Lt.setPosition(new ot(E,M))),e.$$.dirty[0]&3&&((Ce=l[i])==null||Ce.scaleFactor().then(cn=>n(27,H=cn))),e.$$.dirty[0]&3&&Le(l[i]),e.$$.dirty[0]&524291&&((Ue=l[i])==null||Ue.setCursorGrab(de)),e.$$.dirty[0]&1048579&&((Ne=l[i])==null||Ne.setCursorVisible(Z)),e.$$.dirty[0]&8388611&&((dt=l[i])==null||dt.setCursorIcon($)),e.$$.dirty[0]&6291459&&I!==null&&X!==null&&((Gt=l[i])==null||Gt.setCursorPosition(new ot(I,X))),e.$$.dirty[0]&16777219&&((ft=l[i])==null||ft.setIgnoreCursorEvents(ae))},[i,l,f,g,k,_,v,y,b,S,D,N,O,j,W,C,A,E,M,de,Z,I,X,$,ae,d,c,H,U,J,x,me,ne,o,he,_e,fe,re,Ae,Se,ve,u,ue,we,ie,ze,Je,le,ee,F,ce,B,Ie,kt,nn,Pe,ln,Xe,Mt,sn,De,on,Ct,an,Oe,rn,Ye,Tt,un,Fe]}class Ya extends ye{constructor(t){super(),ge(this,t,Xa,Ja,pe,{onMessage:41},null,[-1,-1,-1])}}var $a={};ke($a,{isRegistered:()=>Qa,register:()=>mo,registerAll:()=>Ka,unregister:()=>ho,unregisterAll:()=>_o});async function mo(e,t){return T({__tauriModule:"GlobalShortcut",message:{cmd:"register",shortcut:e,handler:vt(t)}})}async function Ka(e,t){return T({__tauriModule:"GlobalShortcut",message:{cmd:"registerAll",shortcuts:e,handler:vt(t)}})}async function Qa(e){return T({__tauriModule:"GlobalShortcut",message:{cmd:"isRegistered",shortcut:e}})}async function ho(e){return T({__tauriModule:"GlobalShortcut",message:{cmd:"unregister",shortcut:e}})}async function _o(){return T({__tauriModule:"GlobalShortcut",message:{cmd:"unregisterAll"}})}function ks(e,t,n){const i=e.slice();return i[9]=t[n],i}function Ms(e){let t,n=e[9]+"",i,l,o,u,d;function c(){return e[8](e[9])}return{c(){t=a("div"),i=z(n),l=m(),o=a("button"),o.textContent="Unregister",r(o,"class","btn"),r(o,"type","button"),r(t,"class","flex justify-between")},m(f,g){h(f,t,g),s(t,i),s(t,l),s(t,o),u||(d=L(o,"click",c),u=!0)},p(f,g){e=f,g&2&&n!==(n=e[9]+"")&&Q(i,n)},d(f){f&&p(t),u=!1,d()}}}function Cs(e){let t,n,i,l,o;return{c(){t=a("br"),n=m(),i=a("button"),i.textContent="Unregister all",r(i,"class","btn"),r(i,"type","button")},m(u,d){h(u,t,d),h(u,n,d),h(u,i,d),l||(o=L(i,"click",e[5]),l=!0)},p:G,d(u){u&&p(t),u&&p(n),u&&p(i),l=!1,o()}}}function Za(e){let t,n,i,l,o,u,d,c,f,g,k,_=e[1],v=[];for(let b=0;b<_.length;b+=1)v[b]=Ms(ks(e,_,b));let y=e[1].length>1&&Cs(e);return{c(){t=a("div"),n=a("input"),i=m(),l=a("button"),l.textContent="Register",o=m(),u=a("br"),d=m(),c=a("div");for(let b=0;b1?y?y.p(b,S):(y=Cs(b),y.c(),y.m(c,null)):y&&(y.d(1),y=null)},i:G,o:G,d(b){b&&p(t),b&&p(o),b&&p(u),b&&p(d),b&&p(c),yt(v,b),y&&y.d(),g=!1,oe(k)}}}function xa(e,t,n){let i,{onMessage:l}=t;const o=Fs([]);Rs(e,o,_=>n(1,i=_));let u="CmdOrControl+X";function d(){const _=u;mo(_,()=>{l(`Shortcut ${_} triggered`)}).then(()=>{o.update(v=>[...v,_]),l(`Shortcut ${_} registered successfully`)}).catch(l)}function c(_){const v=_;ho(v).then(()=>{o.update(y=>y.filter(b=>b!==v)),l(`Shortcut ${v} unregistered`)}).catch(l)}function f(){_o().then(()=>{o.update(()=>[]),l("Unregistered all shortcuts")}).catch(l)}function g(){u=this.value,n(0,u)}const k=_=>c(_);return e.$$set=_=>{"onMessage"in _&&n(6,l=_.onMessage)},[u,i,o,d,c,f,l,g,k]}class er extends ye{constructor(t){super(),ge(this,t,xa,Za,pe,{onMessage:6})}}function Ts(e){let t,n,i,l,o,u,d;return{c(){t=a("br"),n=m(),i=a("input"),l=m(),o=a("button"),o.textContent="Write",r(i,"class","input"),r(i,"placeholder","write to stdin"),r(o,"class","btn")},m(c,f){h(c,t,f),h(c,n,f),h(c,i,f),q(i,e[4]),h(c,l,f),h(c,o,f),u||(d=[L(i,"input",e[14]),L(o,"click",e[8])],u=!0)},p(c,f){f&16&&i.value!==c[4]&&q(i,c[4])},d(c){c&&p(t),c&&p(n),c&&p(i),c&&p(l),c&&p(o),u=!1,oe(d)}}}function tr(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,S,D,N,O,j,W,C,A,E,M=e[5]&&Ts(e);return{c(){t=a("div"),n=a("div"),i=z(`Script: `),l=a("input"),o=m(),u=a("div"),d=z(`Encoding: `),c=a("input"),f=m(),g=a("div"),k=z(`Working directory: `),_=a("input"),v=m(),y=a("div"),b=z(`Arguments: - `),S=a("input"),P=m(),I=a("div"),O=a("button"),O.textContent="Run",j=m(),W=a("button"),W.textContent="Kill",T=m(),M&&M.c(),r(l,"class","grow input"),r(n,"class","flex items-center gap-1"),r(c,"class","grow input"),r(u,"class","flex items-center gap-1"),r(_,"class","grow input"),r(_,"placeholder","Working directory"),r(g,"class","flex items-center gap-1"),r(S,"class","grow input"),r(S,"placeholder","Environment variables"),r(y,"class","flex items-center gap-1"),r(O,"class","btn"),r(W,"class","btn"),r(I,"class","flex children:grow gap-1"),r(t,"class","flex flex-col childre:grow gap-1")},m(H,U){h(H,t,U),s(t,n),s(n,i),s(n,l),q(l,e[0]),s(t,o),s(t,u),s(u,d),s(u,c),q(c,e[3]),s(t,f),s(t,g),s(g,k),s(g,_),q(_,e[1]),s(t,v),s(t,y),s(y,b),s(y,S),q(S,e[2]),s(t,P),s(t,I),s(I,O),s(I,j),s(I,W),s(t,T),M&&M.m(t,null),C||(E=[L(l,"input",e[10]),L(c,"input",e[11]),L(_,"input",e[12]),L(S,"input",e[13]),L(O,"click",e[6]),L(W,"click",e[7])],C=!0)},p(H,[U]){U&1&&l.value!==H[0]&&q(l,H[0]),U&8&&c.value!==H[3]&&q(c,H[3]),U&2&&_.value!==H[1]&&q(_,H[1]),U&4&&S.value!==H[2]&&q(S,H[2]),H[5]?M?M.p(H,U):(M=Cs(H),M.c(),M.m(t,null)):M&&(M.d(1),M=null)},i:V,o:V,d(H){H&&p(t),M&&M.d(),C=!1,oe(E)}}}function $a(e,t,n){const i=navigator.userAgent.includes("Windows");let l=i?"cmd":"sh",o=i?["/C"]:["-c"],{onMessage:u}=t,d='echo "hello world"',c=null,f="SOMETHING=value ANOTHER=2",g="",k="",_;function v(){return f.split(" ").reduce((T,C)=>{let[E,M]=C.split("=");return{...T,[E]:M}},{})}function y(){n(5,_=null);const T=new Ki(l,[...o,d],{cwd:c||null,env:v(),encoding:g});T.on("close",C=>{u(`command finished with code ${C.code} and signal ${C.signal}`),n(5,_=null)}),T.on("error",C=>u(`command error: "${C}"`)),T.stdout.on("data",C=>u(`command stdout: "${C}"`)),T.stderr.on("data",C=>u(`command stderr: "${C}"`)),T.spawn().then(C=>{n(5,_=C)}).catch(u)}function b(){_.kill().then(()=>u("killed child process")).catch(u)}function S(){_.write(k).catch(u)}function P(){d=this.value,n(0,d)}function I(){g=this.value,n(3,g)}function O(){c=this.value,n(1,c)}function j(){f=this.value,n(2,f)}function W(){k=this.value,n(4,k)}return e.$$set=T=>{"onMessage"in T&&n(9,u=T.onMessage)},[d,c,f,g,k,_,y,b,S,u,P,I,O,j,W]}class xa extends ye{constructor(t){super(),ge(this,t,$a,Za,pe,{onMessage:9})}}var er={};Me(er,{checkUpdate:()=>go,installUpdate:()=>bo,onUpdaterEvent:()=>ll});async function ll(e){return tn("tauri://update-status",t=>{e(t==null?void 0:t.payload)})}async function bo(){let e;function t(){e&&e(),e=void 0}return new Promise((n,i)=>{function l(o){if(o.error){t(),i(o.error);return}o.status==="DONE"&&(t(),n())}ll(l).then(o=>{e=o}).catch(o=>{throw t(),o}),_i("tauri://update-install").catch(o=>{throw t(),o})})}async function go(){let e;function t(){e&&e(),e=void 0}return new Promise((n,i)=>{function l(u){t(),n({manifest:u,shouldUpdate:!0})}function o(u){if(u.error){t(),i(u.error);return}u.status==="UPTODATE"&&(t(),n({shouldUpdate:!1}))}Gs("tauri://update-available",u=>{l(u==null?void 0:u.payload)}).catch(u=>{throw t(),u}),ll(o).then(u=>{e=u}).catch(u=>{throw t(),u}),_i("tauri://update").catch(u=>{throw t(),u})})}function tr(e){let t;return{c(){t=a("button"),t.innerHTML='
',r(t,"class","btn text-accentText dark:text-darkAccentText flex items-center justify-center")},m(n,i){h(n,t,i)},p:V,d(n){n&&p(t)}}}function nr(e){let t,n,i;return{c(){t=a("button"),t.textContent="Install update",r(t,"class","btn")},m(l,o){h(l,t,o),n||(i=L(t,"click",e[4]),n=!0)},p:V,d(l){l&&p(t),n=!1,i()}}}function ir(e){let t,n,i;return{c(){t=a("button"),t.textContent="Check update",r(t,"class","btn")},m(l,o){h(l,t,o),n||(i=L(t,"click",e[3]),n=!0)},p:V,d(l){l&&p(t),n=!1,i()}}}function lr(e){let t;function n(o,u){return!o[0]&&!o[2]?ir:!o[1]&&o[2]?nr:tr}let i=n(e),l=i(e);return{c(){t=a("div"),l.c(),r(t,"class","flex children:grow children:h10")},m(o,u){h(o,t,u),l.m(t,null)},p(o,[u]){i===(i=n(o))&&l?l.p(o,u):(l.d(1),l=i(o),l&&(l.c(),l.m(t,null)))},i:V,o:V,d(o){o&&p(t),l.d()}}}function sr(e,t,n){let{onMessage:i}=t,l;_t(async()=>{l=await tn("tauri://update-status",i)}),Yi(()=>{l&&l()});let o,u,d;async function c(){n(0,o=!0);try{const{shouldUpdate:g,manifest:k}=await go();i(`Should update: ${g}`),i(k),n(2,d=g)}catch(g){i(g)}finally{n(0,o=!1)}}async function f(){n(1,u=!0);try{await bo(),i("Installation complete, restart required."),await el()}catch(g){i(g)}finally{n(1,u=!1)}}return e.$$set=g=>{"onMessage"in g&&n(5,i=g.onMessage)},[o,u,d,c,f,i]}class or extends ye{constructor(t){super(),ge(this,t,sr,lr,pe,{onMessage:5})}}var ar={};Me(ar,{readText:()=>vo,writeText:()=>yo});async function yo(e){return A({__tauriModule:"Clipboard",message:{cmd:"writeText",data:e}})}async function vo(){return A({__tauriModule:"Clipboard",message:{cmd:"readText",data:null}})}function rr(e){let t,n,i,l,o,u,d,c;return{c(){t=a("div"),n=a("input"),i=m(),l=a("button"),l.textContent="Write",o=m(),u=a("button"),u.textContent="Read",r(n,"class","grow input"),r(n,"placeholder","Text to write to the clipboard"),r(l,"class","btn"),r(l,"type","button"),r(u,"class","btn"),r(u,"type","button"),r(t,"class","flex gap-1")},m(f,g){h(f,t,g),s(t,n),q(n,e[0]),s(t,i),s(t,l),s(t,o),s(t,u),d||(c=[L(n,"input",e[4]),L(l,"click",e[1]),L(u,"click",e[2])],d=!0)},p(f,[g]){g&1&&n.value!==f[0]&&q(n,f[0])},i:V,o:V,d(f){f&&p(t),d=!1,oe(c)}}}function ur(e,t,n){let{onMessage:i}=t,l="clipboard message";function o(){yo(l).then(()=>{i("Wrote to the clipboard")}).catch(i)}function u(){vo().then(c=>{i(`Clipboard contents: ${c}`)}).catch(i)}function d(){l=this.value,n(0,l)}return e.$$set=c=>{"onMessage"in c&&n(3,i=c.onMessage)},[l,o,u,i,d]}class cr extends ye{constructor(t){super(),ge(this,t,ur,rr,pe,{onMessage:3})}}function dr(e){let t;return{c(){t=a("div"),t.innerHTML=`
Not available for Linux
- `,r(t,"class","flex flex-col gap-2")},m(n,i){h(n,t,i)},p:V,i:V,o:V,d(n){n&&p(t)}}}function fr(e,t,n){let{onMessage:i}=t;const l=window.constraints={audio:!0,video:!0};function o(d){const c=document.querySelector("video"),f=d.getVideoTracks();i("Got stream with constraints:",l),i(`Using video device: ${f[0].label}`),window.stream=d,c.srcObject=d}function u(d){if(d.name==="ConstraintNotSatisfiedError"){const c=l.video;i(`The resolution ${c.width.exact}x${c.height.exact} px is not supported by your device.`)}else d.name==="PermissionDeniedError"&&i("Permissions have not been granted to use your camera and microphone, you need to allow the page access to your devices in order for the demo to work.");i(`getUserMedia error: ${d.name}`,d)}return _t(async()=>{try{const d=await navigator.mediaDevices.getUserMedia(l);o(d)}catch(d){u(d)}}),Yi(()=>{window.stream.getTracks().forEach(function(d){d.stop()})}),e.$$set=d=>{"onMessage"in d&&n(0,i=d.onMessage)},[i]}class pr extends ye{constructor(t){super(),ge(this,t,fr,dr,pe,{onMessage:0})}}function mr(e){let t,n,i,l,o,u;return{c(){t=a("div"),n=a("button"),n.textContent="Show",i=m(),l=a("button"),l.textContent="Hide",r(n,"class","btn"),r(n,"id","show"),r(n,"title","Hides and shows the app after 2 seconds"),r(l,"class","btn"),r(l,"id","hide")},m(d,c){h(d,t,c),s(t,n),s(t,i),s(t,l),o||(u=[L(n,"click",e[0]),L(l,"click",e[1])],o=!0)},p:V,i:V,o:V,d(d){d&&p(t),o=!1,oe(u)}}}function hr(e,t,n){let{onMessage:i}=t;function l(){o().then(()=>{setTimeout(()=>{io().then(()=>i("Shown app")).catch(i)},2e3)}).catch(i)}function o(){return lo().then(()=>i("Hide app")).catch(i)}return e.$$set=u=>{"onMessage"in u&&n(2,i=u.onMessage)},[l,o,i]}class _r extends ye{constructor(t){super(),ge(this,t,hr,mr,pe,{onMessage:2})}}function As(e,t,n){const i=e.slice();return i[32]=t[n],i}function Ss(e,t,n){const i=e.slice();return i[35]=t[n],i}function Ls(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b;function S(T,C){return T[3]?gr:br}let P=S(e),I=P(e);function O(T,C){return T[2]?vr:yr}let j=O(e),W=j(e);return{c(){t=a("div"),n=a("span"),n.textContent="Tauri API Validation",i=m(),l=a("span"),o=a("span"),I.c(),d=m(),c=a("span"),c.innerHTML='
',f=m(),g=a("span"),W.c(),_=m(),v=a("span"),v.innerHTML='
',r(n,"class","lt-sm:pl-10 text-darkPrimaryText"),r(o,"title",u=e[3]?"Switch to Light mode":"Switch to Dark mode"),r(o,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),r(c,"title","Minimize"),r(c,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),r(g,"title",k=e[2]?"Restore":"Maximize"),r(g,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),r(v,"title","Close"),r(v,"class","hover:bg-red-700 dark:hover:bg-red-700 hover:text-darkPrimaryText active:bg-red-700/90 dark:active:bg-red-700/90 active:text-darkPrimaryText "),r(l,"class","h-100% children:h-100% children:w-12 children:inline-flex children:items-center children:justify-center"),r(t,"class","w-screen select-none h-8 pl-2 flex justify-between items-center absolute text-primaryText dark:text-darkPrimaryText"),r(t,"data-tauri-drag-region","")},m(T,C){h(T,t,C),s(t,n),s(t,i),s(t,l),s(l,o),I.m(o,null),s(l,d),s(l,c),s(l,f),s(l,g),W.m(g,null),s(l,_),s(l,v),y||(b=[L(o,"click",e[12]),L(c,"click",e[9]),L(g,"click",e[10]),L(v,"click",e[11])],y=!0)},p(T,C){P!==(P=S(T))&&(I.d(1),I=P(T),I&&(I.c(),I.m(o,null))),C[0]&8&&u!==(u=T[3]?"Switch to Light mode":"Switch to Dark mode")&&r(o,"title",u),j!==(j=O(T))&&(W.d(1),W=j(T),W&&(W.c(),W.m(g,null))),C[0]&4&&k!==(k=T[2]?"Restore":"Maximize")&&r(g,"title",k)},d(T){T&&p(t),I.d(),W.d(),y=!1,oe(b)}}}function br(e){let t;return{c(){t=a("div"),r(t,"class","i-ph-moon")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function gr(e){let t;return{c(){t=a("div"),r(t,"class","i-ph-sun")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function yr(e){let t;return{c(){t=a("div"),r(t,"class","i-codicon-chrome-maximize")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function vr(e){let t;return{c(){t=a("div"),r(t,"class","i-codicon-chrome-restore")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function wr(e){let t;return{c(){t=a("span"),r(t,"class","i-codicon-menu animate-duration-300ms animate-fade-in")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function kr(e){let t;return{c(){t=a("span"),r(t,"class","i-codicon-close animate-duration-300ms animate-fade-in")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function zs(e){let t,n,i,l,o,u,d,c,f;function g(v,y){return v[3]?Tr:Mr}let k=g(e),_=k(e);return{c(){t=a("a"),_.c(),n=m(),i=a("br"),l=m(),o=a("div"),u=m(),d=a("br"),r(t,"href","##"),r(t,"class","nv justify-between h-8"),r(o,"class","bg-white/5 h-2px")},m(v,y){h(v,t,y),_.m(t,null),h(v,n,y),h(v,i,y),h(v,l,y),h(v,o,y),h(v,u,y),h(v,d,y),c||(f=L(t,"click",e[12]),c=!0)},p(v,y){k!==(k=g(v))&&(_.d(1),_=k(v),_&&(_.c(),_.m(t,null)))},d(v){v&&p(t),_.d(),v&&p(n),v&&p(i),v&&p(l),v&&p(o),v&&p(u),v&&p(d),c=!1,f()}}}function Mr(e){let t,n;return{c(){t=z(`Switch to Dark mode - `),n=a("div"),r(n,"class","i-ph-moon")},m(i,l){h(i,t,l),h(i,n,l)},d(i){i&&p(t),i&&p(n)}}}function Tr(e){let t,n;return{c(){t=z(`Switch to Light mode - `),n=a("div"),r(n,"class","i-ph-sun")},m(i,l){h(i,t,l),h(i,n,l)},d(i){i&&p(t),i&&p(n)}}}function Cr(e){let t,n,i,l,o=e[35].label+"",u,d,c,f;function g(){return e[20](e[35])}return{c(){t=a("a"),n=a("div"),i=m(),l=a("p"),u=z(o),r(n,"class",e[35].icon+" mr-2"),r(t,"href","##"),r(t,"class",d="nv "+(e[1]===e[35]?"nv_selected":""))},m(k,_){h(k,t,_),s(t,n),s(t,i),s(t,l),s(l,u),c||(f=L(t,"click",g),c=!0)},p(k,_){e=k,_[0]&2&&d!==(d="nv "+(e[1]===e[35]?"nv_selected":""))&&r(t,"class",d)},d(k){k&&p(t),c=!1,f()}}}function Es(e){let t,n=e[35]&&Cr(e);return{c(){n&&n.c(),t=pi()},m(i,l){n&&n.m(i,l),h(i,t,l)},p(i,l){i[35]&&n.p(i,l)},d(i){n&&n.d(i),i&&p(t)}}}function Ws(e){let t,n=e[32].html+"",i;return{c(){t=new Lo(!1),i=pi(),t.a=i},m(l,o){t.m(n,l,o),h(l,i,o)},p(l,o){o[0]&64&&n!==(n=l[32].html+"")&&t.p(n)},d(l){l&&p(i),l&&t.d()}}}function Ar(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,S,P,I,O,j,W,T,C,E,M,H,U=e[1].label+"",J,x,me,te,Y,de,$,N,X,K,ae,ne,he,_e,fe,re,Ae,Se,D=e[5]&&Ls(e);function G(F,ce){return F[0]?kr:wr}let Le=G(e),ve=Le(e),ue=!e[5]&&zs(e),we=e[7],ie=[];for(let F=0;F{let[E,M]=A.split("=");return{...C,[E]:M}},{})}function y(){n(5,_=null);const C=new $i(l,[...o,d],{cwd:c||null,env:v(),encoding:g});C.on("close",A=>{u(`command finished with code ${A.code} and signal ${A.signal}`),n(5,_=null)}),C.on("error",A=>u(`command error: "${A}"`)),C.stdout.on("data",A=>u(`command stdout: "${A}"`)),C.stderr.on("data",A=>u(`command stderr: "${A}"`)),C.spawn().then(A=>{n(5,_=A)}).catch(u)}function b(){_.kill().then(()=>u("killed child process")).catch(u)}function S(){_.write(k).catch(u)}function D(){d=this.value,n(0,d)}function N(){g=this.value,n(3,g)}function O(){c=this.value,n(1,c)}function j(){f=this.value,n(2,f)}function W(){k=this.value,n(4,k)}return e.$$set=C=>{"onMessage"in C&&n(9,u=C.onMessage)},[d,c,f,g,k,_,y,b,S,u,D,N,O,j,W]}class ir extends ye{constructor(t){super(),ge(this,t,nr,tr,pe,{onMessage:9})}}var lr={};ke(lr,{checkUpdate:()=>go,installUpdate:()=>bo,onUpdaterEvent:()=>ll});async function ll(e){return tn("tauri://update-status",t=>{e(t==null?void 0:t.payload)})}async function bo(){let e;function t(){e&&e(),e=void 0}return new Promise((n,i)=>{function l(o){if(o.error){t(),i(o.error);return}o.status==="DONE"&&(t(),n())}ll(l).then(o=>{e=o}).catch(o=>{throw t(),o}),_i("tauri://update-install").catch(o=>{throw t(),o})})}async function go(){let e;function t(){e&&e(),e=void 0}return new Promise((n,i)=>{function l(u){t(),n({manifest:u,shouldUpdate:!0})}function o(u){if(u.error){t(),i(u.error);return}u.status==="UPTODATE"&&(t(),n({shouldUpdate:!1}))}Vs("tauri://update-available",u=>{l(u==null?void 0:u.payload)}).catch(u=>{throw t(),u}),ll(o).then(u=>{e=u}).catch(u=>{throw t(),u}),_i("tauri://update").catch(u=>{throw t(),u})})}function sr(e){let t;return{c(){t=a("button"),t.innerHTML='
',r(t,"class","btn text-accentText dark:text-darkAccentText flex items-center justify-center")},m(n,i){h(n,t,i)},p:G,d(n){n&&p(t)}}}function or(e){let t,n,i;return{c(){t=a("button"),t.textContent="Install update",r(t,"class","btn")},m(l,o){h(l,t,o),n||(i=L(t,"click",e[4]),n=!0)},p:G,d(l){l&&p(t),n=!1,i()}}}function ar(e){let t,n,i;return{c(){t=a("button"),t.textContent="Check update",r(t,"class","btn")},m(l,o){h(l,t,o),n||(i=L(t,"click",e[3]),n=!0)},p:G,d(l){l&&p(t),n=!1,i()}}}function rr(e){let t;function n(o,u){return!o[0]&&!o[2]?ar:!o[1]&&o[2]?or:sr}let i=n(e),l=i(e);return{c(){t=a("div"),l.c(),r(t,"class","flex children:grow children:h10")},m(o,u){h(o,t,u),l.m(t,null)},p(o,[u]){i===(i=n(o))&&l?l.p(o,u):(l.d(1),l=i(o),l&&(l.c(),l.m(t,null)))},i:G,o:G,d(o){o&&p(t),l.d()}}}function ur(e,t,n){let{onMessage:i}=t,l;_t(async()=>{l=await tn("tauri://update-status",i)}),Yi(()=>{l&&l()});let o,u,d;async function c(){n(0,o=!0);try{const{shouldUpdate:g,manifest:k}=await go();i(`Should update: ${g}`),i(k),n(2,d=g)}catch(g){i(g)}finally{n(0,o=!1)}}async function f(){n(1,u=!0);try{await bo(),i("Installation complete, restart required."),await el()}catch(g){i(g)}finally{n(1,u=!1)}}return e.$$set=g=>{"onMessage"in g&&n(5,i=g.onMessage)},[o,u,d,c,f,i]}class cr extends ye{constructor(t){super(),ge(this,t,ur,rr,pe,{onMessage:5})}}var dr={};ke(dr,{readText:()=>vo,writeText:()=>yo});async function yo(e){return T({__tauriModule:"Clipboard",message:{cmd:"writeText",data:e}})}async function vo(){return T({__tauriModule:"Clipboard",message:{cmd:"readText",data:null}})}function fr(e){let t,n,i,l,o,u,d,c;return{c(){t=a("div"),n=a("input"),i=m(),l=a("button"),l.textContent="Write",o=m(),u=a("button"),u.textContent="Read",r(n,"class","grow input"),r(n,"placeholder","Text to write to the clipboard"),r(l,"class","btn"),r(l,"type","button"),r(u,"class","btn"),r(u,"type","button"),r(t,"class","flex gap-1")},m(f,g){h(f,t,g),s(t,n),q(n,e[0]),s(t,i),s(t,l),s(t,o),s(t,u),d||(c=[L(n,"input",e[4]),L(l,"click",e[1]),L(u,"click",e[2])],d=!0)},p(f,[g]){g&1&&n.value!==f[0]&&q(n,f[0])},i:G,o:G,d(f){f&&p(t),d=!1,oe(c)}}}function pr(e,t,n){let{onMessage:i}=t,l="clipboard message";function o(){yo(l).then(()=>{i("Wrote to the clipboard")}).catch(i)}function u(){vo().then(c=>{i(`Clipboard contents: ${c}`)}).catch(i)}function d(){l=this.value,n(0,l)}return e.$$set=c=>{"onMessage"in c&&n(3,i=c.onMessage)},[l,o,u,i,d]}class mr extends ye{constructor(t){super(),ge(this,t,pr,fr,pe,{onMessage:3})}}function hr(e){let t;return{c(){t=a("div"),t.innerHTML=`
Not available for Linux
+ `,r(t,"class","flex flex-col gap-2")},m(n,i){h(n,t,i)},p:G,i:G,o:G,d(n){n&&p(t)}}}function _r(e,t,n){let{onMessage:i}=t;const l=window.constraints={audio:!0,video:!0};function o(d){const c=document.querySelector("video"),f=d.getVideoTracks();i("Got stream with constraints:",l),i(`Using video device: ${f[0].label}`),window.stream=d,c.srcObject=d}function u(d){if(d.name==="ConstraintNotSatisfiedError"){const c=l.video;i(`The resolution ${c.width.exact}x${c.height.exact} px is not supported by your device.`)}else d.name==="PermissionDeniedError"&&i("Permissions have not been granted to use your camera and microphone, you need to allow the page access to your devices in order for the demo to work.");i(`getUserMedia error: ${d.name}`,d)}return _t(async()=>{try{const d=await navigator.mediaDevices.getUserMedia(l);o(d)}catch(d){u(d)}}),Yi(()=>{window.stream.getTracks().forEach(function(d){d.stop()})}),e.$$set=d=>{"onMessage"in d&&n(0,i=d.onMessage)},[i]}class br extends ye{constructor(t){super(),ge(this,t,_r,hr,pe,{onMessage:0})}}function gr(e){let t,n,i,l,o,u;return{c(){t=a("div"),n=a("button"),n.textContent="Show",i=m(),l=a("button"),l.textContent="Hide",r(n,"class","btn"),r(n,"id","show"),r(n,"title","Hides and shows the app after 2 seconds"),r(l,"class","btn"),r(l,"id","hide")},m(d,c){h(d,t,c),s(t,n),s(t,i),s(t,l),o||(u=[L(n,"click",e[0]),L(l,"click",e[1])],o=!0)},p:G,i:G,o:G,d(d){d&&p(t),o=!1,oe(u)}}}function yr(e,t,n){let{onMessage:i}=t;function l(){o().then(()=>{setTimeout(()=>{no().then(()=>i("Shown app")).catch(i)},2e3)}).catch(i)}function o(){return io().then(()=>i("Hide app")).catch(i)}return e.$$set=u=>{"onMessage"in u&&n(2,i=u.onMessage)},[l,o,i]}class vr extends ye{constructor(t){super(),ge(this,t,yr,gr,pe,{onMessage:2})}}function As(e,t,n){const i=e.slice();return i[32]=t[n],i}function Ss(e,t,n){const i=e.slice();return i[35]=t[n],i}function Ls(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b;function S(C,A){return C[3]?kr:wr}let D=S(e),N=D(e);function O(C,A){return C[2]?Cr:Mr}let j=O(e),W=j(e);return{c(){t=a("div"),n=a("span"),n.textContent="Tauri API Validation",i=m(),l=a("span"),o=a("span"),N.c(),d=m(),c=a("span"),c.innerHTML='
',f=m(),g=a("span"),W.c(),_=m(),v=a("span"),v.innerHTML='
',r(n,"class","lt-sm:pl-10 text-darkPrimaryText"),r(o,"title",u=e[3]?"Switch to Light mode":"Switch to Dark mode"),r(o,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),r(c,"title","Minimize"),r(c,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),r(g,"title",k=e[2]?"Restore":"Maximize"),r(g,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),r(v,"title","Close"),r(v,"class","hover:bg-red-700 dark:hover:bg-red-700 hover:text-darkPrimaryText active:bg-red-700/90 dark:active:bg-red-700/90 active:text-darkPrimaryText "),r(l,"class","h-100% children:h-100% children:w-12 children:inline-flex children:items-center children:justify-center"),r(t,"class","w-screen select-none h-8 pl-2 flex justify-between items-center absolute text-primaryText dark:text-darkPrimaryText"),r(t,"data-tauri-drag-region","")},m(C,A){h(C,t,A),s(t,n),s(t,i),s(t,l),s(l,o),N.m(o,null),s(l,d),s(l,c),s(l,f),s(l,g),W.m(g,null),s(l,_),s(l,v),y||(b=[L(o,"click",e[12]),L(c,"click",e[9]),L(g,"click",e[10]),L(v,"click",e[11])],y=!0)},p(C,A){D!==(D=S(C))&&(N.d(1),N=D(C),N&&(N.c(),N.m(o,null))),A[0]&8&&u!==(u=C[3]?"Switch to Light mode":"Switch to Dark mode")&&r(o,"title",u),j!==(j=O(C))&&(W.d(1),W=j(C),W&&(W.c(),W.m(g,null))),A[0]&4&&k!==(k=C[2]?"Restore":"Maximize")&&r(g,"title",k)},d(C){C&&p(t),N.d(),W.d(),y=!1,oe(b)}}}function wr(e){let t;return{c(){t=a("div"),r(t,"class","i-ph-moon")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function kr(e){let t;return{c(){t=a("div"),r(t,"class","i-ph-sun")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function Mr(e){let t;return{c(){t=a("div"),r(t,"class","i-codicon-chrome-maximize")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function Cr(e){let t;return{c(){t=a("div"),r(t,"class","i-codicon-chrome-restore")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function Tr(e){let t;return{c(){t=a("span"),r(t,"class","i-codicon-menu animate-duration-300ms animate-fade-in")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function Ar(e){let t;return{c(){t=a("span"),r(t,"class","i-codicon-close animate-duration-300ms animate-fade-in")},m(n,i){h(n,t,i)},d(n){n&&p(t)}}}function zs(e){let t,n,i,l,o,u,d,c,f;function g(v,y){return v[3]?Lr:Sr}let k=g(e),_=k(e);return{c(){t=a("a"),_.c(),n=m(),i=a("br"),l=m(),o=a("div"),u=m(),d=a("br"),r(t,"href","##"),r(t,"class","nv justify-between h-8"),r(o,"class","bg-white/5 h-2px")},m(v,y){h(v,t,y),_.m(t,null),h(v,n,y),h(v,i,y),h(v,l,y),h(v,o,y),h(v,u,y),h(v,d,y),c||(f=L(t,"click",e[12]),c=!0)},p(v,y){k!==(k=g(v))&&(_.d(1),_=k(v),_&&(_.c(),_.m(t,null)))},d(v){v&&p(t),_.d(),v&&p(n),v&&p(i),v&&p(l),v&&p(o),v&&p(u),v&&p(d),c=!1,f()}}}function Sr(e){let t,n;return{c(){t=z(`Switch to Dark mode + `),n=a("div"),r(n,"class","i-ph-moon")},m(i,l){h(i,t,l),h(i,n,l)},d(i){i&&p(t),i&&p(n)}}}function Lr(e){let t,n;return{c(){t=z(`Switch to Light mode + `),n=a("div"),r(n,"class","i-ph-sun")},m(i,l){h(i,t,l),h(i,n,l)},d(i){i&&p(t),i&&p(n)}}}function zr(e){let t,n,i,l,o=e[35].label+"",u,d,c,f;function g(){return e[20](e[35])}return{c(){t=a("a"),n=a("div"),i=m(),l=a("p"),u=z(o),r(n,"class",e[35].icon+" mr-2"),r(t,"href","##"),r(t,"class",d="nv "+(e[1]===e[35]?"nv_selected":""))},m(k,_){h(k,t,_),s(t,n),s(t,i),s(t,l),s(l,u),c||(f=L(t,"click",g),c=!0)},p(k,_){e=k,_[0]&2&&d!==(d="nv "+(e[1]===e[35]?"nv_selected":""))&&r(t,"class",d)},d(k){k&&p(t),c=!1,f()}}}function Es(e){let t,n=e[35]&&zr(e);return{c(){n&&n.c(),t=pi()},m(i,l){n&&n.m(i,l),h(i,t,l)},p(i,l){i[35]&&n.p(i,l)},d(i){n&&n.d(i),i&&p(t)}}}function Ws(e){let t,n=e[32].html+"",i;return{c(){t=new Lo(!1),i=pi(),t.a=i},m(l,o){t.m(n,l,o),h(l,i,o)},p(l,o){o[0]&64&&n!==(n=l[32].html+"")&&t.p(n)},d(l){l&&p(i),l&&t.d()}}}function Er(e){let t,n,i,l,o,u,d,c,f,g,k,_,v,y,b,S,D,N,O,j,W,C,A,E,M,H,U=e[1].label+"",J,x,me,te,Y,de,Z,I,X,$,ae,ne,he,_e,fe,re,Ae,Se,P=e[5]&&Ls(e);function V(F,ce){return F[0]?Ar:Tr}let Le=V(e),ve=Le(e),ue=!e[5]&&zs(e),we=e[7],ie=[];for(let F=0;F`,k=m(),_=a("a"),_.innerHTML=`GitHub `,v=m(),y=a("a"),y.innerHTML=`Source - `,b=m(),S=a("br"),P=m(),I=a("div"),O=m(),j=a("br"),W=m(),T=a("div");for(let F=0;F',_e=m(),fe=a("div");for(let F=0;F{xt(B,1)}),hi()}ze?(Y=new ze(Je(F)),ui(Y.$$.fragment),Ce(Y.$$.fragment,1),$t(Y,te,null)):Y=null}if(ce[0]&64){le=F[6];let B;for(B=0;B{await confirm("Are you sure?")||N.preventDefault()}),Ge.onFileDropEvent(N=>{P(`File drop: ${JSON.stringify(N.payload)}`)});const l=navigator.userAgent.toLowerCase(),o=l.includes("android")||l.includes("iphone"),u=[{label:"Welcome",component:ea,icon:"i-ph-hand-waving"},{label:"Communication",component:aa,icon:"i-codicon-radio-tower"},!o&&{label:"CLI",component:la,icon:"i-codicon-terminal"},!o&&{label:"Dialog",component:Ma,icon:"i-codicon-multiple-windows"},{label:"File system",component:Sa,icon:"i-codicon-files"},{label:"HTTP",component:Fa,icon:"i-ph-globe-hemisphere-west"},!o&&{label:"Notifications",component:Ua,icon:"i-codicon-bell-dot"},!o&&{label:"App",component:_r,icon:"i-codicon-hubot"},!o&&{label:"Window",component:Va,icon:"i-codicon-window"},!o&&{label:"Shortcuts",component:Qa,icon:"i-codicon-record-keys"},{label:"Shell",component:xa,icon:"i-codicon-terminal-bash"},!o&&{label:"Updater",component:or,icon:"i-codicon-cloud-download"},!o&&{label:"Clipboard",component:cr,icon:"i-codicon-clippy"},{label:"WebRTC",component:pr,icon:"i-ph-broadcast"}];let d=u[0];function c(N){n(1,d=N)}let f;_t(async()=>{const N=Kt();n(2,f=await N.isMaximized()),tn("tauri://resize",async()=>{n(2,f=await N.isMaximized())})});function g(){Kt().minimize()}async function k(){const N=Kt();await N.isMaximized()?N.unmaximize():N.maximize()}let _=!1;async function v(){_||(_=await ro("Are you sure that you want to close this window?",{title:"Tauri API"}),_&&Kt().close())}let y;_t(()=>{n(3,y=localStorage&&localStorage.getItem("theme")=="dark"),Ps(y)});function b(){n(3,y=!y),Ps(y)}let S=Fs([]);Rs(e,S,N=>n(6,i=N));function P(N){S.update(X=>[{html:`
[${new Date().toLocaleTimeString()}]: `+(typeof N=="string"?N:JSON.stringify(N,null,1))+"
"},...X])}function I(N){S.update(X=>[{html:`
[${new Date().toLocaleTimeString()}]: `+N+"
"},...X])}function O(){S.update(()=>[])}let j,W,T;function C(N){T=N.clientY;const X=window.getComputedStyle(j);W=parseInt(X.height,10);const K=ne=>{const he=ne.clientY-T,_e=W-he;n(4,j.style.height=`${_e{document.removeEventListener("mouseup",ae),document.removeEventListener("mousemove",K)};document.addEventListener("mouseup",ae),document.addEventListener("mousemove",K)}let E;_t(async()=>{n(5,E=await $s()==="win32")});let M=!1,H,U,J=!1,x=0,me=0;const te=(N,X,K)=>Math.min(Math.max(X,N),K);_t(()=>{n(18,H=document.querySelector("#sidebar")),U=document.querySelector("#sidebarToggle"),document.addEventListener("click",N=>{U.contains(N.target)?n(0,M=!M):M&&!H.contains(N.target)&&n(0,M=!1)}),document.addEventListener("touchstart",N=>{if(U.contains(N.target))return;const X=N.touches[0].clientX;(0{if(J){const X=N.touches[0].clientX;me=X;const K=(X-x)/10;H.style.setProperty("--translate-x",`-${te(0,M?0-K:18.75-K,18.75)}rem`)}}),document.addEventListener("touchend",()=>{if(J){const N=(me-x)/10;n(0,M=M?N>-(18.75/2):N>18.75/2)}J=!1})});const Y=()=>Qi("https://tauri.app/"),de=N=>{c(N),n(0,M=!1)};function $(N){ri[N?"unshift":"push"](()=>{j=N,n(4,j)})}return e.$$.update=()=>{if(e.$$.dirty[0]&1){const N=document.querySelector("#sidebar");N&&Sr(N,M)}},[M,d,f,y,j,E,i,u,c,g,k,v,b,S,P,I,O,C,H,Y,de,$]}class zr extends ye{constructor(t){super(),ge(this,t,Lr,Ar,pe,{},null,[-1,-1])}}new zr({target:document.querySelector("#app")}); + `,b=m(),S=a("br"),D=m(),N=a("div"),O=m(),j=a("br"),W=m(),C=a("div");for(let F=0;F',_e=m(),fe=a("div");for(let F=0;F{xt(B,1)}),hi()}ze?(Y=new ze(Je(F)),ui(Y.$$.fragment),Te(Y.$$.fragment,1),Zt(Y,te,null)):Y=null}if(ce[0]&64){le=F[6];let B;for(B=0;B{await confirm("Are you sure?")||I.preventDefault()}),Ve.onFileDropEvent(I=>{D(`File drop: ${JSON.stringify(I.payload)}`)});const l=navigator.userAgent.toLowerCase(),o=l.includes("android")||l.includes("iphone"),u=[{label:"Welcome",component:ta,icon:"i-ph-hand-waving"},{label:"Communication",component:ra,icon:"i-codicon-radio-tower"},!o&&{label:"CLI",component:sa,icon:"i-codicon-terminal"},!o&&{label:"Dialog",component:Ca,icon:"i-codicon-multiple-windows"},{label:"File system",component:La,icon:"i-codicon-files"},{label:"HTTP",component:Ha,icon:"i-ph-globe-hemisphere-west"},!o&&{label:"Notifications",component:Va,icon:"i-codicon-bell-dot"},!o&&{label:"App",component:vr,icon:"i-codicon-hubot"},!o&&{label:"Window",component:Ya,icon:"i-codicon-window"},!o&&{label:"Shortcuts",component:er,icon:"i-codicon-record-keys"},{label:"Shell",component:ir,icon:"i-codicon-terminal-bash"},!o&&{label:"Updater",component:cr,icon:"i-codicon-cloud-download"},!o&&{label:"Clipboard",component:mr,icon:"i-codicon-clippy"},{label:"WebRTC",component:br,icon:"i-ph-broadcast"}];let d=u[0];function c(I){n(1,d=I)}let f;_t(async()=>{const I=$t();n(2,f=await I.isMaximized()),tn("tauri://resize",async()=>{n(2,f=await I.isMaximized())})});function g(){$t().minimize()}async function k(){const I=$t();await I.isMaximized()?I.unmaximize():I.maximize()}let _=!1;async function v(){_||(_=await ao("Are you sure that you want to close this window?",{title:"Tauri API"}),_&&$t().close())}let y;_t(()=>{n(3,y=localStorage&&localStorage.getItem("theme")=="dark"),Ds(y)});function b(){n(3,y=!y),Ds(y)}let S=Fs([]);Rs(e,S,I=>n(6,i=I));function D(I){S.update(X=>[{html:`
[${new Date().toLocaleTimeString()}]: `+(typeof I=="string"?I:JSON.stringify(I,null,1))+"
"},...X])}function N(I){S.update(X=>[{html:`
[${new Date().toLocaleTimeString()}]: `+I+"
"},...X])}function O(){S.update(()=>[])}let j,W,C;function A(I){C=I.clientY;const X=window.getComputedStyle(j);W=parseInt(X.height,10);const $=ne=>{const he=ne.clientY-C,_e=W-he;n(4,j.style.height=`${_e{document.removeEventListener("mouseup",ae),document.removeEventListener("mousemove",$)};document.addEventListener("mouseup",ae),document.addEventListener("mousemove",$)}let E;_t(async()=>{n(5,E=await Zs()==="win32")});let M=!1,H,U,J=!1,x=0,me=0;const te=(I,X,$)=>Math.min(Math.max(X,I),$);_t(()=>{n(18,H=document.querySelector("#sidebar")),U=document.querySelector("#sidebarToggle"),document.addEventListener("click",I=>{U.contains(I.target)?n(0,M=!M):M&&!H.contains(I.target)&&n(0,M=!1)}),document.addEventListener("touchstart",I=>{if(U.contains(I.target))return;const X=I.touches[0].clientX;(0{if(J){const X=I.touches[0].clientX;me=X;const $=(X-x)/10;H.style.setProperty("--translate-x",`-${te(0,M?0-$:18.75-$,18.75)}rem`)}}),document.addEventListener("touchend",()=>{if(J){const I=(me-x)/10;n(0,M=M?I>-(18.75/2):I>18.75/2)}J=!1})});const Y=()=>Ki("https://tauri.app/"),de=I=>{c(I),n(0,M=!1)};function Z(I){ri[I?"unshift":"push"](()=>{j=I,n(4,j)})}return e.$$.update=()=>{if(e.$$.dirty[0]&1){const I=document.querySelector("#sidebar");I&&Wr(I,M)}},[M,d,f,y,j,E,i,u,c,g,k,v,b,S,D,N,O,A,H,Y,de,Z]}class Dr extends ye{constructor(t){super(),ge(this,t,Pr,Er,pe,{},null,[-1,-1])}}new Dr({target:document.querySelector("#app")}); diff --git a/examples/api/src/views/Notifications.svelte b/examples/api/src/views/Notifications.svelte index 8fed0aea4af6..82c7ec02babc 100644 --- a/examples/api/src/views/Notifications.svelte +++ b/examples/api/src/views/Notifications.svelte @@ -1,22 +1,15 @@