import { BufferGeometry } from 'three'; import { Text as TextCore } from '../core/Text'; import type { TextOptions, TextGeometryInfo as CoreTextGeometryInfo, LoadedFont } from '../core/types'; import type { HyphenationTrieNode } from '../hyphenation'; export interface ThreeTextGeometryInfo extends Omit { geometry: BufferGeometry; getLoadedFont(): LoadedFont | undefined; getCacheSize(): number; clearCache(): void; measureTextWidth(text: string, letterSpacing?: number): number; update(options: Partial): Promise; dispose(): void; } export declare class Text { static setHarfBuzzPath: typeof TextCore.setHarfBuzzPath; static setHarfBuzzBuffer: typeof TextCore.setHarfBuzzBuffer; static init: typeof TextCore.init; static registerPattern: typeof TextCore.registerPattern; static preloadPatterns: typeof TextCore.preloadPatterns; static setMaxFontCacheMemoryMB: typeof TextCore.setMaxFontCacheMemoryMB; static enableWoff2: typeof TextCore.enableWoff2; static create(options: TextOptions): Promise; } export type { TextOptions, ThreeTextGeometryInfo as TextGeometryInfo, LoadedFont }; export type { HyphenationTrieNode };