import { libp2pDefaults } from '@helia/libp2p';
import { kadDHT } from '@libp2p/kad-dht';
export function getLibp2pConfig() {
    const libp2pDefaultOptions = libp2pDefaults();
    libp2pDefaultOptions.start = false;
    const services = {
        autoNAT: libp2pDefaultOptions.services.autoNAT,
        dcutr: libp2pDefaultOptions.services.dcutr,
        dht: kadDHT({
            clientMode: true
        }),
        identify: libp2pDefaultOptions.services.identify,
        keychain: libp2pDefaultOptions.services.keychain,
        ping: libp2pDefaultOptions.services.ping,
        upnp: libp2pDefaultOptions.services.upnp
    };
    return {
        ...libp2pDefaultOptions,
        start: false,
        services
    };
}
//# sourceMappingURL=libp2p-defaults.js.map