/** * A Next.js plugin that emits a service worker suitable for prefetching * assets from the XDN. This plugin also applies the `withXDN` plugin. * * Example usage: * * ```js * // next.config.js * * import { withServiceWorker } from '@xdn/next/sw' * * module.exports = withServiceWorker({ * webpack(config, options) { * // your custom webpack config here * } * }) * ``` */ export default function withServiceWorker(_nextConfig: any): any;