import * as React from "react";
export interface HoverTextNearMouseProps {
    readonly fontFamily?: string;
    readonly fontSize?: number;
    readonly fill?: string;
    readonly text?: string;
    readonly bgFill?: string;
    readonly bgOpacity?: number;
    readonly bgWidth: number | string;
    readonly bgHeight: number | string;
    readonly show: boolean;
}
interface HoverTextNearMouseState {
    textHeight?: number;
    textWidth?: number;
}
export declare class HoverTextNearMouse extends React.Component<HoverTextNearMouseProps, HoverTextNearMouseState> {
    static defaultProps: {
        fontFamily: string;
        fontSize: number;
        fill: string;
        bgFill: string;
        bgOpacity: number;
    };
    private readonly textNode;
    constructor(props: HoverTextNearMouseProps);
    componentDidMount(): void;
    componentDidUpdate(): void;
    render(): JSX.Element | null;
    private readonly renderSVG;
    private readonly getBgHeight;
    private readonly getBgWidth;
    private readonly updateTextSize;
}
export {};
