export enum ViewMode { ASCII = 'ASCII', HEX = 'HEX' } export interface SerialLogEntry { id: string; timestamp: Date; direction: 'TX' | 'RX'; data: Uint8Array; } // Minimal Web Serial API type definitions since they aren't in all TS configs yet export interface SerialPort { open(options: { baudRate: number }): Promise; close(): Promise; readable: ReadableStream | null; writable: WritableStream | null; } export interface NavigatorSerial { requestPort(options?: { filters: any[] }): Promise; }