import React from 'react';
import type { DeviceConnectionItem, I18nText, PeripheralConnectionRow, PeripheralDevice, SetupFlowState, PeripheralUsage, PeripheralTestPayload, SaasAppPeripheralProps } from '../types';
interface PeripheralConnectionCardContainerProps {
    /** 当前卡片对应的渲染行，内部字段尽量保持接口原样。 */
    row: PeripheralConnectionRow;
    variant?: SaasAppPeripheralProps['variant'];
    getText: (key: string) => string;
    translation: (val?: I18nText) => string;
    getAppInstance: () => any;
    /** 连接动作或订阅同步得到的物理设备状态回写父级渲染列表。 */
    onPhysicalChange: (rowId: number, physical?: PeripheralDevice) => void;
    /** 业务用途选择完成后回写父级渲染列表。 */
    onUsageChange: (rowId: number, usage?: PeripheralUsage) => void;
    onTest?: (payload: PeripheralTestPayload) => void | Promise<void>;
    onEdit: (connection: DeviceConnectionItem) => void;
    onRemove: (connection: DeviceConnectionItem) => Promise<void>;
    onDeleteDevice: (connection: DeviceConnectionItem) => Promise<void>;
    /** 页面级设置流程是候选设备和流程步骤的唯一状态源。 */
    setupFlowState?: SetupFlowState;
    onSetupFlowChange: (rowId: number, state: SetupFlowState) => void;
    /** 新增自动发现连接后，由页面请求自动打开当前行的物理设备选择弹窗。 */
    autoOpenPhysicalSelect?: boolean;
    onAutoOpenPhysicalSelectHandled?: (rowId: number) => void;
}
declare const PeripheralConnectionCardContainer: React.FC<PeripheralConnectionCardContainerProps>;
export default PeripheralConnectionCardContainer;
