import { type DataOrError } from "../../common/error"; import type { Score } from "../lib/types"; import { type Database, Difficulty } from "gcm-database/maimai"; import type { Chart } from "gcm-database-local/maimai"; import { z } from "zod/v4"; import type { MaimaiScoreAdapter } from "../lib/adapter"; import { MaimaiPainter } from "./painter"; export declare class ChartPainter extends MaimaiPainter { private database; static readonly THEME: z.ZodObject<{ name: z.ZodString; displayName: z.ZodString; width: z.ZodNumber; height: z.ZodNumber; layout: z.ZodOptional>; }, z.core.$strip>>; elements: z.ZodArray; anchor: z.ZodOptional; location: z.ZodDefault>; }, z.core.$strip>>; type: z.ZodLiteral<"detail-info">; width: z.ZodNumber; height: z.ZodNumber; margin: z.ZodNumber; color: z.ZodObject<{ card: z.ZodString; }, z.core.$strip>; sprites: z.ZodObject<{ mode: z.ZodObject<{ standard: z.ZodString; dx: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; id: z.ZodOptional; anchor: z.ZodOptional; location: z.ZodDefault>; }, z.core.$strip>>; type: z.ZodLiteral<"chart-grid">; width: z.ZodNumber; height: z.ZodNumber; margin: z.ZodNumber; gap: z.ZodNumber; bubble: z.ZodObject<{ margin: z.ZodNumber; color: z.ZodObject<{ basic: z.ZodString; advanced: z.ZodString; expert: z.ZodString; master: z.ZodString; remaster: z.ZodString; utage: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; color: z.ZodObject<{ card: z.ZodString; }, z.core.$strip>; sprites: z.ZodObject<{ achievement: z.ZodObject<{ d: z.ZodString; c: z.ZodString; b: z.ZodString; bb: z.ZodString; bbb: z.ZodString; a: z.ZodString; aa: z.ZodString; aaa: z.ZodString; s: z.ZodString; sp: z.ZodString; ss: z.ZodString; ssp: z.ZodString; sss: z.ZodString; sssp: z.ZodString; }, z.core.$strip>; milestone: z.ZodObject<{ ap: z.ZodString; app: z.ZodString; fc: z.ZodString; fcp: z.ZodString; fdx: z.ZodString; fdxp: z.ZodString; fs: z.ZodString; fsp: z.ZodString; sync: z.ZodString; none: z.ZodString; }, z.core.$strip>; versions: z.ZodObject<{ OLD: z.ZodRecord; DX: z.ZodRecord; EX: z.ZodRecord; CN: z.ZodRecord; }, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; id: z.ZodOptional; anchor: z.ZodOptional; location: z.ZodDefault>; }, z.core.$strip>>; type: z.ZodLiteral<"profile">; height: z.ZodNumber; sprites: z.ZodObject<{ dxRating: z.ZodObject<{ white: z.ZodString; blue: z.ZodString; green: z.ZodString; yellow: z.ZodString; red: z.ZodString; purple: z.ZodString; bronze: z.ZodString; silver: z.ZodString; gold: z.ZodString; platinum: z.ZodString; rainbow: z.ZodString; circleplus: z.ZodObject<{ gold: z.ZodString; platinum: z.ZodString; rainbow: z.ZodString; kiwami: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; dxRatingStar: z.ZodObject<{ 1: z.ZodString; 2: z.ZodString; 3: z.ZodString; 4: z.ZodString; }, z.core.$strip>; dxRatingNumberMap: z.ZodString; profile: z.ZodObject<{ nameplate: z.ZodString; icon: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; id: z.ZodOptional; anchor: z.ZodOptional; location: z.ZodDefault>; }, z.core.$strip>>; type: z.ZodLiteral<"image">; width: z.ZodOptional; height: z.ZodOptional; align: z.ZodOptional>; path: z.ZodString; }, z.core.$strip>, 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>, z.ZodObject<{ id: z.ZodOptional; x: z.ZodNumber; y: z.ZodNumber; anchor: z.ZodOptional; location: z.ZodDefault>; }, z.core.$strip>>; width: z.ZodOptional; height: z.ZodOptional; size: z.ZodNumber; borderColor: z.ZodOptional; font: z.ZodOptional; linebreak: z.ZodOptional; align: z.ZodOptional>; color: z.ZodOptional; type: z.ZodLiteral<"hitokoto">; probability: z.ZodOptional; customLines: z.ZodOptional]>>; }, z.core.$strip>], "type">>; }, z.core.$strip>; private static readonly DEFAULT_THEME; private modules; constructor(database: Database); draw(variables: { username: string; rating: number; chartIdentifier: string; scores: Record; }, options?: { scale?: number; theme?: string; profilePicture?: Buffer; region?: "DX" | "EX" | "CN"; }): Promise>; drawWithScoreSource(source: MaimaiScoreAdapter, variables: { username: string; chartIdentifier: string; }, options: { scale?: number; theme?: string; profilePicture?: Buffer | null; region?: "DX" | "EX" | "CN"; }): Promise>>; }