export interface DeviceEntry { address: string; serial: string; } export type DeviceMap = Record; /** Add or update an alias. The alias follows the physical device, so the * serial is overwritten with whatever the latest address reports. */ export declare function setAlias(map: DeviceMap, alias: string, address: string, serial: string): DeviceMap; export declare function removeAlias(map: DeviceMap, alias: string): DeviceMap; /** Resolve a user ref to a reachable address. If the ref names a known alias, * use its stored address; otherwise treat the ref itself as a raw address. */ export declare function lookupRef(map: DeviceMap, ref: string): { address: string; alias: string | undefined; }; export declare function loadDevices(): DeviceMap; export declare function saveDevices(map: DeviceMap): string; //# sourceMappingURL=devices.d.ts.map