import { CursoredData } from '../../models/data/CursoredData'; import { List } from '../../models/data/List'; import { Tweet } from '../../models/data/Tweet'; import { User } from '../../models/data/User'; import { BrowserFetcherService } from './BrowserFetcherService'; import { BrowserRettiwtConfig } from '../config/BrowserRettiwtConfig'; /** * Browser-compatible list service. * Handles interacting with resources related to lists. * * @public */ export declare class BrowserListService extends BrowserFetcherService { /** * @param config - The browser config object for configuring the Rettiwt instance. */ constructor(config: BrowserRettiwtConfig); /** * Add a user as a member of a list. * * @param listId - The ID of the target list. * @param userId - The ID of the target user to be added as a member. * @returns The new member count of the list. If adding was unsuccessful, return `undefined`. */ addMember(listId: string, userId: string): Promise; /** * Get the details of a list. * * @param id - The ID of the target list. * @returns The details of the list. */ details(id: string): Promise; /** * Get the members of a list. * * @param id - The ID of the target list. * @param count - The number of members to fetch, must be <= 100. * @param cursor - The cursor to the batch of members to fetch. * @returns The list of members of the target list. */ members(id: string, count?: number, cursor?: string): Promise>; /** * Remove a user from a list. * * @param listId - The ID of the target list. * @param userId - The ID of the target user to be removed. * @returns The new member count of the list. If removal was unsuccessful, return `undefined`. */ removeMember(listId: string, userId: string): Promise; /** * Get the tweets from a list. * * @param id - The ID of the target list. * @param count - The number of tweets to fetch, must be <= 100. * @param cursor - The cursor to the batch of tweets to fetch. * @returns The list of tweets from the target list. */ tweets(id: string, count?: number, cursor?: string): Promise>; }