import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
import { Observable, Subject } from 'rxjs';
import { ResourceListBase } from '../../base-list';
import { ResourceSelectContextService } from '../../context.service';
import { K8sApiService } from './../../../../api/public-api';
import { K8sUtilService } from './../../../../utils/public-api';
import { ClusterDataItem, ClusterFederationResource, ClusterResource } from './../../types';
export declare class ClusterListComponent extends ResourceListBase implements OnInit, OnDestroy {
    private readonly k8sApi;
    value: string;
    type: "cluster";
    selectedCluster: ClusterDataItem;
    clusters: ClusterDataItem[];
    federations: ClusterFederationResource[];
    clusters$: Observable<any[] | ClusterResource[]>;
    federations$: Observable<ClusterFederationResource[]>;
    loadClusterInfo$$: Subject<ClusterResource[]>;
    clusterInfo$: Observable<Record<string, {
        nodeNumber: number;
        isHA: boolean;
    }> | {}>;
    normalStatusSet: Set<string>;
    clusterInfo: Record<string, {
        nodeNumber: number;
        isHA: boolean;
    }>;
    constructor(k8sApi: K8sApiService, contextService: ResourceSelectContextService, cdr: ChangeDetectorRef, k8sUtil: K8sUtilService);
    ngOnInit(): void;
    private setSelected;
    ngOnDestroy(): void;
    private updateData;
    private getClusterInfo;
    mapResource(list: ClusterResource[]): ClusterDataItem[];
    private getFederation;
    private getStatusText;
}
