import React from 'react';
import type { CreateDeviceConnectionPayload, DeviceConnectionType, DeviceConnectionItem, DeviceItem, DeviceKind, I18nText, UpdateDeviceConnectionPayload } from '../../../model';
import './DeviceConnectionsPanel.less';
interface DeviceConnectionsPanelProps {
    activeKind: DeviceKind;
    connectionType: DeviceConnectionType;
    isBuildIns?: boolean;
    hideConnectButton?: boolean;
    /** 只读：隐藏单条连接的编辑/删除入口，仅保留查看与预览 */
    readonly?: boolean;
    currentDevice: DeviceItem;
    connections: DeviceConnectionItem[];
    loading: boolean;
    submitting: boolean;
    deleting: boolean;
    deletingDevice?: boolean;
    getText: (key: string) => string;
    translation: (val?: I18nText) => string;
    onCreateConnection: (payload: CreateDeviceConnectionPayload) => Promise<void>;
    onUpdateConnection: (id: number, payload: UpdateDeviceConnectionPayload) => Promise<void>;
    onDeleteConnection: (id: number) => Promise<void>;
    onEditDevice?: (device: DeviceItem) => void;
    onDeleteDevice?: (device: DeviceItem) => void;
}
declare const DeviceConnectionsPanel: React.FC<DeviceConnectionsPanelProps>;
export default DeviceConnectionsPanel;
