import type { CreateDeviceConnectionPayload, CreateDevicePayload, DeviceBrandItem, DeviceConnectionItem, DeviceItem, DeviceKind, DeviceTypeItem, ListDeviceConnectionParams, ListDeviceParams, SaveWorkAreaPayload, UpdateDeviceConnectionPayload, UpdateDevicePayload, WorkAreaItem } from './types';
export interface ApiResponse<T> {
    code?: number;
    message?: string;
    data: T;
}
export declare const getWorkAreas: () => Promise<WorkAreaItem[]>;
export declare const createWorkArea: (payload: SaveWorkAreaPayload) => Promise<WorkAreaItem | null>;
export declare const updateWorkArea: (id: number | string, payload: SaveWorkAreaPayload) => Promise<WorkAreaItem | null>;
export declare const sortWorkAreas: (ids: number[]) => Promise<any>;
export declare const deleteWorkArea: (id: number | string) => Promise<any>;
export declare const getWorkAreaDetail: (params: {
    id: number | string;
    relation_count?: string[];
}) => Promise<ApiResponse<WorkAreaItem[] | WorkAreaItem>>;
export declare const getDevices: (params: ListDeviceParams) => Promise<DeviceItem[]>;
export declare const getDeviceDetail: (id: number | string) => Promise<DeviceItem | null>;
export declare const createDeviceConnection: (payload: CreateDeviceConnectionPayload) => Promise<DeviceConnectionItem | null>;
export declare const getDeviceConnections: (params: ListDeviceConnectionParams) => Promise<DeviceConnectionItem[]>;
export declare const getDeviceConnectionDetail: (id: number | string) => Promise<DeviceConnectionItem | null>;
export declare const updateDeviceConnection: (id: number | string, payload: UpdateDeviceConnectionPayload) => Promise<DeviceConnectionItem | null>;
export declare const deleteDeviceConnection: (id: number | string) => Promise<any>;
export declare const getDeviceTypes: (params: {
    kind: DeviceKind;
    with?: string[];
}) => Promise<DeviceTypeItem[]>;
export declare const getDeviceBrands: () => Promise<DeviceBrandItem[]>;
export declare const createDevice: (payload: CreateDevicePayload) => Promise<DeviceItem | null>;
export declare const sortDevices: (ids: number[]) => Promise<any>;
export declare const updateDevice: (id: number | string, payload: UpdateDevicePayload) => Promise<DeviceItem | null>;
export declare const deleteDevice: (id: number | string) => Promise<any>;
