declare module 'server-ref:*' { import type { Ref } from 'vue' type ServerRef = Ref & { $syncDown: boolean $syncUp: boolean $onChange(fn: (data: T) => void): void $onPatch(fn: (patch: Partial) => void): void $patch(patch: Partial): Promise } const ref: ServerRef export default ref } declare module 'server-reactive:*' { type ServerReactive = T & { $syncDown: boolean $syncUp: boolean $onChange(fn: (data: T) => void): void $onPatch(fn: (patch: Partial) => void): void $patch(patch: Partial): Promise } const ref: ServerReactive export default ref }