UNPKG

@hhgtech/hhg-components

Version:
32 lines (31 loc) 1.18 kB
export declare const BANNED_STATUS: string[]; export declare const BANNED_MESSAGE_INTL_ID: { [key: string]: string; }; export declare const getCommentFormBody: ({ postId, message, photos, link, locale, sanitizeFunction, replyingUserId, replyingUserName, replyingId, }: { locale: string; postId: string; message: string; photos?: File[]; link?: string; sanitizeFunction?: (text: string) => string; replyingId?: string; replyingUserId?: string; replyingUserName?: string; }) => Promise<FormData>; export declare const submitComment: (formData: FormData, locale: string) => Promise<any | null>; export type CommentBodyData = { text: string; replyingTo?: string; }; export declare const decodeCommentBody: (s: string) => CommentBodyData; export declare const submitReply: (formData: FormData, locale: string) => Promise<any | null>; export declare const likeUnlikeComment: ({ commentId, setLike, locale, }: { commentId: string; setLike?: boolean; locale: string; }) => Promise<any>; export declare const deleteComment: ({ id, locale, }: { id: string; locale: string; }) => Promise<any>;