import type { ToolbarItemData } from "./types.js";
export type UseActionStateReturn = {
    active: boolean;
    enabled: boolean;
};
export type ToolbarAction<E> = Pick<ToolbarItemData<E>, 'isActive' | 'isEnable'>;
export declare function useActionState<E>(editor: E, { isActive, isEnable }: ToolbarAction<E>): UseActionStateReturn;
export declare function useActionsState<E>(editor: E, actions: ToolbarAction<E>[]): UseActionStateReturn[];
