1 | import Config from "@ckeditor/ckeditor5-utils/src/config";
|
2 | import Collection from "@ckeditor/ckeditor5-utils/src/collection";
|
3 | import PluginCollection from "./plugincollection";
|
4 | import Locale from "@ckeditor/ckeditor5-utils/src/locale";
|
5 | import Plugin, { LoadedPlugins } from "./plugin";
|
6 | import Editor from "./editor/editor";
|
7 |
|
8 | export default class Context {
|
9 | readonly config: Config;
|
10 | readonly editors: Collection<Editor>;
|
11 | readonly locale: Locale;
|
12 | readonly plugins: PluginCollection;
|
13 |
|
14 | static builtinPlugins: Array<typeof Plugin>;
|
15 | static defaultConfig: Record<string, unknown>;
|
16 | static create(config: Record<string, unknown>): Promise<Context>;
|
17 |
|
18 | constructor(config?: Record<string, unknown>);
|
19 | destroy(): Promise<void>;
|
20 | initPlugins(): Promise<LoadedPlugins>;
|
21 | t: Locale["t"];
|
22 | }
|