/** * Browser implementation of find_port using WebSerial + WebUSB APIs * WebSerial: Communication with device * WebUSB: Device identification and serial numbers * * Usage Examples: * * // Interactive mode - always returns array * const findProcess = await findPort(); * const robotConnections = await findProcess.result; * const robot = robotConnections[0]; // First (and only) robot * await calibrate(robot, options); * * // Auto-connect mode - returns array of all attempted connections * const findProcess = await findPort({ * robotConfigs: [ * { robotType: "so100_follower", robotId: "arm1", serialNumber: "ABC123" }, * { robotType: "so100_leader", robotId: "arm2", serialNumber: "DEF456" } * ] * }); * const robotConnections = await findProcess.result; * for (const robot of robotConnections.filter(r => r.isConnected)) { * await calibrate(robot, options); * } * * // Store/load from localStorage * localStorage.setItem('myRobots', JSON.stringify(robotConnections)); * const storedRobots = JSON.parse(localStorage.getItem('myRobots')); * await calibrate(storedRobots[0], options); */ import type { FindPortConfig, FindPortProcess } from "./types/port-discovery.js"; /** * Main findPort function - clean API with Two modes: * * Mode 1: Interactive - Returns single RobotConnection * Mode 2: Auto-connect - Returns RobotConnection[] */ export declare function findPort(config?: FindPortConfig): Promise; //# sourceMappingURL=find_port.d.ts.map