import { User } from '@gecogvidanto/shared'; /** * This hooks can be used to manage user data. In a page where multiple component may want to query user * data, it is advised to wrap all in a `UserDataCache`. * * @param id - The user identifier for which we need the data. * @returns The user data, or undefined if no data loaded yet. */ export default function useUserData(id: string): User | undefined;