interface SplitTextProps { ctx: CanvasRenderingContext2D; text: string; justify: boolean; width: number; } declare function splitText({ ctx, text, justify, width }: SplitTextProps): string[]; interface TextHeightProps { ctx: CanvasRenderingContext2D; text: string; style: string; } declare function getTextHeight({ ctx, text, style }: TextHeightProps): number; export declare type Align = "left" | "center" | "right"; export declare type VAlign = "top" | "middle" | "bottom"; export interface CanvasTextConfig { width: number; height: number; x: number; y: number; debug?: boolean; align?: Align; vAlign?: VAlign; fontSize?: number; fontWeight?: string; fontStyle?: string; fontVariant?: string; font?: string; lineHeight?: number; justify?: boolean; } declare function drawText(ctx: CanvasRenderingContext2D, myText: string, inputConfig: CanvasTextConfig): { height: any; }; export { drawText, splitText, getTextHeight };