import Discourse from '../index'; import { Post, PostActionType } from '../types/Posts'; export interface CreatePostBody { [key: string]: any; } export interface PostActionBody { id?: number; message?: string; flag_topc?: boolean; post_action_type_id: PostActionType; } export interface IPosts { create(inputs: CreatePostBody): Promise; reply(params: { topic_id: number; raw: string; reply_to_post_number: number; }): Promise; postAction(params: { method: string; body: PostActionBody; id: number | null; }): Promise; like(params: { id: number; }): Promise; unlike(params: { id: number; }): Promise; flag(params: { id: number; post_action_type_id: number; message: string; flag_topic: boolean; }): Promise; } export default function Posts(discourse: Discourse): void;