///
/**
* 管理编辑器的模板状态(template),并通过两种来源进行同步:
* 1) 来自 props 的 templateInfo:当其变化时,根据是否存在 experEnv 设置模板
* 2) 来自 window 的消息事件:当接收到 type 为 'sectionChange' 的消息时,读取其中的 template 更新
*
* 返回:
* - template:当前模板状态
* - setTemplate:手动设置模板的函数
*/
export declare function useTemplate(templateInfo?: any): {
template: any;
setTemplate: import("react").Dispatch;
};