import { BrsValue, ValueKind, BrsString, BrsBoolean } from "../BrsType";
import { BrsComponent } from "./BrsComponent";
import { BrsType } from "..";
import { Int32 } from "../Int32";
import { FontMetrics } from "./RoFontRegistry";
import { MeasuredText } from "../interfaces/IfDraw2D";
export declare class RoFont extends BrsComponent implements BrsValue {
    readonly kind = ValueKind.Object;
    private readonly family;
    private readonly size;
    private readonly bold;
    private readonly italic;
    private readonly metrics;
    private readonly canvas;
    constructor(family: BrsString, size: Int32, bold: BrsBoolean, italic: BrsBoolean, metrics: FontMetrics);
    measureTextHeight(): number;
    measureTextWidth(text: string, maxWidth?: number, ellipsis?: string): {
        width: number;
        text: string;
        ellipsized: boolean;
    };
    measureText(text: string, maxWidth?: number, ellipsis?: string): MeasuredText;
    getTopAdjust(): number;
    toFontString(): string;
    toString(parent?: BrsType): string;
    equalTo(other: BrsType): BrsBoolean;
    /** Returns the number of pixels from one line to the next when drawing with this font */
    private readonly getOneLineHeight;
    /** Returns the number of pixels from one line to the next when drawing with this font */
    private readonly getOneLineWidth;
    /** Returns the font ascent in pixels */
    private readonly getAscent;
    /** Returns the font descent in pixels */
    private readonly getDescent;
    /** Returns the font maximum advance width in pixels */
    private readonly getMaxAdvance;
}
