import { Texture } from "three";
export type RGBA = {
    r: number;
    g: number;
    b: number;
    a: number;
};
export type CanvasTextOptions = {
    fontSize: number;
    textColorRGB255A1: RGBA;
    backgroundColorRGB255A1?: RGBA;
    font?: string;
    bold?: boolean;
    paddingPx?: number;
    alignment?: string;
    dimensions?: {
        maxWidth?: undefined;
        width: number;
        height: number;
    } | {
        maxWidth: number;
    };
};
export declare class CanvasText {
    private canvas;
    private context;
    constructor();
    renderText(message: string, options: CanvasTextOptions): HTMLCanvasElement;
}
export declare function THREECanvasTextTexture(text: string, options: CanvasTextOptions): {
    texture: Texture;
    width: number;
    height: number;
};
