import { ScalerContext as NativeScaleContext } from '../../../third_party/tgfx/web/src/core/scaler-context'; import type { ctor, Rect } from '../types'; export declare class ScalerContext extends NativeScaleContext { generateImage(text: string, bounds: Rect): OffscreenCanvas; protected loadCanvas(): void; readPixels(text: string, bounds: Rect, fauxBold: boolean, stroke?: { width: number; cap: ctor; join: ctor; miterLimit: number; }): Uint8Array; }