import { BufferGeometry, Color, Mesh, Quaternion, Vector3 } from 'three';
import { SpeckleObject } from '../tree/DataTree';
import { ObjectLayers } from '../../IViewer';
export interface SpeckleTextParams {
    textValue?: string;
    richTextValue?: string;
    height?: number;
    anchorX?: string;
    anchorY?: string;
}
export interface SpeckleTextStyle {
    backgroundColor?: Color;
    backgroundCornerRadius?: number;
    backgroundPixelHeight?: number;
    textColor?: Color;
    billboard?: boolean;
}
export declare class SpeckleText extends Mesh {
    private _layer;
    private _text;
    private _background;
    private _backgroundSize;
    private _style;
    private _resolution;
    private defaultMaterial;
    private getFlatRaycastMesh;
    private getCurvedRaycastMesh;
    static SpeckleTextParamsFromMetadata(metadata: SpeckleObject): SpeckleTextParams;
    get textMesh(): Text;
    get backgroundMesh(): Mesh<BufferGeometry, import("three").Material | import("three").Material[]>;
    set style(value: SpeckleTextStyle);
    constructor(uuid: string, layer: ObjectLayers);
    update(params: SpeckleTextParams, updateFinished?: () => void): Promise<void>;
    setTransform(position?: Vector3, quaternion?: Quaternion, scale?: Vector3): void;
    raycast(raycaster: any, intersects: any): void;
    private updateStyle;
    private updateBackground;
    /** From https://discourse.threejs.org/t/roundedrectangle-squircle/28645  */
    private RectangleRounded;
}
