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

import type { AuthProvider } from "generated/example/queryAuthApi/client/operationBindings";
import { QueryAuthApiClient } from "generated/example/queryAuthApi/clients/queryAuthClient";

export interface ApiClients {
  queryAuthClient: QueryAuthApiClient;
}

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