import React from 'react';
import type { DeviceConnectionItem, I18nText, PeripheralConnectionRow, PeripheralDevice, PeripheralUsage, PeripheralTestPayload, SaasAppPeripheralProps } from '../types';
interface PeripheralConnectionCardContainerProps {
    /** 当前卡片对应的渲染 row，内部字段尽量保持接口原样。 */
    row: PeripheralConnectionRow;
    variant?: SaasAppPeripheralProps['variant'];
    getText: (key: string) => string;
    translation: (val?: I18nText) => string;
    getAppInstance: () => any;
    /** 连接动作或订阅同步得到的物理设备状态回写父级 rows。 */
    onPhysicalChange: (rowId: number, physical?: PeripheralDevice) => void;
    /** usage 选择完成后回写父级 rows。 */
    onUsageChange: (rowId: number, usage?: PeripheralUsage) => void;
    onTest?: (payload: PeripheralTestPayload) => void | Promise<void>;
    onEdit: (connection: DeviceConnectionItem) => void;
    onRemove: (connection: DeviceConnectionItem) => void;
}
declare const PeripheralConnectionCardContainer: React.FC<PeripheralConnectionCardContainerProps>;
export default PeripheralConnectionCardContainer;
