Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

949 B
Raw Blame
/**
 * Ambient declarations for globals the app reads off `window`.
 *
 * The Tauri runtime injects these itself — there is no import that brings
 * them into the type system — so without this file every read had to go
 * through an `as any` cast (or, in App.tsx, simply failed to compile).
 * `unknown` is deliberate: these are only ever used as presence checks
 * ("are we running inside the Tauri WebView?"), never called through.
 */
declare global {
  interface Window {
    /** Tauri v2 runtime bridge. Present only inside the Tauri WebView. */
    __TAURI_INTERNALS__?: unknown
    /** Tauri v1 runtime bridge / v2 `withGlobalTauri` alias. */
    __TAURI__?: unknown
    /** What the app binary was built for ("macos", "ios", ...). Set by the
     *  Rust side before the page runs (src-tauri/src/host_kind.rs), read
     *  through `nativeHost()` in lib/device-kind.ts. Absent in a browser. */
    __LU_HOST__?: unknown
  }
}

export {}