import React from 'react'; import { DeviceItem, LocaleType } from '../../types'; import './index.less'; /** * SelectDevice 组件 Props */ export interface SelectDeviceProps { /** 设备列表 */ deviceList?: DeviceItem[]; /** 语言 */ locale?: LocaleType; /** 加载状态(列表加载) */ loading?: boolean; /** 上次使用的设备ID */ lastUsedDeviceId?: number; /** 选择设备回调 */ onSelect?: (device: DeviceItem) => void; /** 确认按钮文本 */ confirmOkText?: string; /** 取消按钮文本 */ confirmCancelText?: string; } /** * SelectDevice 设备选择组件 * @description 展示设备列表,支持搜索过滤和选择,已被使用的设备需确认后选择 */ declare const SelectDevice: React.FC; export default SelectDevice;