/**
 * @fileoverview 代码编辑器状态管理Hook
 * 统一管理代码编辑器的状态逻辑
 */
import { CodeNode } from '../../../MarkdownEditor/el';
interface CodeEditorState {
    showBorder: boolean;
    htmlStr: string;
    hide: boolean;
    lang: string;
}
export declare function useCodeEditorState(element: CodeNode): {
    state: CodeEditorState;
    setState: (patch: Partial<CodeEditorState>) => void;
    update: (data: Partial<CodeNode>) => void;
    selected: boolean;
    path: import("slate").Path;
    handleCloseClick: () => void;
    handleRunHtml: () => void;
    handleHtmlPreviewClose: () => void;
    handleShowBorderChange: (show: boolean) => void;
    handleHideChange: (hide: boolean) => void;
};
export {};
