import { Ctx } from '@milkdown/kit/ctx'; /** * Hook to run actions against the Milkdown editor context. * Returns a stable function that executes the given callback with the editor ctx. */ export declare function useEditorAction(): { action: (fn: (ctx: Ctx) => T) => T | undefined; loading: boolean; getInstance: (() => undefined) | (() => import('@milkdown/core').Editor); };