UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

5 lines (4 loc) 573 B
import type { PollAnswer, PollVote } from 'stream-chat'; import type { DefaultStreamChatGenerics } from '../../../types'; import { CursorPaginatorStateStore } from '../../InfiniteScrollPaginator/hooks/useCursorPaginator'; export declare function useManagePollVotesRealtime<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics, T extends PollVote<StreamChatGenerics> | PollAnswer<StreamChatGenerics> = PollVote<StreamChatGenerics>>(managedVoteType: 'answer' | 'vote', cursorPaginatorState?: CursorPaginatorStateStore<T>, optionId?: string): T[];