/** * Machine-managed cache of USB serial → last-seen {chip, deviceId}, so the * picker and `ls` can show them while a board is disconnected. The device id is * cached mainly for USB-UART bridge boards, whose serial isn't the chip MAC and * so can't be derived offline. Rewritten on every connect, not hand-edited. * Firmware version is not cached — it goes stale on reflash. */ export interface CachedDevice { chip?: string; deviceId?: string; } export declare function deviceCacheFilePath(): string; export declare function getCachedChip(serialNumber: string | undefined): string | undefined; export declare function getCachedDeviceId(serialNumber: string | undefined): string | undefined; /** Records connect-handshake facts for a port's serial. Never throws — a cache * write must not disrupt a live session. */ export declare function rememberDeviceForPort(port: string | undefined, facts: CachedDevice): Promise; //# sourceMappingURL=deviceCache.d.ts.map