import { WidgetBase } from "@csnext/cs-client";
import { GraphSettings, GraphObject } from "@csnext/cs-data";
import { IMenu } from "@csnext/cs-core";
import { GraphData } from "@antv/g6";
import { DocDatasource } from "../../datasources/doc-datasource";
export default class NetworkGraph extends WidgetBase {
    data?: GraphData;
    visibleNodes: string[];
    private forceLayout?;
    private showMenu;
    private x;
    private y;
    private graph?;
    get source(): DocDatasource | undefined;
    private settingsUpdatedDebounce;
    contextMenuitems: any[];
    getShortDate(date: Date): any;
    get settings(): GraphSettings;
    settingsChanged(): void;
    settingsUpdated(): void;
    constructor();
    updateMenu(menu: IMenu): void;
    private updateNode;
    private updateEdge;
    updateGraph(graph: GraphObject, redraw?: boolean): void;
    contentLoaded(): void;
    refreshDragedNodePosition(e: any): void;
    private labelFormatter;
    updateContextMenu(a: any): void;
    getNodeStyle(): {
        shape: string;
        size: number[];
        color: string;
        style: {
            fill: string;
            keepVisualSize: boolean;
            lineWidth: number;
        };
        labelCfg: {
            position: string;
            autoRotate: boolean;
            style: {
                fill: string;
                fontSize: number;
            };
        };
    };
    initGraph(): void;
    mounted(): void;
}
