import type { RedditCommentListing, RedditListing } from "./types-api.js"; /** * Get OAuth2 access token from Reddit API */ export declare function getAccessToken(): Promise; /** * Fetch a batch of posts from Reddit. * * @param accessToken Access token retrieved by getAccessToken() * @param subreddit Name of subreddit (without any /r/ prefix) * @param limit Max number of entries to return * @param after Provide this to fetch entries after this id. Provided by the response of the function. */ export declare function fetchNewestPostsBatch(accessToken: string, subreddit: string, limit: number, after?: string): Promise; /** * Fetch comments for a specific post * * @param accessToken Access token retrieved by getAccessToken() * @param subreddit Name of subreddit (without any /r/ prefix) * @param postId Id of post to fetch comments for * @param config Configuration object with depth, limit, and sort options */ export declare function fetchComments(accessToken: string, subreddit: string, postId: string, config?: { depth?: number; limit?: number; sort?: string; }): Promise<[any, RedditCommentListing]>; //# sourceMappingURL=reddit-api.d.ts.map