export type PollInfos = { id: number; title: string; multiSelect: boolean; options: Option[]; answers: number; created: string; }; type Option = { id: number; title: string; isVoted: boolean; answers: number; }; export declare function convertRawToPoll(raw: S): S extends PollInfos[] ? Poll[] : Poll; export default class Poll { constructor(infos: PollInfos); /** * The Internal Id of the Poll * @since 0.2.4 */ id: number; /** * The Title of the Poll * @since 0.2.4 */ title: string; /** * Whether the Poll is multi select * @since 0.2.4 */ isMultiSelect: boolean; /** * The Title of the Poll * @since 0.2.4 */ options: Option[]; /** * The Amount of Answers on the Poll * @since 0.2.4 */ answers: number; /** * The Date when the Poll was created * @since 0.2.4 */ created: Date; } export {};