stream-chat-react
Version:
React components to create chat conversations or livestream style chat
4 lines (3 loc) • 371 B
TypeScript
import type { PollAnswer, PollVote } from 'stream-chat';
import type { CursorPaginatorStateStore } from '../../InfiniteScrollPaginator/hooks/useCursorPaginator';
export declare function useManagePollVotesRealtime<T extends PollVote | PollAnswer = PollVote>(managedVoteType: 'answer' | 'vote', cursorPaginatorState?: CursorPaginatorStateStore<T>, optionId?: string): T[];