import type { IMutationContext } from '../../../../../../discussion/shared';
import type { ICache, ICacheItem } from '../..';
import { ResultsVisibility } from '../../../../../../polls';
export interface ICreatePollVars {
    title: {
        [key: string]: string;
    };
    options: {
        position: number;
        description: {
            [key: string]: string;
        };
    }[];
    settings: {
        show_remove_vote?: boolean;
        allow_multiple_votes?: boolean;
        deadline_at?: string;
        hide_participants?: boolean;
        number_of_winners?: number;
        results_visibility?: ResultsVisibility;
    };
}
export declare function useCreatePoll({ mutationFn, mutationHandlers: { mutate: mutateWrapper, error: onError }, queryClient, queryKey, user, }: IMutationContext<ICacheItem, Error, ICreatePollVars, ICache>): import("@tanstack/react-query/build/legacy/types").UseMutateAsyncFunction<import('../../../../../../discussion/shared').IActivity, Error, ICreatePollVars, ICache>;
