/**
 * @import {MinimalNetworkConfig} from './network-config.js';
 */
import { agoric } from './codegen/index.js';
import { pickEndpoint } from './rpc.js';
/**
 * @typedef {Awaited<ReturnType<typeof agoric.ClientFactory.createRPCQueryClient>>} AgoricQueryClient
 */
/**
 * @param {MinimalNetworkConfig} config
 * @returns {Promise<AgoricQueryClient>}
 */
export const makeAgoricQueryClient = config => agoric.ClientFactory.createRPCQueryClient({
    rpcEndpoint: pickEndpoint(config),
});
//# sourceMappingURL=clients.js.map