import type { BaseEntityId, CardId, DashboardId } from "@metabase/embedding-sdk-react/dist/frontend/src/metabase-types/api";
type SUPPORTED_ENTITIES = {
    dashboard: DashboardId;
    card: CardId;
};
/**
 * A hook that validates and potentially translates an entity ID.
 *
 * If the hook is loading, then `null` is returned.
 * If the ID is a valid NanoID and the translation is successful, the translated ID is returned.
 * Otherwise, the original ID is returned.
 *
 * @param {Object} params - The parameters for the hook.
 * @param {EntityType} params.type - The type of the entity (e.g., 'card', 'dashboard', etc.).
 * @param {string | number | null | undefined} params.id - The ID to validate and potentially translate.
 *
 */
export declare const useValidatedEntityId: <TEntity extends keyof SUPPORTED_ENTITIES, TReturnedId = SUPPORTED_ENTITIES[TEntity]>({ type, id, }: {
    type: TEntity;
    id: BaseEntityId | string | number | null | undefined;
}) => {
    id: TReturnedId;
    isLoading: false;
    isError: false;
} | {
    id: null;
    isLoading: true;
    isError: false;
} | {
    id: null;
    isLoading: false;
    isError: true;
};
export {};
