import { ReactParamsType } from 'earthsdk3'; import { Ref, ShallowRef } from 'vue'; import { VueRefDisposer } from './createVueDisposer'; export declare function setVueRefDisposeFunc(vueRef: Ref, disposeFunc: () => void): void; export declare function getVueRefDisposeFunc(vueRef: Ref): (() => void) | undefined; export declare function destroyVueRef(vueRef: Ref): void; /** * 用来将xe2的响应式变量转变成vue3的响应式变量 * @example * const d = createVueDisposer(onBeforeUnmount); * const propUiTreeRef = toReadonlyVueRef(d, [propUiTreeManager, 'propUiTree']); * const showSceneTreeViewRef = toVR(d, [projectManager, "showSceneTreeView"]) * const showPlayerViewRef = toVR(d, [projectManager, "showPlayerView"]) */ export declare function toVueRef(disposer: VueRefDisposer, reactVar: ReactParamsType, toVueValue?: (s: Xe2ValueType) => VueValueType, toXe2Value?: (s: VueValueType) => Xe2ValueType): Ref; /** * toVR = toVueRef */ export declare const toVR: typeof toVueRef; /** * 用来将xe2的响应式变量转变成vue3的响应式变量 * @example * const d = createVueDisposer(onBeforeUnmount); * const propUiTreeRef = toReadonlyVueRef(d, [propUiTreeManager, 'propUiTree']); * const showSceneTreeViewRef = toVR(d, [projectManager, "showSceneTreeView"]) * const showPlayerViewRef = toVR(d, [projectManager, "showPlayerView"]) */ export declare function toShallowVueRef(disposer: VueRefDisposer, reactVar: ReactParamsType, toVueValue?: (s: Xe2ValueType) => VueValueType, toXe2Value?: (s: VueValueType) => Xe2ValueType): ShallowRef; /** * toSVR = toShallowVueRef */ export declare const toSVR: typeof toShallowVueRef; /** * 用来将xe2的响应式变量转变成vue3的响应式变量 * @example * const d = createVueDisposer(onBeforeUnmount); * const propUiTreeRef = toReadonlyVueRef(d, [propUiTreeManager, 'propUiTree']); * const showSceneTreeViewRef = toVR(d, [projectManager, "showSceneTreeView"]) * const showPlayerViewRef = toVR(d, [projectManager, "showPlayerView"]) */ export declare function toReadonlyVueRef(disposer: VueRefDisposer, reactVar: ReactParamsType, toVueValue?: (s: Xe2ValueType) => VueValueType, toXe2Value?: (s: VueValueType) => Xe2ValueType): Ref; /** * toRVR = toReadonlyVueRef */ export declare const toRVR: typeof toReadonlyVueRef; /** * 用来将xe2的响应式变量转变成vue3的响应式变量 * @example * const d = createVueDisposer(onBeforeUnmount); * const propUiTreeRef = toReadonlyVueRef(d, [propUiTreeManager, 'propUiTree']); * const showSceneTreeViewRef = toVR(d, [projectManager, "showSceneTreeView"]) * const showPlayerViewRef = toVR(d, [projectManager, "showPlayerView"]) */ export declare function toReadonlyShallowVueRef(disposer: VueRefDisposer, reactVar: ReactParamsType, toVueValue?: (s: Xe2ValueType) => VueValueType, toXe2Value?: (s: VueValueType) => Xe2ValueType): ShallowRef; /** * toRSVR = toReadonlyShallowVueRef */ export declare const toRSVR: typeof toReadonlyShallowVueRef; /** * 用来将xe2的响应式变量转变成vue3的响应式变量,并且去掉undefined * @example * const d = createVueDisposer(onBeforeUnmount); * const propUiTreeRef = toReadonlyVueRef(d, [propUiTreeManager, 'propUiTree']); * const showSceneTreeViewRef = toVR(d, [projectManager, "showSceneTreeView"]) * const showPlayerViewRef = toVR(d, [projectManager, "showPlayerView"]) */ export declare function toVueRefWithoutUndefined(disposer: VueRefDisposer, reactVar: ReactParamsType, defaultValue: T, cloneVueValueFunc?: ((v: T) => T) | undefined): Ref; export declare function toShallowVueRefWithoutUndefined(disposer: VueRefDisposer, reactVar: ReactParamsType, defaultValue: T, cloneVueValueFunc?: ((v: T) => T) | undefined): Ref; export declare function toReadonlyVueRefWithoutUndefined(disposer: VueRefDisposer, reactVar: ReactParamsType, defaultValue: T, cloneVueValueFunc?: ((v: T) => T) | undefined): Ref; export declare function toReadonlyShallowVueRefWithoutUndefined(disposer: VueRefDisposer, reactVar: ReactParamsType, defaultValue: T, cloneVueValueFunc?: ((v: T) => T) | undefined): Ref; /** * toVRWU = toVueRefWithoutUndefined */ export declare const toVRWU: typeof toVueRefWithoutUndefined; /** * toSVRWU = toShallowVueRefWithoutUndefined */ export declare const toSVRWU: typeof toShallowVueRefWithoutUndefined; /** * toRVRWU = toReadonlyVueRefWithoutUndefined */ export declare const toRVRWU: typeof toReadonlyVueRefWithoutUndefined; /** * toRSVRWU = toReadonlyShallowVueRefWithoutUndefined */ export declare const toRSVRWU: typeof toReadonlyShallowVueRefWithoutUndefined;