import type { EditorPluginConfig, ViewerPluginConfig } from 'wix-rich-content-common'; import type { Poll } from './components/poll-context'; export declare const POLL_TYPE = "wix-draft-plugin-poll"; export type PollServiceApi = { fetchPoll: (pollId: string) => Promise; createPoll: (poll: Poll) => Promise; updatePoll: (poll: Poll) => Promise; vote: (pollId: string, optionId: string) => Promise; unvote: (pollId: string, optionId: string) => Promise; getVoters: (pollId: string, optionId: string, params: any) => Promise; }; export interface PollPluginEditorConfig extends EditorPluginConfig { [key: string]: any; pollServiceApi?: PollServiceApi; showVoteRoleSetting?: boolean; } export interface PollPluginViewerConfig extends ViewerPluginConfig { [key: string]: any; onBeforeVote?: ({ voteRole }: { voteRole?: string; }) => Promise; getSiteMembers?: (ids: string[]) => Promise; } export type PollsMember = { siteMemberId?: string; imageUrl?: string; name?: { nick?: string; }; }; //# sourceMappingURL=types.d.ts.map