import React from 'react'; import { type ComponentProps } from './SplitView'; import { IView, ViewData } from '../typing'; import './index.less'; export declare const ViewContext: React.Context<{ /** 原始的view数据 */ rootView: IView; /** 更新原始的view数据 */ updateRootView: (view: IView) => void; /** 活跃的viewKey */ activeViewKey: string; /** 更新活跃的viewKey */ setActiveView: (viewKey: string) => void; }>; export declare const AlreadyOpenedViewCache = "already_opened_view_cache"; export declare type SplitPanelProps = { /** 是否缓存当前布局数据 */ cacheView?: boolean; /** 默认布局数据 */ defaultView?: IView; /** 默认激活视图 */ defaultActiveViewKey?: string; /** 激活视图变化 */ onActiveViewChange?: (key: string) => void; /** 视图数据变化 */ onViewChange?: (view: IView) => void; /** 组件渲染 */ renderComponent: (props: ComponentProps) => JSX.Element; }; /** 研发模块顶层分栏 */ export declare function SplitPanel(props: SplitPanelProps): React.JSX.Element;