2024-03-01 14:29:01 +03:00
|
|
|
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy
|
2023-10-17 15:40:20 +03:00
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
/** @ignore */
|
|
|
|
|
2023-11-20 23:53:13 +03:00
|
|
|
import type { invoke, transformCallback, convertFileSrc } from './core'
|
2023-10-17 15:40:20 +03:00
|
|
|
|
|
|
|
/** @ignore */
|
|
|
|
declare global {
|
|
|
|
interface Window {
|
|
|
|
__TAURI_INTERNALS__: {
|
|
|
|
invoke: typeof invoke
|
|
|
|
transformCallback: typeof transformCallback
|
|
|
|
convertFileSrc: typeof convertFileSrc
|
2023-10-18 16:37:30 +03:00
|
|
|
ipc: (message: {
|
|
|
|
cmd: string
|
|
|
|
callback: number
|
|
|
|
error: number
|
|
|
|
payload: unknown
|
|
|
|
options?: InvokeOptions
|
|
|
|
}) => void
|
2023-10-17 15:40:20 +03:00
|
|
|
metadata: {
|
|
|
|
windows: WindowDef[]
|
|
|
|
currentWindow: WindowDef
|
2024-01-24 17:05:18 +03:00
|
|
|
webviews: WebviewDef[]
|
|
|
|
currentWebview: WebviewDef
|
2023-10-17 15:40:20 +03:00
|
|
|
}
|
|
|
|
plugins: {
|
|
|
|
path: {
|
|
|
|
sep: string
|
|
|
|
delimiter: string
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-24 17:05:18 +03:00
|
|
|
/** @ignore */
|
|
|
|
interface WebviewDef {
|
|
|
|
windowLabel: string
|
|
|
|
label: string
|
|
|
|
}
|
|
|
|
|
2023-10-17 15:40:20 +03:00
|
|
|
/** @ignore */
|
|
|
|
interface WindowDef {
|
|
|
|
label: string
|
|
|
|
}
|