export interface IDiscourseTopic { url: string; title: string; categoryId: number; likeCount: number; postsCount: number; } export interface IDiscourseOptions { forumBaseUrl: string; categoryId?: number; tag?: string; numTopics?: number; offset?: number; } export declare class Discourse { forumBaseUrl: string; categoryId: number; tag: string; numTopics: number; offset: number; topics: IDiscourseTopic[]; apiUrl: string; constructor(options: IDiscourseOptions); createDiscourseTopicsUrl(): string; createLinkToTopic(topicId: number, slug: string): string; formatTopics(rawTopics: object[]): { title: any; url: string; categoryId: any; likeCount: any; postsCount: any; }[]; getTopics(): Promise; fetchTopics(): Promise; }