UNPKG

@hhgtech/hhg-components

Version:
51 lines (50 loc) 1.7 kB
export declare const likeUnlikePost: ({ id, locale, }: { id: number | string; locale: string; }) => Promise<any>; export declare const deletePost: ({ id, locale, }: { id: number | string; locale: string; }) => Promise<any>; export declare const getPostFormData: ({ title, description, communityId, imageFiles, previewUrl, topicIds, locale, sanitizeFunction, categoryCommunityId, categoryTopicIds, introUrl, bannerUrl, scheduleTime, isAnonymous, isAskDoctor, }: { title: string; description: string; communityId?: string; categoryCommunityId?: string; imageFiles?: (string | File)[]; previewUrl?: { title?: string; description?: string; url?: string; image?: string; }; topicIds?: string[]; categoryTopicIds?: string[]; locale: string; sanitizeFunction?: (h: string) => string; introUrl?: string; bannerUrl?: string | File; scheduleTime?: string; isAnonymous?: number; isAskDoctor?: number; }) => Promise<FormData>; export declare const createPost: ({ locale, formData, isArticleComment, }: { locale: string; formData: FormData; isArticleComment?: boolean; }) => Promise<any>; export declare const editPost: ({ id, locale, formData, }: { id: number | string; locale: string; formData: FormData; }) => Promise<any>; export declare const followUnfollowPost: ({ id, locale, }: { id: number | string; locale: string; followValue?: boolean; }) => Promise<any>; export declare const reportPost: ({ id, reason, locale, }: { id: number | string; reason: string; locale: string; }) => Promise<any>;