import { RootMap } from '../../../apis/codiac-api/contracts';
import { CommandBaseExec } from '../../../command-base-exec';
import { AtLeast } from '@codiac.io/codiac-common/contracts';
import { InteractionModes } from '../../../uilogic/config-ui-utils';
import { IEnviroClusterPair } from '../../../uilogic/rootmap-ui-utils';
export type FlatEnviro = {
    name: string;
    sequence?: number | undefined;
    enterprise: string;
    clusters: {
        name: string;
        provider: string;
        locationName: string;
    }[];
};
export default class EnvironmentClusterDetach extends CommandBaseExec<IEnviroClusterPair> {
    static description: string;
    static aliases: string[];
    static flags: {
        enterprise: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
        environment: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
        cluster: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
        silent: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
        echo: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
        "to-script": import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
        "take-defaults": import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
    };
    static args: {};
    captureArgs(): Promise<[Partial<IEnviroClusterPair>, InteractionModes | undefined, boolean]>;
    buildCandidate_silently(partial: AtLeast<IEnviroClusterPair, 'enterprise'>, rootMap: RootMap): Promise<IEnviroClusterPair | undefined>;
    buildCandidate_interactively(partial: AtLeast<IEnviroClusterPair, 'enterprise'>, rootMap: RootMap, takeDefaults: boolean): Promise<IEnviroClusterPair | undefined>;
    buildCommandString(candidate: IEnviroClusterPair, cmd: string[]): string[];
    executeTask(candidate: IEnviroClusterPair): Promise<void>;
    private buildEnviroListForText;
    private buildEnviroClusterDesc;
    private buildEnviroTree;
    private FlattenEnviros;
}
