import { USE_PAYOUTS_MOCK } from '../constants';
import type { PayoutsApi } from '../types';
import { payoutsClientApi } from './clientApi';
import { payoutsMockApi } from './mockApi';

/**
 * The selected `PayoutsApi` implementation — the single seam the hooks import. Selection is by config
 * (`USE_PAYOUTS_MOCK`), never by scattered `if (mock)` checks. Mock-primary this phase (REQ-025 gaps).
 */
export const payoutsApi: PayoutsApi = USE_PAYOUTS_MOCK ? payoutsMockApi : payoutsClientApi;
