import '../../../../../globals.js';
import optionize from '../../../../../phet-core/js/optionize.js';
import { ReadingBlock, ReadingBlockHighlight, RichText, scenery } from '../../../imports.js';
class VoicingRichText extends ReadingBlock(RichText) {
    constructor(text, providedOptions) {
        const options = optionize()({
            // {string|null} - if provided, alternative text that will be read that is different from the
            // visually displayed text
            readingBlockNameResponse: text,
            // pdom
            innerContent: text,
            // voicing
            // default tag name for a ReadingBlock, but there are cases where you may want to override this (such as
            // RichText links)
            readingBlockTagName: 'button'
        }, providedOptions);
        super(text, options);
        this.focusHighlight = new ReadingBlockHighlight(this);
    }
}
scenery.register('VoicingRichText', VoicingRichText);
export default VoicingRichText;
//# sourceMappingURL=VoicingRichText.js.map