/// <reference types="vite/client" />

interface ImportMetaEnv {
  readonly VITE_USE_MOCK?: string;
  /** Selects the web (client/server) HTTP+WS transport when set to `"http"` (ticket #13). */
  readonly VITE_TRANSPORT?: string;
}

interface ImportMeta {
  readonly env: ImportMetaEnv;
}

/**
 * The transport this bundle was built for, inlined as a literal by Vite
 * `define` (ticket #74, F1). It is derived in `vite.config.ts` from the same
 * `VITE_TRANSPORT` variable and the same `transportFromEnv()` predicate that
 * `resolveTransport()` uses, so it always agrees with the adapters actually
 * wired in — mock aside, which is a separate `VITE_USE_MOCK` switch.
 *
 * `main.tsx` publishes it on `window`, which makes it survive minification and
 * lets a built bundle be identified without grepping for a minified symbol.
 */
declare const __IDEA_TRANSPORT__: "http" | "tauri";
