/**
 * @fileoverview 工具栏配置Hook
 * 负责组装工具栏的属性和事件处理
 */
import { CodeNode } from '../../../MarkdownEditor/el';
import { LanguageSelectorProps } from '../components';
interface UseToolbarConfigProps {
    element: CodeNode;
    readonly: boolean;
    onCloseClick: () => void;
    setLanguage: (lang: string) => void;
    isSelected?: boolean;
    onSelectionChange?: (selected: boolean) => void;
    onViewModeToggle?: () => void;
    viewMode?: 'preview' | 'code';
    onLocalPreview?: () => void;
}
export declare function useToolbarConfig({ element, readonly, onCloseClick, setLanguage, isSelected, onSelectionChange, onViewModeToggle, viewMode, onLocalPreview, }: UseToolbarConfigProps): {
    toolbarProps: {
        element: CodeNode;
        readonly: boolean;
        onCloseClick: () => void;
        languageSelectorProps: LanguageSelectorProps;
        isSelected: boolean | undefined;
        onSelectionChange: ((selected: boolean) => void) | undefined;
        onViewModeToggle: (() => void) | undefined;
        viewMode: "code" | "preview" | undefined;
        onLocalPreview: (() => void) | undefined;
    };
};
export {};
