2023-10-17 15:40:20 +03:00
|
|
|
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
|
|
|
|
// 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
|
|
|
|
}
|
|
|
|
plugins: {
|
|
|
|
path: {
|
|
|
|
sep: string
|
|
|
|
delimiter: string
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/** @ignore */
|
|
|
|
interface WindowDef {
|
|
|
|
label: string
|
|
|
|
}
|