1 | import type { Command, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
2 | import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
3 | import type { IndentationInputMethod } from './commands/utils';
|
4 | type IndentationPluginSharedState = {
|
5 | isIndentationAllowed: boolean;
|
6 | indentDisabled: boolean;
|
7 | outdentDisabled: boolean;
|
8 | };
|
9 | export type IndentationPlugin = NextEditorPlugin<'indentation', {
|
10 | dependencies: [
|
11 | OptionalPlugin<AnalyticsPlugin>
|
12 | ];
|
13 | actions: {
|
14 | indentParagraphOrHeading: (inputMethod: IndentationInputMethod) => Command;
|
15 | outdentParagraphOrHeading: (inputMethod: IndentationInputMethod) => Command;
|
16 | };
|
17 | sharedState: IndentationPluginSharedState | undefined;
|
18 | }>;
|
19 | declare const indentationPlugin: IndentationPlugin;
|
20 | export default indentationPlugin;
|