// Copyright 2017 - 2026 will Farrell, Luciano Mammino, and Middy contributors. // SPDX-License-Identifier: MIT import type middy from "@middy/core"; import type { APIGatewayProxyWebsocketHandlerV2 } from "aws-lambda"; interface Route { routeKey: string; handler: APIGatewayProxyWebsocketHandlerV2; } declare function wsRouterHandler(routes: Route[]): middy.MiddyfiedHandler; export default wsRouterHandler;