import type { RefObject } from "react";
import type { Editor } from "@tiptap/react";
import type { EditorLocale } from "@/shared/locales";
interface CodeBlockActionBarProps {
    editor: Editor;
    locale: EditorLocale;
    editorWrapperRef: RefObject<HTMLDivElement | null>;
    portalContainer: HTMLDivElement | null;
    defaultLanguage: string;
    onCodeBlockFormat?: (payload: {
        code: string;
        language: string;
    }) => string | Promise<string>;
}
/** 代码块右上角悬浮操作栏。 */
export default function CodeBlockActionBar({ editor, locale, editorWrapperRef, portalContainer, defaultLanguage, onCodeBlockFormat, }: CodeBlockActionBarProps): import("react").ReactPortal | null;
export {};
