import { ComponentInternalInstance } from 'vue';
import type { UnwrapNestedRefs } from '@vue/reactivity';
/**
* 生成一个实例内进行状态共享的hook,
* 如果想导出在模板中使用可以直接
* @example
* 或者是使用toRefs展开
* @example in ts:
* setup() {
* { state } = useHookShareState()
* return toRefs(state)
* }
* @example in vue:
* @param initState 初始化状态函数
* @returns hook函数
*/
export declare const createTypedShareStateHook: (initState: (inst: ComponentInternalInstance) => T) => {
useHookShareState: () => {
state: UnwrapNestedRefs;
toRefs(): import("vue").ToRefs>;
};
};