import { TwitterAuth } from './auth'; import { QueryTweetsResponse } from './timeline-v1'; import { TimelineEntryItemContentRaw } from './timeline-v2'; export interface Mention { id: string; username?: string; name?: string; } export interface Photo { id: string; url: string; alt_text: string | undefined; } export interface Video { id: string; preview: string; url?: string; } export interface PlaceRaw { id?: string; place_type?: string; name?: string; full_name?: string; country_code?: string; country?: string; bounding_box?: { type?: string; coordinates?: number[][][]; }; } /** * A parsed Tweet object. */ export interface Tweet { conversationId?: string; hashtags: string[]; html?: string; id?: string; inReplyToStatus?: Tweet; inReplyToStatusId?: string; isQuoted?: boolean; isPin?: boolean; isReply?: boolean; isRetweet?: boolean; isSelfThread?: boolean; likes?: number; name?: string; mentions: Mention[]; permanentUrl?: string; photos: Photo[]; place?: PlaceRaw; quotedStatus?: Tweet; quotedStatusId?: string; replies?: number; retweets?: number; retweetedStatus?: Tweet; retweetedStatusId?: string; text?: string; thread: Tweet[]; timeParsed?: Date; timestamp?: number; urls: string[]; userId?: string; username?: string; videos: Video[]; views?: number; sensitiveContent?: boolean; } export type TweetQuery = Partial | ((tweet: Tweet) => boolean | Promise); export declare const features: { rweb_lists_timeline_redesign_enabled: boolean; responsive_web_graphql_exclude_directive_enabled: boolean; verified_phone_label_enabled: boolean; creator_subscriptions_tweet_preview_api_enabled: boolean; responsive_web_graphql_timeline_navigation_enabled: boolean; responsive_web_graphql_skip_user_profile_image_extensions_enabled: boolean; tweetypie_unmention_optimization_enabled: boolean; responsive_web_edit_tweet_api_enabled: boolean; graphql_is_translatable_rweb_tweet_is_translatable_enabled: boolean; view_counts_everywhere_api_enabled: boolean; longform_notetweets_consumption_enabled: boolean; tweet_awards_web_tipping_enabled: boolean; freedom_of_speech_not_reach_fetch_enabled: boolean; standardized_nudges_misinfo: boolean; longform_notetweets_rich_text_read_enabled: boolean; responsive_web_enhance_cards_enabled: boolean; subscriptions_verification_info_enabled: boolean; subscriptions_verification_info_reason_enabled: boolean; subscriptions_verification_info_verified_since_enabled: boolean; super_follow_badge_privacy_enabled: boolean; super_follow_exclusive_tweet_notifications_enabled: boolean; super_follow_tweet_api_enabled: boolean; super_follow_user_api_enabled: boolean; android_graphql_skip_api_media_color_palette: boolean; creator_subscriptions_subscription_count_enabled: boolean; blue_business_profile_image_shape_enabled: boolean; unified_cards_ad_metadata_container_dynamic_card_content_query_enabled: boolean; }; export declare function fetchTweets(userId: string, maxTweets: number, cursor: string | undefined, auth: TwitterAuth): Promise; export declare function fetchListTweets(listId: string, maxTweets: number, cursor: string | undefined, auth: TwitterAuth): Promise; export declare function getTweets(user: string, maxTweets: number, auth: TwitterAuth): AsyncGenerator; export declare function getTweetsByUserId(userId: string, maxTweets: number, auth: TwitterAuth): AsyncGenerator; export declare function getTweetWhere(tweets: AsyncIterable, query: TweetQuery): Promise; export declare function getTweetsWhere(tweets: AsyncIterable, query: TweetQuery): Promise; export declare function getLatestTweet(user: string, includeRetweets: boolean, max: number, auth: TwitterAuth): Promise; export interface TweetResultByRestId { data?: TimelineEntryItemContentRaw; } export declare function getTweet(id: string, auth: TwitterAuth): Promise; export declare function getTweetAnonymous(id: string, auth: TwitterAuth): Promise; //# sourceMappingURL=tweets.d.ts.map