import type { ActionStorage } from "../../../core/index.js";
import type { EditorState } from "../../../pm/state.js";
import type { ToolbarButtonPopupData, ToolbarGroupItemData, ToolbarSingleItemData } from "../../../toolbar/index.js";
export type ContextGroupItemData = (ToolbarGroupItemData<ActionStorage> & {
    condition?: (state: EditorState) => void;
}) | ((ToolbarSingleItemData<ActionStorage> | ToolbarButtonPopupData<ActionStorage>) & {
    condition?: 'enabled';
});
export type ContextGroupData = ContextGroupItemData[];
export type ContextConfig = ContextGroupData[];
