@neardefi/shade-agent-js
Version:
This library is intended to be used in conjunction with the [shade agent template](https://github.com/NearDeFi/shade-agent-template/).
22 lines (19 loc) • 966 B
text/typescript
import { SearchMode as SearchMode$1, Scraper } from 'agent-twitter-client';
/**
* Retrieves the conversation ID for a given tweet
* @param {Object} client - Twitter API client instance
* @param {string} tweetId - ID of the tweet
* @returns {Promise<string|null>} Conversation ID or null if not found
*/
declare function getConversationId(client: any, tweetId: string): Promise<string | null>;
/**
* Retrieves the most recent tweet in a conversation
* @param {Object} client - Twitter API client instance
* @param {string} conversationId - ID of the conversation
* @returns {Promise<Object|null>} Tweet object or null if not found
*/
declare function getLatestConversationTweet(client: any, conversationId: string): Promise<any | null>;
declare const SearchMode: typeof SearchMode$1;
declare const twitter: Scraper;
declare function bakeCookies(): Promise<void>;
export { SearchMode, bakeCookies, getConversationId, getLatestConversationTweet, twitter };