import type Question from "../../../../metabase-lib/v1/Question";
import type { Dashboard } from "../../../../metabase-types/api";
import type { DashboardSharingModalType, QuestionSharingModalType } from "./types";
type BaseSharingModalProps = {
    onClose: () => void;
};
type SharingModalProps = BaseSharingModalProps & ({
    modalType: QuestionSharingModalType;
    question: Question;
    dashboard?: never;
} | {
    modalType: DashboardSharingModalType;
    dashboard: Dashboard;
    question?: never;
} | {
    modalType: null;
    question?: Question;
    dashboard?: Dashboard;
});
export declare const SharingModals: ({ modalType, onClose, question, dashboard, }: SharingModalProps) => import("react/jsx-runtime").JSX.Element | null;
export {};
