import { Selection } from 'd3-selection'; import { GenericAccessor } from '../../../types/accessor'; import { Position } from '../../../types/position'; import { Spacing } from '../../../types/spacing'; import { SankeyInputLink, SankeyInputNode, SankeyNode } from '../types'; import { SankeyConfigInterface } from '../config'; export declare const SANKEY_LABEL_SPACING = 10; export declare const SANKEY_LABEL_BLOCK_PADDING = 6.5; export declare function getLabelFontSize(config: SankeyConfigInterface, context: SVGElement): number; export declare function getSubLabelFontSize(config: SankeyConfigInterface, context: SVGElement): number; export declare function getLabelFontFamily(context: HTMLElement | SVGElement): string; export declare function estimateRequiredLabelWidth(d: SankeyNode, config: SankeyConfigInterface, labelFontSize: number, subLabelFontSize: number, context?: HTMLElement | SVGElement): number; export declare function getLabelOrientation(d: SankeyNode, sankeyWidth: number, labelPosition: GenericAccessor>): (Position.Left | Position.Right); export declare function getLabelGroupXTranslate(d: SankeyNode, config: SankeyConfigInterface, width: number): number; export declare function getLabelGroupYTranslate(d: SankeyNode, labelGroupHeight: number, config: SankeyConfigInterface): number; export declare function getLabelTextAnchor(d: SankeyNode, config: SankeyConfigInterface, width: number): string; export declare function getSubLabelTextAnchor(d: SankeyNode, config: SankeyConfigInterface, width: number): string; export declare function getLabelMaxWidth(d: SankeyNode, config: SankeyConfigInterface, labelOrientation: Position.Left | Position.Right, layerSpacing: number, sankeyMaxLayer: number, bleed: Spacing): number; export declare function renderLabel(labelGroup: Selection, SVGGElement, any>, d: SankeyNode, config: SankeyConfigInterface, width: number, duration: number, layerSpacing: number | undefined, sankeyMaxLayer: number, bleed: Spacing, forceExpand?: boolean): { x: number; y: number; width: number; height: number; layer: number; selection: any; hidden?: boolean; };