export {};
declare global {
    namespace Amity {
        type PollDataType = 'text' | 'image';
        type PollAnswerType = 'single' | 'multiple';
        type RawPollAnswer = {
            id: string;
            dataType: PollDataType;
            data: string;
            voteCount: number;
            isVotedByUser: boolean;
            fileId?: string;
        };
        type PollAnswerLinkedObject = {
            image?: Amity.File<'image'>;
        };
        type PollAnswer = RawPollAnswer & PollAnswerLinkedObject;
        type PollStatus = 'closed' | 'open';
        type RawPoll = {
            pollId: string;
            question: string;
            answers: RawPollAnswer[];
            answerType: PollAnswerType;
            closedAt?: Amity.timestamp;
            closedIn?: number;
            isVoted?: boolean;
            status: PollStatus;
            title?: string | null;
            userId: Amity.InternalUser['userId'];
        } & Amity.Timestamps & Amity.SoftDelete;
        type InternalPoll = RawPoll;
        type Poll = Omit<InternalPoll, 'answers'> & {
            answers: PollAnswer[];
        };
    }
}
//# sourceMappingURL=poll.d.ts.map