import express from 'express'; import { DeviceManager, type MobilewrightLauncher } from './lib/device-manager.js'; export type { MobilewrightLauncher }; /** Options passed to {@link start}. */ export interface InspectorOptions { /** iOS launcher from mobilewright. */ ios: MobilewrightLauncher; /** Android launcher from mobilewright. */ android: MobilewrightLauncher; /** HTTP port to listen on. Defaults to 4621. */ port?: number; } /** Handle returned by {@link start} to retrieve the server URL and shut it down. */ export interface InspectorServer { /** The URL the inspector is listening on, e.g. `http://localhost:4621`. */ url: string; /** Gracefully close the device connection and stop the HTTP server. */ close: () => Promise; } /** The Inspector's Express app, without listening; split out so tests can drive it directly. */ export declare function createApp(deviceManager: DeviceManager): express.Express; /** * Start the Mobilewright Inspector HTTP server. * Pass the ios and android launcher objects from mobilewright so the inspector * can list and connect to devices without a circular dependency. */ export declare function start({ ios, android, port }: InspectorOptions): Promise; //# sourceMappingURL=index.d.ts.map