export type Canvas = HTMLCanvasElement; export type Image = HTMLImageElement; export declare const createCanvas: (width: number, height: number) => Canvas; export declare const createCanvas2D: (width: number, height: number) => { canvas: Canvas; ctx: CanvasRenderingContext2D; }; export declare const fetchImage: (src: string) => Promise; export type FontOptions = { family: string; source: string; weight?: string; style?: string; }; export declare const loadFont: ({ family, source, weight, style, }: FontOptions) => Promise;