import { kadDHT } from '@libp2p/kad-dht'
import { createBaseOptions } from '../fixtures/base-options.js'
import type { Libp2pOptions } from '../../src/index.js'
import type { KadDHT } from '@libp2p/kad-dht'

export function createRoutingOptions (...overrides: Libp2pOptions[]): Libp2pOptions<{ dht: KadDHT }> {
  return createBaseOptions({
    services: {
      dht: kadDHT()
    }
  }, ...overrides)
}
