/** WebSocket middleware: development mode only. Handles WebSocket connections using the Kitten `ws` mixin to implment hot reload functionality along with the client-side Kitten development time script that’s injected into pages during development. On connection, sends server’s boot ID so development-time clients can reliably detect server restarts (the boot ID changes across process starts). @returns {import('polka').Middleware} */ import type { NextHandler } from 'polka'; import type { KittenRequest, KittenResponse, WebSocket } from '../types/index.ts'; export default function (): (request: KittenRequest & { ws?: () => Promise; }, _response: KittenResponse, next: NextHandler) => Promise;