import type { AnyRouter } from '@trpc/server' ; import { CreateTRPCClientOptions , TRPCClient as Client , } from './internals/TRPCClient' ; export function createTRPCClient < TRouter extends AnyRouter > ( opts ) { return new Client < TRouter > ( opts ) ; } export type { CreateTRPCClientOptions } from './internals/TRPCClient' ; export type TRPCClient < TRouter extends AnyRouter > = Client < TRouter > ; export type { TRPCRequestOptions } from './internals/TRPCClient' ;