import type { ActivityReply } from '../CommentCard/buildCommentReply'; import type { CommentReply } from '../CommentCard/CommentCard.types'; export type InteractionActivity = { id?: string | number; likes_count?: number; likes?: { user?: { id?: string | number; }; }[]; comments?: ActivityReply[]; }; export type UseActivityInteractionsOptions = { activity: InteractionActivity; currentUser: { id?: string | number; }; onChanged?: () => void; loadingState?: { isLoading: boolean; setIsLoading: (isLoading: boolean) => void; }; }; export type UseActivityInteractionsResult = { isLoading: boolean; isLiked: boolean; likesCount: number; commentsCount: number; isReplyOpen: boolean; toggleReplyOpen: () => void; replies: CommentReply[]; editingReply: ActivityReply | null; cancelReplyEdit: () => void; updateReply: (replyId: string | number, body: string, attachments: { url: string; name: string; size?: number; }[]) => Promise; hasMoreReplies: boolean; moreRepliesCount: number; showMoreReplies: () => void; toggleLike: () => Promise; /** Resolves `false` when the post failed, so the composer can keep the draft. */ postReply: (body: string, attachments?: { url: string; name: string; size?: number; }[]) => Promise; }; export declare const useActivityInteractions: ({ activity, currentUser, onChanged, loadingState, }: UseActivityInteractionsOptions) => UseActivityInteractionsResult; //# sourceMappingURL=useActivityInteractions.d.ts.map