import { Client } from "./Client"; import { User } from "../flow-api/types/payload"; /** * A class to manage user information. * * @category SDK * @subcategory Clients * @extends {Client} */ declare class UserClient extends Client { /** * Fetches the current user. * * @return {Promise} * @throws {UnauthorizedError} * @throws {RequestTimeoutError} * @throws {TechnicalError} * @deprecated * @see https://docs.hanko.io/api/public#tag/User-Management/operation/IsUserAuthorized * @see https://docs.hanko.io/api/public#tag/User-Management/operation/listUser */ getCurrent(): Promise; /** * Fetches the current user. * * @return {Promise} * @throws {UnauthorizedError} * @throws {RequestTimeoutError} * @throws {TechnicalError} */ getCurrentUser(): Promise; /** * Logs out the current user and expires the existing session cookie. A valid session cookie is required to call the logout endpoint. * * @return {Promise} * @throws {RequestTimeoutError} * @throws {TechnicalError} */ logout(): Promise; } export { UserClient };