UNPKG

react-leaf-polls

Version:

Customizable set of poll components for react.

8 lines (7 loc) 561 B
import { RefObject, MutableRefObject } from 'react'; import { Result } from '../../types/result'; import { Theme } from '../../types/theme'; declare function manageVote(results: Result[], item: Result, refs: MutableRefObject<RefObject<HTMLDivElement>[]>, theme?: Theme): void; declare function animateAnswers(results: Result[], refs: MutableRefObject<RefObject<HTMLDivElement>[]>, theme?: Theme, index?: number, isVotedId?: number): void; declare function countPercentage(results: Result[]): void; export { manageVote, countPercentage, animateAnswers };