import type { MuteDuration } from "../../../interfaces/MuteDuration"; import type { ConversationMember } from "../../../interfaces/models/ConversationMember"; export interface MuteConversationProps { conversationId: string; /** * The duration CHOICE (`8h` / `24h` / `1w` / `forever`), or `null` to clear * the mute. Never a raw timestamp — the server resolves the choice and * represents "forever" via the returned member's explicit `mutedForever` * signal. */ duration: MuteDuration | null; } export interface UseMuteConversationValues { /** * Set or clear the acting user's mute on a conversation. Resolves to the * updated (self-serialized) `currentMember` — read `mutedForever` / * `mutedUntil` off it for the resulting state. */ muteConversation: (props: MuteConversationProps) => Promise; muting: boolean; } /** * Set / clear the acting user's conversation mute. Mirrors the server's * `POST /:projectId/chat/conversations/:conversationId/mute` exactly. */ declare function useMuteConversation(): UseMuteConversationValues; export default useMuteConversation;