UNPKG

812 BTypeScriptView Raw
1/**
2 * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4 */
5/**
6 * @module heading/utils
7 */
8import type { Editor } from 'ckeditor5/src/core';
9import type { HeadingOption } from './headingconfig';
10/**
11 * Returns heading options as defined in `config.heading.options` but processed to consider
12 * the editor localization, i.e. to display {@link module:heading/headingconfig~HeadingOption}
13 * in the correct language.
14 *
15 * Note: The reason behind this method is that there is no way to use {@link module:utils/locale~Locale#t}
16 * when the user configuration is defined because the editor does not exist yet.
17 */
18export declare function getLocalizedOptions(editor: Editor): Array<HeadingOption>;