import { HorizontalAnchor, VerticalAnchor, ConnectorType, PathTextAlighnment, AutoSizeShapeToFitText, Direction, EdgeType } from "../common/enums"; export declare type GraphAllocateFunction = (graph: object) => void; import { CenterPosition, UpperLeftPosition } from "../common/vline"; export declare type textClassCSS = { fill?: string; fontSize?: string; fontFamily?: string; }; export declare type backgroundCSS = { fill?: string; }; export declare type surfaceClassCSS = { stroke?: string; strokeWidth?: string; fill?: string; }; export declare type StrokeClassCSS = { stroke?: string; strokeWidth?: string; }; export declare type GTextBoxCSS = { autoSizeShapeToFitText?: AutoSizeShapeToFitText; verticalAnchor?: VerticalAnchor; horizontalAnchor?: HorizontalAnchor; }; declare type _GTextBoxAttribute = { text?: string | HTMLElement[]; textClass?: string | textClassCSS; textStyle?: string | textClassCSS; }; export declare type _GTextBoxSVGGroupInfo = { class?: string | GTextBoxCSS; style?: string | GTextBoxCSS; }; export declare type GTextBoxAttributesWithoutGroup = _GObjectAttributes & _GTextBoxAttribute; export declare type GTextBoxAttributes = GTextBoxAttributesWithoutGroup & _GTextBoxSVGGroupInfo; export declare type CellCSS = { autoSizeShapeToFitText?: AutoSizeShapeToFitText; verticalAnchor?: VerticalAnchor; horizontalAnchor?: HorizontalAnchor; paddingTop?: number; paddingLeft?: number; paddingRight?: number; paddingBottom?: number; }; export declare type CellAttributes = { class?: string | CellCSS | null; style?: string | CellCSS | null; }; declare type _GObjectAttributes = { position?: CenterPosition | UpperLeftPosition; width?: number; height?: number; id?: string; surfaceClass?: string | surfaceClassCSS; surfaceStyle?: string | surfaceClassCSS; attributes?: { [key: string]: string; }; }; declare type _SVGGroupStyleInfo = { class?: string | object; style?: string | object; }; export declare type BorderAttributes = { class?: string | StrokeClassCSS | null; style?: string | StrokeClassCSS | null; }; export declare type backgroundOption = { class?: string | backgroundCSS | null; style?: string | backgroundCSS | null; }; export declare type GObjectAttributes = _GObjectAttributes & _SVGGroupStyleInfo; export declare type DrawingFunctionOnURL = { url: string | null; functionName: string | null; drawingFunction: object | null; }; declare type _GGraphAttributes = { allocate?: GraphAllocateFunction; isLatexMode?: boolean; relocateStyle?: string; direction?: Direction | null; drawingFunction?: DrawingFunctionOnURL; }; export declare type GGraphAttributes = _GGraphAttributes & GTextBoxAttributes; export declare type GEdgeStyleCSS = { startMarker?: boolean; endMarker?: boolean; beginConnectorType?: ConnectorType; endConnectorType?: ConnectorType; pathTextAlignment?: PathTextAlighnment; edgeType?: EdgeType; } & GTextBoxCSS; declare type _GAbstractEdgeAttributes = { x1?: number; x2?: number; y1?: number; y2?: number; beginVertex?: object | string; endVertex?: object | string; }; declare type _GEdgeAttributes = { x3?: number; y3?: number; }; export declare type ConnecterOption = { outcomingInsertIndex?: number; incomingInsertIndex?: number; beginConnectorType?: ConnectorType; endConnectorType?: ConnectorType; }; declare type _GEdgeSVGGroupInfo = { class?: string | GEdgeStyleCSS; style?: string | GEdgeStyleCSS; }; export declare type GAbstractEdgeAttributes = _GAbstractEdgeAttributes & _GEdgeSVGGroupInfo; export declare type GAbstractTextEdgeAttributes = _GTextBoxAttribute & GAbstractEdgeAttributes; export declare type GEdgeAttributes = GAbstractTextEdgeAttributes & _GEdgeAttributes; export declare function setClassAndStyle(svg: SVGElement, className: string | object | undefined | null, style: string | object | undefined | null): void; export {};