import fs from 'node:fs';
import type { Context } from 'koishi';
import type { Config } from '../types';
export declare const defaultFontName = "\u5343\u56FE\u9A6C\u514B\u624B\u5199\u4F53lite";
export declare const localFontPath: string;
/**
 * 初始化字体加载：始终以内置字体名注册内置字体到 glyph，
 * 避免将内置字体文件错误注册到用户配置的自定义字体名下。
 */
export declare function initializeFont(ctx: Context): Promise<void>;
export declare function getFontFormatFromDataUrl(dataUrl: string): string;
/**
 * 获取字体 Data URL
 * 优先使用 glyph 服务，否则使用本地字体
 */
export declare function getFontDataUrl(ctx: Context, config: Config, logInfo: (...args: any[]) => void): Promise<{
    fontDataUrl: string;
    selectedFont: string;
}>;
/**
 * 读取 TTF 字体文件并转换为 Base64 编码
 */
export declare function getFontBase64(fontPath: fs.PathOrFileDescriptor): Promise<string>;
