import type { AutoDetectTypes } from '@serialport/bindings-cpp'; import { type SerialPortOpenOptions } from 'serialport'; import { type DeviceInfo } from '../../nrfutil/device'; import { type NrfutilDevice } from '../../nrfutil/device/common'; import type { RootState } from '../store'; export interface Device extends NrfutilDevice { nickname?: string; favorite?: boolean; persistedSerialPortOptions?: SerialPortOpenOptions; } export interface DeviceWithSerialNumber extends Device { serialNumber: string; } export declare const isDeviceWithSerialNumber: (device: Device) => device is DeviceWithSerialNumber; export interface DeviceState { devices: Device[]; selectedDevice?: Device; selectedDeviceInfo?: DeviceInfo; selectedVirtualDevice?: string; } export declare const reducer: import("redux").Reducer, deselectDevice: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"device/deselectDevice">, resetDeviceNickname: import("@reduxjs/toolkit").ActionCreatorWithPayload, selectDevice: import("@reduxjs/toolkit").ActionCreatorWithPayload, setSelectedDeviceInfo: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload, addDevice: import("@reduxjs/toolkit").ActionCreatorWithPayload, removeDevice: import("@reduxjs/toolkit").ActionCreatorWithPayload, setDeviceNickname: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[device: Device, nickname: string], { device: Device; nickname: string; }, "device/setDeviceNickname", never, never>, toggleDeviceFavorited: import("@reduxjs/toolkit").ActionCreatorWithPayload, persistSerialPortOptions: import("@reduxjs/toolkit").ActionCreatorWithPayload, "device/persistSerialPortOptions">, selectVirtualDevice: import("@reduxjs/toolkit").ActionCreatorWithPayload, deselectVirtualDevice: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"device/deselectVirtualDevice">; export declare const getDevice: (state: RootState, serialNumber: string) => Device | undefined; export declare const getDevices: (state: RootState) => Device[]; export declare const deviceIsSelected: (state: RootState) => boolean; export declare const selectedDevice: (state: RootState) => Device | undefined; export declare const selectedDeviceInfo: (state: RootState) => DeviceInfo | undefined; export declare const selectedSerialNumber: (state: RootState) => string | null | undefined; export declare const getReadbackProtection: (state: RootState) => import("../../nrfutil/device").ProtectionStatus | undefined; export declare const selectedVirtualDevice: (state: RootState) => string | undefined; //# sourceMappingURL=deviceSlice.d.ts.map