import type { UserInfoResponse } from '@logto/node'; /** * Get the Logto user information. If the user is not signed in, this composable will return * `undefined`. * * Note: This composable relies on the SSR context which is filled by the Logto event handler. Once * the user is signed in, the user information will be available in both the server and client side. * * @returns The user information if the user is signed in, otherwise `undefined`. * * @example * ```ts * const user = useLogtoUser(); * * if (user) { * console.log('User is signed in:', user); // { sub: '123', ... } * } * ``` */ export default function useLogtoUser(): UserInfoResponse | undefined; //# sourceMappingURL=use-logto-user.d.ts.map