import { BaseCompOptions, Component } from './Component'; export type FontWeight = 'normal' | 'bold' | 'bolder' | 'lighter' | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; export type FontVariant = 'normal' | 'small-caps'; export type FontStyle = 'normal' | 'italic' | 'oblique'; export type TextBaseline = CanvasTextBaseline; export type TextAlign = CanvasTextAlign; export interface TextOptions extends BaseCompOptions { text?: string; textAlign?: TextAlign; textBaseline?: TextBaseline; fontVariant?: FontVariant; fontWeight?: FontWeight; fontStyle?: FontStyle; fontSize?: number; font?: string; } export declare class Text extends Component { readonly type = "Text"; constructor(options?: TextOptions); text: string; textAlign: TextAlign; textBaseline: TextBaseline; fontVariant: FontVariant; fontWeight: FontWeight; fontStyle: FontStyle; fontSize: number; font: string; }