import { FC } from 'react';
import { ICard, ISpecificCard } from '../../../../types/cards';
import { ApiStatus } from '../../../../types/api';
interface IProps {
    card: ICard;
    email: string;
    specificCardData: Record<string, ISpecificCard> | null;
    specificConnectorApiStatus: Record<string, ApiStatus> | null;
    defaultOpenState: boolean;
    onCardUnlinking: () => void;
    isPrimaryUserAuthCard?: boolean;
}
/**
 * Wraps the regular Card render with the user-tier auth gate.
 *
 * - When the install has not opted into user-tier auth
 *   (`card.userAuthEnabled !== true`) → renders the regular Card.
 *   Zero behavior change for legacy connectors.
 *
 * - When opted in:
 *     * On mount, fetches /user-auth/status once via tanstack-query
 *       (30s staleTime → batches across cards sharing the connector).
 *     * If the resolved state is `connected` (or `unknown` while the
 *       fetch is in-flight) → renders the regular Card.
 *     * Otherwise renders <UserAuthCard /> with the right variant.
 *
 *   The `onConnected` callback invalidates the card data query so
 *   the regular Card mounts immediately after the popup completes,
 *   without forcing the user to refresh or remount.
 */
export declare const CardWithUserAuth: FC<IProps>;
export {};
//# sourceMappingURL=CardWithUserAuth.d.ts.map