import React from 'react'; import type { AttachmentFile } from '../AttachmentButton/types'; import type { MarkdownInputFieldProps } from '../types/MarkdownInputFieldProps'; interface UsePasteHandlerParams { props: Pick; fileMap?: Map; setFileMap?: (fileMap?: Map) => void; } /** * 粘贴上传处理 Hook。 * * 由原 useMarkdownInputFieldHandlers 拆分而来。仅在 attachment.enable 且 * 配置了 upload 或 uploadWithResponse 时生效,会从剪贴板提取图片并上传。 * markdownProps.attachment 作为 props.attachment 缺省时的回退配置。 */ export declare const usePasteHandler: ({ props, fileMap, setFileMap, }: UsePasteHandlerParams) => { handlePaste: (e: React.ClipboardEvent) => Promise; }; export {};