import { EditorFnProps } from "../../type"; import { Node } from "@tiptap/core"; declare module '@tiptap/core' { interface Commands { inlineAttachment: { /** * Insert an inline attachment */ setInlineAttachment: (options: { url: string; title: string; size: string; }) => ReturnType; }; blockAttachment: { /** * Insert a block attachment */ setBlockAttachment: (options: { url: string; title: string; size: string; view?: '0' | '1'; height?: number; }) => ReturnType; }; } } export type AttachmentExtensionProps = EditorFnProps & { baseUrl: string; }; export declare const InlineAttachmentExtension: (props: AttachmentExtensionProps) => Node; export declare const BlockAttachmentExtension: (props: AttachmentExtensionProps) => Node;