/** * 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 { JSX } from 'react'; import { LexicalCommand, LexicalEditor } from 'lexical'; import { ImagePayload } from '../../nodes/ImageNode'; export type InsertImagePayload = Readonly; export declare const INSERT_IMAGE_COMMAND: LexicalCommand; export declare function InsertImageUriDialogBody({ onClick, }: { onClick: (payload: InsertImagePayload) => void; }): import("react/jsx-runtime").JSX.Element; export declare function InsertImageUploadedDialogBody({ onClick, }: { onClick: (payload: InsertImagePayload) => void; }): import("react/jsx-runtime").JSX.Element; export declare function InsertImageDialog({ activeEditor, onClose, }: { activeEditor: LexicalEditor; onClose: () => void; }): JSX.Element; export default function ImagesPlugin({ captionsEnabled, }: { captionsEnabled?: boolean; }): JSX.Element | null; declare global { interface DragEvent { rangeOffset?: number; rangeParent?: Node; } }