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: [OptionalPlugin<AnalyticsPlugin>];
|
11 | actions: {
|
12 | indentParagraphOrHeading: (inputMethod: IndentationInputMethod) => Command;
|
13 | outdentParagraphOrHeading: (inputMethod: IndentationInputMethod) => Command;
|
14 | };
|
15 | sharedState: IndentationPluginSharedState | undefined;
|
16 | }>;
|
17 | declare const indentationPlugin: IndentationPlugin;
|
18 | export default indentationPlugin;
|