import { IList } from '../../types/data/List'; import { IList as IRawList } from '../../types/raw/base/List'; import { IListDetailsResponse } from '../../types/raw/list/Details'; /** * The details of a single Twitter List. * * @public */ export declare class List implements IList { /** The raw list details. */ private readonly _raw; createdAt: string; createdBy: string; description?: string; id: string; isFollowing: boolean; isMember: boolean; memberCount: number; name: string; subscriberCount: number; /** * @param list - The raw list details. */ constructor(list: IRawList); /** The raw list details. */ get raw(): IRawList; /** * Extracts and deserializes a single target list from the given raw response data. * * @param response - The raw response data. * @param id - The id of the target list. * * @returns The target deserialized list. */ static single(response: IListDetailsResponse, id: string): List | undefined; /** * Extracts and deserializes the timeline of lists followed from the given raw response data. * * @param response - The raw response data. * * @returns The deserialized timeline of lists. */ static timeline(response: NonNullable): List[]; /** * @returns A serializable JSON representation of `this` object. */ toJSON(): IList; }