import type { DataOrError } from "../../common/error"; import type { Score } from "../lib/types"; import type { Chart, Database } from "gcm-database/maimai"; import { z } from "zod/v4"; import type { MaimaiScoreAdapter } from "../lib/adapter"; import { MaimaiPainter } from "./painter"; export declare class Best50Painter extends MaimaiPainter { 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<"score-grid">; horizontalSize: z.ZodNumber; verticalSize: z.ZodNumber; region: z.ZodEnum<{ new: "new"; old: "old"; }>; index: z.ZodNumber; scoreBubble: z.ZodObject<{ width: z.ZodNumber; height: z.ZodNumber; margin: z.ZodNumber; gap: 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>; strictScoreCount: z.ZodDefault; }, 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>; mode: z.ZodObject<{ standard: z.ZodString; dx: 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>; }, 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); private getRatingBase; private getRatingAvg; private getRatingTargetLevel; private getMilestone; draw(variables: { username: string; rating: number; newScores: Score[]; oldScores: Score[]; }, options?: { scale?: number; theme?: string; profilePicture?: Buffer; dxRatingType?: "dx" | "circleplus"; }): Promise>; drawWithScoreSource(source: MaimaiScoreAdapter, variables: { username: string; }, options?: { scale?: number; theme?: string; profilePicture?: Buffer | null; dxRatingType?: "dx" | "circleplus"; }): Promise>>; }