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

import { RoomsApiClient } from "generated/example/chatApi/clients/roomsClient";

export interface ApiClients {
  roomsClient: RoomsApiClient;
}

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