import type { IPipeline } from '../../../domain/IPipeline';
import type { IStage } from '../../../domain/IStage';
export interface ITriggerPipelineResponse {
    eventId: string;
    ref: string;
}
export declare class PipelineConfigService {
    private static configViewStateCache;
    private static buildViewStateCacheKey;
    static getPipelinesForApplication(applicationName: string): PromiseLike<IPipeline[]>;
    static getStrategiesForApplication(applicationName: string): PromiseLike<IPipeline[]>;
    static getHistory(id: string, isStrategy: boolean, count?: number): PromiseLike<IPipeline[]>;
    static deletePipeline(applicationName: string, pipeline: IPipeline, pipelineName: string): PromiseLike<void>;
    static savePipeline(toSave: IPipeline): PromiseLike<void>;
    static reorderPipelines(application: string, idsToIndices: {
        [key: string]: number;
    }, isStrategy?: boolean): PromiseLike<void>;
    static renamePipeline(applicationName: string, pipeline: IPipeline, currentName: string, newName: string): PromiseLike<void>;
    static triggerPipeline(applicationName: string, pipelineName: string, body?: any): PromiseLike<string>;
    static getDownstreamStageIds(map: Map<string | number, Array<string | number>>, stage: string | number): Array<string | number>;
    static getDependencyCandidateStages(pipeline: IPipeline, stage: IStage): IStage[];
    private static groupStagesByRequisiteStageRefIds;
    static getAllUpstreamDependencies(pipeline: IPipeline, stage: IStage): IStage[];
    private static sortPipelines;
}
