import React from 'react';
import { IExecution, IPipeline } from '../../../domain';
import { IExecutionViewState, IPipelineGraphNode } from './pipelineGraph.service';
import './pipelineGraph.less';
export interface IPipelineGraphProps {
    execution?: IExecution;
    onNodeClick: (node: IPipelineGraphNode, subIndex?: number) => void;
    pipeline?: IPipeline;
    shouldValidate?: boolean;
    viewState: IExecutionViewState;
}
export interface IPipelineGraphState {
    allNodes: IPipelineGraphNode[];
    graphHeight: number;
    graphWidth: string;
    labelOffsetX: number;
    labelOffsetY: number;
    maxLabelWidth: number;
    nodeRadius: number;
    phaseCount: number;
    rowHeights: number[];
}
export declare class PipelineGraph extends React.Component<IPipelineGraphProps, IPipelineGraphState> {
    private defaultNodeRadius;
    private defaultState;
    private element;
    private graphStatusHash;
    private graphVerticalPadding;
    private minExecutionGraphHeight;
    private minLabelWidth;
    private pipelineValidations;
    private rowPadding;
    private validationSubscription;
    private windowResize;
    constructor(props: IPipelineGraphProps);
    private highlight;
    private handleWindowResize;
    private handleWheel;
    /**
     * Used to draw inverse bezier curve between stages
     */
    private curvedLink;
    private getLastPhase;
    private createNodes;
    /**
     * Sets phases and adds children/parents to nodes
     * Probably blows the stack if circular dependencies exist, maybe not
     */
    private applyPhasesAndLink;
    private fixOverlaps;
    private createPlaceholderNode;
    /**
     * Sets the width of the graph and determines the width available for each label
     */
    private applyPhaseWidth;
    private applyNodeHeights;
    private setNodePositions;
    private createLinks;
    private linkNodes;
    private applyAllNodes;
    private establishRowHeights;
    private updateGraph;
    private resetLinks;
    componentDidMount(): void;
    private refCallback;
    private validatePipeline;
    componentWillReceiveProps(nextProps: IPipelineGraphProps): void;
    componentWillUnmount(): void;
    render(): JSX.Element;
}
