export * from './fileDownload'; export * from './fileHandler'; export * from './floating'; export * from './linewiseConvert'; export * from './resourceExtractor'; export * from './shortcutKey'; import { Node } from '@tiptap/pm/model'; import { EditorState } from '@tiptap/pm/state'; import { Editor } from '@tiptap/react'; export declare const withBaseUrl: (url: string, baseUrl: string) => string; export declare const removeBaseUrl: (url: string, baseUrl: string) => string; export declare const formatFileSize: (bytes: number) => string; export declare const insertNodeAfterPosition: (editor: Editor, pos: number, nodeContent: any) => void; export declare const hasMarksInBlock: (node: Node | null | undefined) => boolean; export declare const hasMarksInSelection: (state: EditorState) => boolean; export declare function addOpacityToColor(color: string, opacity: number): string; export declare const getLinkTitle: (href: string) => string; /** * 获取当前选中文本并返回链接属性 * 如果有选中文本,将文本设置为 title * @param editor Tiptap 编辑器实例 * @returns 包含 title 的链接属性对象(如果有选中文本) */ export declare const getLinkAttributesWithSelectedText: (editor: Editor) => { title?: string; }; export declare const extractSrcFromIframe: (input: string) => string; /** * 将 B 站链接的 autoplay 统一为 0,避免默认自动播放 * - autoplay=1 改为 0 * - autoplay=0 不处理 * - 无 autoplay 参数则添加 &autoplay=0 * 支持协议相对地址(//player.bilibili.com/...),会先转为 https: 再解析 */ export declare const normalizeBilibiliAutoplay: (url: string) => string;