/** * @fileoverview 思考块组件 * 只读模式下渲染思考类型的代码块 */ import React from 'react'; import { CodeNode, ElementProps } from '../../../MarkdownEditor/el'; type ThinkBlockProps = ElementProps; /** * ThinkBlock Context 类型定义 */ export interface ThinkBlockContextType { /** 受控的展开状态 */ expanded?: boolean; /** 展开状态变更回调 */ onExpandedChange?: (expanded: boolean) => void; } /** * ThinkBlock Context */ export declare const ThinkBlockContext: React.Context; /** * ThinkBlock Provider 组件 * * 用于全局控制所有 ThinkBlock 实例的展开/收起状态 * * @example * ```tsx * * * * ``` */ export declare const ThinkBlockProvider: React.FC; export declare function ThinkBlock(props: ThinkBlockProps): React.JSX.Element; export {};