import { PbEditorElement } from "../../types"; export interface UseCurrentBlock { block: PbEditorElement | null; } /** * This selector will traverse the "elements" atom, going up the tree, until it finds the root block element. */ export declare const blockByElementSelector: (param: string | undefined) => import("recoil").RecoilValueReadOnly; /** * There are several scenarios that need handling: * 1) hook is called from editor content element renderer (any element state). * 2) hook is called while one of the elements is active/selected (settings, toolbar, ....). * 3) hook is called outside of editor content, and no element is selected -> return null. */ export declare function useCurrentBlockElement(): UseCurrentBlock;