import React from 'react';
import { Cell, Graph, Node } from '@antv/x6';
import './customNode';
import './styles/index.less';
import CdpFlowTypes from '../../types/flow';
interface Value {
    lineList: CdpFlowTypes.Line[];
    nodeList: CdpFlowTypes.Node[];
}
export interface FlowInstance {
    graph?: Graph;
}
export declare function getData(graph_: Graph): {
    lineList: CdpFlowTypes.Line[];
    nodeList: CdpFlowTypes.Node[];
} | null;
declare const _default: React.ForwardRefExoticComponent<{
    className?: string | undefined;
    defaultValue?: Value | undefined;
    readonly?: boolean | undefined;
    onChange?: ((val: Value) => void) | undefined;
    onReady?: ((graph?: Graph | undefined) => void) | undefined;
    onClickNode?: ((node?: Node<Node.Properties> | undefined) => void) | undefined;
    onRemoveNode?: ((node?: Cell<Cell.Properties>[] | undefined) => void) | undefined;
    onBack?: (() => void) | undefined;
} & React.RefAttributes<FlowInstance>>;
export default _default;
