import type { CreateProfilePayload, DeviceProfileItem, DeviceTypeItem, LinkedDeviceItem, ListLinkedDevicesParams, ListProfileParams, ListProfileResponse } from './types'; /** * 获取设备类型列表 * GET: /tenant/device/type/all * * - 不传 params:返回左侧菜单使用的全量设备类型数组 * - 传入 code + with:返回指定设备类型详情(含 active_models 等扩展字段) */ export declare const getDeviceTypes: (params?: { code?: string; with?: string[]; }) => Promise; /** * 设备配置列表 * GET: /tenant/device/profile */ export declare const getDeviceProfiles: (params: ListProfileParams) => Promise; /** * 创建设备配置 * POST: /tenant/device/profile */ export declare const createDeviceProfile: (payload: CreateProfilePayload) => Promise; /** * 更新设备配置 * PUT: /tenant/device/profile/{id} */ export declare const updateDeviceProfile: (id: number | string, body: any) => Promise; /** * 关联设备检查(用于删除前判断 Profile 是否被设备占用) * GET: /tenant/device * 仅传 profile_id / type_kind / with=['workarea'],不传 workarea_id */ export declare const getProfileLinkedDevices: (params: ListLinkedDevicesParams) => Promise; /** * 删除设备配置 * DELETE: /tenant/device/profile/{id} */ export declare const deleteDeviceProfile: (id: number | string) => Promise;