/**
 * 环境检测工具
 *
 * 统一的 Tauri 环境判断，避免各模块各自实现导致不一致。
 */

interface TauriWindow extends Window {
  __TAURI_INTERNALS__?: unknown;
}

export function isTauri(): boolean {
  return (
    typeof window !== 'undefined' &&
    !!(window as TauriWindow).__TAURI_INTERNALS__
  );
}


