import { type IDisposable, type Scene } from "@babylonjs/core/scene.js"; import { type BMFontChar } from "./sdf/bmFont.js"; import { type SdfFont } from "./sdf/font.js"; import { Texture } from "@babylonjs/core/Materials/Textures/texture.js"; /** * Class representing a font asset for SDF (Signed Distance Field) rendering. */ export declare class FontAsset implements IDisposable { private readonly _chars; private readonly _charsRegex; private readonly _kernings; /** @internal */ readonly _font: SdfFont; /** * Gets the font scale value */ readonly scale: number; /** * Gets the list of used textures */ readonly textures: Texture[]; /** * Creates a new FontAsset instance. * @param definitionData defines the font data in JSON format. * @param textureUrl defines the url of the texture to use for the font. * @param scene defines the hosting scene. */ constructor(definitionData: string, textureUrl: string, scene?: Scene); dispose(): void; private _updateFallbacks; /** @internal */ _getChar(charCode: number): BMFontChar; /** @internal */ _getKerning(first: number, second: number): number; /** @internal */ _unsupportedChars(text: string): string; }