import type { CreateDeviceConnectionPayload, DeviceConnectionType, DeviceKind, DeviceRow, UpdateDeviceConnectionPayload } from '../../../model';
import type { DrawerTabKey } from '../../deviceDetail/types';
interface UseDeviceConnectionsParams {
    open: boolean;
    activeTab: DrawerTabKey;
    activeKind: DeviceKind;
    connectionType: DeviceConnectionType;
    displayRecord?: DeviceRow;
    refreshKey?: number;
    onConnectionsChanged?: () => void;
}
/** 管理详情抽屉连接页的连接列表加载和连接增删改请求。 */
export declare const useDeviceConnections: ({ open, activeTab, activeKind, connectionType, displayRecord, refreshKey, onConnectionsChanged, }: UseDeviceConnectionsParams) => {
    connections: import("../../../model").DeviceConnectionItem[];
    loading: boolean;
    submitting: boolean;
    deleting: boolean;
    handleCreateConnection: (payload: CreateDeviceConnectionPayload) => Promise<void>;
    handleUpdateConnection: (id: number, payload: UpdateDeviceConnectionPayload) => Promise<void>;
    handleDeleteConnection: (id: number) => Promise<void>;
};
export {};
