import { IUser } from '../../types/data/User'; import { IUser as IRawUser } from '../../types/raw/base/User'; /** * The details of a single user. * * @public */ export declare class User implements IUser { /** The raw user details. */ private readonly _raw; createdAt: string; description?: string; followersCount: number; followingsCount: number; fullName: string; id: string; isFollowed?: boolean; isFollowing?: boolean; isVerified: boolean; likeCount: number; location?: string; pinnedTweet?: string; profileBanner?: string; profileImage: string; statusesCount: number; userName: string; /** * @param user - The raw user details. */ constructor(user: IRawUser); /** The raw user details. */ get raw(): IRawUser; /** * Extracts and deserializes multiple target users from the given raw response data. * * @param response - The raw response data. * @param ids - The ids of the target users. * * @returns The target deserialized users. */ static multiple(response: NonNullable, ids: string[]): User[]; /** * Extracts and deserializes a single target user from the given raw response data. * * @param response - The raw response data. * * @returns The target deserialized user. */ static single(response: NonNullable): User | undefined; /** * Extracts and deserializes the timeline of users from the given raw response data. * * @param response - The raw response data. * * @returns The deserialized timeline of users. */ static timeline(response: NonNullable): User[]; /** * @returns A serializable JSON representation of `this` object. */ toJSON(): IUser; }