import type { CreateDeviceConnectionPayload, DeviceKind, DeviceRow, UpdateDeviceConnectionPayload } from '../../../types';
import type { DrawerTabKey } from '../components/DrawerSidebar';
interface UseDeviceConnectionsParams {
    open: boolean;
    activeTab: DrawerTabKey;
    activeKind: DeviceKind;
    displayRecord?: DeviceRow;
    onConnectionsChanged?: () => void;
}
/** 管理详情抽屉连接页的连接列表加载和连接增删改请求。 */
export declare const useDeviceConnections: ({ open, activeTab, activeKind, displayRecord, onConnectionsChanged, }: UseDeviceConnectionsParams) => {
    connections: import("../../../types").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 {};
