/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ import { type ElementFormatType, type NodeKey } from 'lexical'; import { type JSX, type ReactNode } from 'react'; type Props = Readonly<{ children: ReactNode; format?: ElementFormatType | null; nodeKey: NodeKey; className: Readonly<{ base: string; focus: string; }>; }>; /** * A wrapper component for the contents of a {@link DecoratorBlockNode} that * keeps the block in sync with node selection and element alignment. It renders * its `children` inside a container that reflects the node's `format` * alignment, responds to `FORMAT_ELEMENT_COMMAND` to update that alignment, and * toggles the node's selection when the container is clicked. * * @returns The element to render for the decorator block. */ export declare function BlockWithAlignableContents({ children, format, nodeKey, className, }: Props): JSX.Element; export {};