import type { Score } from "../lib/types"; import { type DataOrError } from "../../common/error"; import { type Database, Difficulty } from "gcm-database/chunithm"; import type { Chart, Regions } from "gcm-database-local/chunithm"; import { z } from "zod/v4"; import type { ChunithmScoreAdapter } from "../lib/adapter"; import { ChunithmPainter } from "./painter"; export declare class ChartPainter extends ChunithmPainter { 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>; }, 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; ultima: z.ZodString; worldsEnd: 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<{ aj: z.ZodString; ajc: z.ZodString; fc: z.ZodString; none: z.ZodString; }, z.core.$strip>; versions: z.ZodObject<{ JPN: z.ZodRecord; INT: z.ZodRecord; CHN: 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<{ ratingNumberMap: z.ZodObject<{ white: z.ZodString; bronze: z.ZodString; silver: z.ZodString; gold: z.ZodString; platinum: z.ZodString; rainbow: z.ZodString; kiwami: z.ZodString; }, z.core.$strip>; 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; type: "new" | "recents"; }, options?: { scale?: number; theme?: string; profilePicture?: Buffer; region?: Regions; version?: "chunithm" | "crystal" | "new" | "verse"; }): Promise>; drawWithScoreSource(source: ChunithmScoreAdapter, variables: { username: string; chartIdentifier: string; type: "new" | "recents"; }, options?: { scale?: number; theme?: string; profilePicture?: Buffer | null; region?: Regions; version?: "chunithm" | "crystal" | "new" | "verse"; }): Promise>>; }