import { OnChanges, OnInit, SimpleChanges, TemplateRef } from '@angular/core'; import { Socket } from 'socket.io-client'; import { HandleCreatePollType, HandleEndPollType, HandleVotePollType, Poll, ShowAlert } from '../../@types/types'; import { ModernRenderMode } from '../utils/render-mode.utils'; import * as i0 from "@angular/core"; interface NewPollFormState { options: string[]; question: string; type: '' | 'custom' | 'trueFalse' | 'yesNo'; } export declare class ModernPollModalComponent implements OnInit, OnChanges { isPollModalVisible: boolean; onClose: () => void; position: string; backgroundColor: string; member: string; islevel: string; polls: Poll[]; poll: Poll | null; socket: Socket; roomName: string; showAlert: ShowAlert; updateIsPollModalVisible: (isVisible: boolean) => void; handleCreatePoll: HandleCreatePollType; handleEndPoll: HandleEndPollType; handleVotePoll: HandleVotePollType; overlayStyle?: Partial; contentStyle?: Partial; customTemplate?: TemplateRef; renderMode: ModernRenderMode; showHeader: boolean; readonly faTimes: import("@fortawesome/fontawesome-common-types").IconDefinition; activeTab: 'active' | 'create' | 'history'; newPoll: NewPollFormState; ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; isVisible(): boolean; isEmbedded(): boolean; renderPolls: () => void; calculatePercentage(votes: number[], optionIndex: number): number; handlePollTypeChange(event: Event): void; canCreatePoll(): boolean; setActiveTab(tab: 'active' | 'create' | 'history'): void; validateAndCreatePoll(): Promise; handledVotePoll(pollId: string, optionIndex: number): void; handledEndPoll(pollId: string): void; resolvedOverlayStyle(): Record; resolvedContentStyle(): Record; private resolvePositionStyle; private normalizeStyle; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export {};