/** 设备结构（与 GET /tenant/device 的 structure[] 一致） */
export declare type TopologyDeviceStructure = 'standalone' | 'composite' | 'component';
/** GET /tenant/device（设备列表·无翻页）查询参数 */
export interface TopologyDeviceListQuery {
    with?: string[];
    workarea_id?: number;
    type_kind?: 'smart' | 'dumb' | 'integrated';
    profile_id?: number;
    /** 设备结构多选，序列化为 query `structure[]`；拓扑默认不含 component 子设备 */
    structure?: TopologyDeviceStructure[];
}
export declare const TOPOLOGY_DEVICE_LIST_DEFAULT_QUERY: TopologyDeviceListQuery;
/** 实际发往后端的 query（structure 序列化为 structure[]） */
export declare type TopologyDeviceListHttpParams = Omit<TopologyDeviceListQuery, 'structure'> & {
    'structure[]'?: TopologyDeviceStructure[];
};
export interface TopologyDeviceListRequestInfo {
    method: 'GET';
    url: '/tenant/device';
    params: TopologyDeviceListHttpParams;
}
/**
 * 拉取设备列表（无翻页），返回请求描述与原始 HTTP 封装响应。
 */
export declare function fetchTopologyDeviceList(query?: TopologyDeviceListQuery): Promise<{
    request: TopologyDeviceListRequestInfo;
    response: unknown;
}>;
/** GET /tenant/device/connection（设备连接列表）查询参数 */
export interface TopologyDeviceConnectionListQuery {
    with?: string[];
    source_device_id?: number;
    target_device_id?: number;
    /** 连接类型：拓扑默认 dumb（外设连接），不含 component 内置组件连接 */
    type?: 'dumb' | 'component';
}
export declare const TOPOLOGY_DEVICE_CONNECTION_LIST_DEFAULT_QUERY: TopologyDeviceConnectionListQuery;
export interface TopologyDeviceConnectionListRequestInfo {
    method: 'GET';
    url: '/tenant/device/connection';
    params: TopologyDeviceConnectionListQuery;
}
/**
 * 拉取设备连接列表，每条记录代表一条 source_device → target_device 的连接边。
 */
export declare function fetchTopologyDeviceConnectionList(query?: TopologyDeviceConnectionListQuery): Promise<{
    request: TopologyDeviceConnectionListRequestInfo;
    response: unknown;
}>;
