import type { LysandClient } from "@lysand-org/client"; import { StorageSerializers } from "@vueuse/core"; // Return type of LysandClient.getInstance export type Instance = Awaited>["data"]; export const useInstance = () => { if (process.server) { return ref(null); } return useLocalStorage("lysand:instance", null, { serializer: StorageSerializers.object, }); };