import { USE_VERIFICATION_MOCK } from '../constants';
import type { VerificationApi } from '../types';
import { verificationClientApi } from './clientApi';
import { verificationMockApi } from './mockApi';

/**
 * The selected VerificationApi implementation — the single seam the hooks import. Selection is by
 * config (USE_VERIFICATION_MOCK), never by scattered `if (mock)` checks.
 */
export const verificationApi: VerificationApi = USE_VERIFICATION_MOCK ? verificationMockApi : verificationClientApi;
