import I18nPlugin from '../plugin/I18nPlugin'; import { ExtendedTextConfig, I18nScene, I18nSceneInterface } from './Interfaces'; export default class ExtendedText extends Phaser.GameObjects.Text { protected scene: I18nScene | Phaser.Scene & I18nSceneInterface; protected i18nOptions: any; static Creator(options: ExtendedTextConfig, addToScene?: boolean): ExtendedText; static Factory(x: number, y: number, text: string, style: any, i18nOptions: any): ExtendedText; protected i18n: I18nPlugin; protected i18nKey: string; constructor(scene: I18nScene | Phaser.Scene & I18nSceneInterface, x: number, y: number, text: string, style: any, i18nOptions: any); protected prepare(): void; protected onLanguageChange(): void; setText(value?: string, options?: any): Phaser.GameObjects.Text; destroy(fromScene?: boolean): void; }