import { Gradient } from '../gradient';
import { Style } from '../types';
import { Canvas } from 'canvas';
export declare class Text {
    rect: {
        x: number;
        y: number;
        w: number;
        h: number;
    };
    text: string;
    textAlign?: 'center' | 'left' | 'right';
    style?: Style;
    gradient?: Gradient;
    font?: string;
    /** Font size in px */
    fontSize?: number;
    private multilineOn;
    private strokeOn;
    constructor(text: string, posX: number, posY: number);
    setFont(font: string): this;
    setFontSize(size: number): this;
    setStyle(style: Style): this;
    setGradient(gradient: Gradient): this;
    stroke(): this;
    /** Set the width and height of this text   */
    setRect(w: number, h: number): this;
    multiline(): this;
    draw(canvas: Canvas): void;
}
//# sourceMappingURL=text.d.ts.map