/// <reference types="node" />
import { BSMap, Platform } from "../../types";
import { APIService } from "../api";
import { Context } from "koishi";
import { Config } from "../../config";
export declare class RenderService {
    private puppeteer;
    private config;
    private api;
    private baseConfig;
    private constructor();
    static create(ctx: Context, config: Config, api: APIService): RenderService;
    renderRank(accountId: string, platform: Platform, onRenderStart?: () => void, onRenderError?: (e: any) => void, type?: 'remote' | 'local'): Promise<string | import("koishi").Element>;
    private _renderRank;
    renderScore(scoreId: string, platform: Platform, onRenderStart?: () => void, onRenderError?: (e: any) => void, type?: 'remote' | 'local'): Promise<string | import("koishi").Element>;
    private _renderScore;
    renderMapById(mapId: string, onRenderStart?: () => void, onRenderError?: (e: any) => void, type?: 'remote' | 'local'): Promise<string | import("koishi").Element>;
    renderMap(map: BSMap, onRenderStart?: () => void, onRenderError?: (e: any) => void, type?: 'remote' | 'local'): Promise<string | import("koishi").Element>;
    renderLBScore(): Promise<Buffer>;
    renderLBHitCount(): Promise<Buffer>;
    private _renderMap;
}
