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

// Injected by the nodejs-mobile-cordova plugin once `cordova.js` has loaded.
interface Window {
  nodejs?: {
    start: (filename: string, callback?: (err: unknown) => void) => void;
    channel: {
      on: (event: string, callback: (msg: unknown) => void) => void;
      post: (event: string, message: unknown) => void;
    };
  };
}
