import type { UpdateQuestionOpts } from "../../../query_builder/actions/core/updateQuestion";
import type { QueryModalType } from "../../../query_builder/constants";
import type Question from "../../../../metabase-lib/v1/Question";
import type { Alert, Card, DashboardTabId, User } from "../../../../metabase-types/api";
import type { QueryBuilderMode } from "../../../../metabase-types/store";
type OnCreateOptions = {
    dashboardTabId?: DashboardTabId | undefined;
};
interface QueryModalsProps {
    questionAlerts: Alert[];
    user: User;
    modal: QueryModalType;
    modalContext: number;
    question: Question;
    updateQuestion: (question: Question, config?: UpdateQuestionOpts) => void;
    setQueryBuilderMode: (mode: QueryBuilderMode) => void;
    originalQuestion: Question;
    card: Card;
    onCreate: (question: Question, options?: OnCreateOptions) => Promise<Question>;
    onSave: (question: Question, config?: {
        rerunQuery: boolean;
    }) => Promise<void>;
    onCloseModal: () => void;
    onOpenModal: (modalType: QueryModalType) => void;
    onChangeLocation: (location: string) => void;
}
export declare function QueryModals({ questionAlerts, user, onSave, onCreate, updateQuestion, modal, modalContext, card, question, onCloseModal, onOpenModal, setQueryBuilderMode, originalQuestion, onChangeLocation, }: QueryModalsProps): import("react/jsx-runtime").JSX.Element | null;
export {};
