import type { Query } from "history";
import type { Card, CardId, DashCardId, DashboardCard, DashboardId, Dataset, DatasetQuery } from "@metabase/embedding-sdk-react/dist/frontend/src/metabase-types/api";
import type { Dispatch, GetState } from "@metabase/embedding-sdk-react/dist/frontend/src/metabase-types/store";
export declare const FETCH_DASHBOARD_CARD_DATA = "metabase/dashboard/FETCH_DASHBOARD_CARD_DATA";
export declare const fetchDashboardCardDataAction: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
    currentTime: number;
    loadingIds: DashCardId[];
}, string>;
export declare const CANCEL_FETCH_DASHBOARD_CARD_DATA = "metabase/dashboard/CANCEL_FETCH_DASHBOARD_CARD_DATA";
export declare const FETCH_CARD_DATA = "metabase/dashboard/FETCH_CARD_DATA";
export declare const ADD_DASHCARD_IDS_TO_LOADING_QUEUE = "metabase/dashboard/ADD_DASHCARD_IDS_TO_LOADING_QUEUE";
export declare const addDashcardIdsToLoadingQueue: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[dashcard_id: any, card_id: any], {
    dashcard_id: any;
    card_id: any;
}, "metabase/dashboard/ADD_DASHCARD_IDS_TO_LOADING_QUEUE", never, never>;
export declare const CANCEL_FETCH_CARD_DATA = "metabase/dashboard/CANCEL_FETCH_CARD_DATA";
export declare const CLEAR_CARD_DATA = "metabase/dashboard/CLEAR_CARD_DATA";
export declare const SET_LOADING_DASHCARDS_COMPLETE = "metabase/dashboard/SET_LOADING_DASHCARDS_COMPLETE";
export declare const SET_DOCUMENT_TITLE = "metabase/dashboard/SET_DOCUMENT_TITLE";
export declare const setDocumentTitle: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>;
export declare const SET_SHOW_LOADING_COMPLETE_FAVICON = "metabase/dashboard/SET_SHOW_LOADING_COMPLETE_FAVICON";
export declare const setShowLoadingCompleteFavicon: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>;
export declare const MARK_CARD_AS_SLOW = "metabase/dashboard/MARK_CARD_AS_SLOW";
export declare const markCardAsSlow: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[card: Card<DatasetQuery>], {
    id: number;
    result: boolean;
}, "metabase/dashboard/MARK_CARD_AS_SLOW", never, never>;
type FetchCardDataActionArgs = {
    card: Card;
    dashcard: DashboardCard;
    options: {
        clearCache?: boolean;
        ignoreCache?: boolean;
        reload?: boolean;
        dashboardLoadId?: string;
    };
};
type FetchCardDataActionReturned = {
    dashcard_id: DashCardId;
    card_id: CardId;
    result: Dataset | {
        error: unknown;
    } | null;
    currentTime?: number;
} | undefined;
export declare const fetchCardDataAction: import("@reduxjs/toolkit").AsyncThunk<FetchCardDataActionReturned, FetchCardDataActionArgs, {
    state: import("@metabase/embedding-sdk-react/dist/frontend/src/metabase-types/store").State;
    dispatch?: import("@reduxjs/toolkit").ThunkDispatch<unknown, unknown, import("@reduxjs/toolkit").UnknownAction> | undefined;
    extra?: unknown;
    rejectValue?: unknown;
    serializedErrorType?: unknown;
    pendingMeta?: unknown;
    fulfilledMeta?: unknown;
    rejectedMeta?: unknown;
}>;
export declare const fetchCardData: (card: FetchCardDataActionArgs["card"], dashcard: FetchCardDataActionArgs["dashcard"], options?: FetchCardDataActionArgs["options"]) => (dispatch: Dispatch) => Promise<void>;
export declare const fetchDashboardCardData: ({ isRefreshing, reload, clearCache }?: {
    isRefreshing?: boolean | undefined;
    reload?: boolean | undefined;
    clearCache?: boolean | undefined;
}) => (dispatch: Dispatch, getState: GetState) => Promise<void> | undefined;
export declare const reloadDashboardCards: () => (dispatch: Dispatch, getState: GetState) => Promise<void>;
export declare const cancelFetchDashboardCardData: () => (dispatch: import("@reduxjs/toolkit").ThunkDispatch<any, any, any>, getState: GetState) => Promise<{
    type: "metabase/dashboard/CANCEL_FETCH_DASHBOARD_CARD_DATA";
    payload: void;
}>;
export declare const cancelFetchCardData: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[card_id: any, dashcard_id: any], {
    dashcard_id: any;
    card_id: any;
}, "metabase/dashboard/CANCEL_FETCH_CARD_DATA", never, never>;
export declare const clearCardData: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[cardId: any, dashcardId: any], {
    cardId: any;
    dashcardId: any;
}, "metabase/dashboard/CLEAR_CARD_DATA", never, never>;
export declare const fetchDashboard: import("@reduxjs/toolkit").AsyncThunk<{
    entities: {
        [key: string]: {
            [key: string]: any;
        } | undefined;
    };
    dashboard: any;
    dashboardId: any;
    parameterValues: {
        [k: string]: any;
    };
    preserveParameters: boolean;
}, {
    dashId: DashboardId;
    queryParams: Query;
    options?: {
        preserveParameters?: boolean | undefined;
        clearCache?: boolean | undefined;
    } | undefined;
}, {
    state: import("@metabase/embedding-sdk-react/dist/frontend/src/metabase-types/store").State;
    dispatch?: import("@reduxjs/toolkit").ThunkDispatch<unknown, unknown, import("@reduxjs/toolkit").UnknownAction> | undefined;
    extra?: unknown;
    rejectValue?: unknown;
    serializedErrorType?: unknown;
    pendingMeta?: unknown;
    fulfilledMeta?: unknown;
    rejectedMeta?: unknown;
}>;
export {};
