import type { CanvasRenderingContext2D } from "canvas"; import z from "zod/v4"; import { type Bounds, PainterModule } from "../painter"; import { type Theme } from "../theme"; export interface TextModulePainterContext { variables?: Record; } export declare class TextModule extends PainterModule { static readonly SCHEMA: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; id: z.ZodOptional; anchor: z.ZodOptional; location: z.ZodDefault>; }, z.core.$strip>>; type: z.ZodLiteral<"text">; size: z.ZodNumber; content: z.ZodString; width: z.ZodOptional; height: z.ZodOptional; linebreak: z.ZodOptional; align: z.ZodOptional>; color: z.ZodOptional; borderColor: z.ZodOptional; font: z.ZodOptional; }, z.core.$strip>; private readonly dateFormat; private readonly timeFormat; draw(ctx: CanvasRenderingContext2D, _: unknown, element: z.infer, painterCtx?: TextModulePainterContext): Promise; getBounds(ctx: CanvasRenderingContext2D, _theme: Theme, element: z.infer): Promise; }