import React from 'react';
import type { CreateDeviceConnectionPayload, DeviceConnectionItem, DeviceItem, I18nText, UpdateDeviceConnectionPayload } from '../../../types';
import type { ConnectMode } from '../hooks/useConnectDeviceModal';
import '../../AddDeviceModal/index.less';
import './ConnectExistingDeviceModal.less';
interface ConnectExistingDeviceModalProps {
    open: boolean;
    mode: ConnectMode;
    currentDevice: DeviceItem;
    editConnection?: DeviceConnectionItem;
    connectedDeviceIds: number[];
    currentWorkAreaId?: number;
    getText: (key: string) => string;
    translation: (val?: I18nText) => string;
    submitting: boolean;
    onClose: () => void;
    onSubmit?: (payload: CreateDeviceConnectionPayload) => void;
    onUpdate?: (id: number, payload: UpdateDeviceConnectionPayload) => void;
}
declare const ConnectExistingDeviceModal: React.FC<ConnectExistingDeviceModalProps>;
export default ConnectExistingDeviceModal;
