import { createTRPCProxyClient } from '@trpc/client';
import { ClientSharedApiLinkService } from './links.js';
/**
 * Non-React API client service for terminal and programmatic consumers.
 *
 * The service owns proxy client construction so CLI, TUI, and ask mode share the
 * same tRPC transport behavior instead of maintaining separate factories.
 */
export class ClientSharedProxyApiService {
    static createClient({ url, batch = true, eventSource, }) {
        return createTRPCProxyClient({
            links: ClientSharedApiLinkService.create({ url, batch, eventSource }),
        });
    }
}
//# sourceMappingURL=proxy.js.map