import { HandleReportResponse } from "./useHandleSpaceCommentReport"; export interface HandleSpaceChatReportParams { spaceId: string; reportId: string; messageId?: string; actions: Array<"remove-message" | "ban-user" | "dismiss">; summary?: string; /** The ban TARGET, not the moderator. */ userId?: string; reason?: string; /** The acting moderator, for attribution. */ actingUserId?: string; } /** * Hook to handle chat message reports at the space level. * Space moderators can: remove message, ban user from space, dismiss. * * `ban-user` is space-scoped (it sets the target's SpaceMember status to * "banned"). Project-wide suspension is a dashboard action, not one a space * moderator can take. * * @example * const handleSpaceChatReport = useHandleSpaceChatReport(); * * await handleSpaceChatReport({ * spaceId: "space-uuid", * reportId: "report-uuid", * messageId: "message-uuid", * actions: ["remove-message"], * summary: "Removed abusive message" * }); */ declare function useHandleSpaceChatReport(): (params: HandleSpaceChatReportParams) => Promise; export default useHandleSpaceChatReport;