// Generated by smithplates HTTP codegen. Do not edit.

import type { AuthProvider } from "generated/example/authApi/client/operationBindings";
import { AuthApiClient } from "generated/example/authApi/clients/authClient";

export interface ApiClients {
  authClient: AuthApiClient;
}

export function createApiClients(
  baseUrl: string,
  fetchFn: typeof fetch = fetch,
  authProvider?: AuthProvider,
): ApiClients {
  const normalizedBaseUrl = baseUrl.replace(/\/+$/, "");
  return {
    authClient: new AuthApiClient(normalizedBaseUrl, fetchFn, authProvider),
  };
}
