import { Logger } from '@nodescript/logger'; import { DomainMethodStat, ProtocolIndex } from '@nodescript/protocomm'; import { Event } from 'nanoevent'; import { HttpContext } from '../HttpContext.js'; import { HttpHandler, HttpNext } from '../HttpHandler.js'; /** * Routes HTTP requests according to specified protocol. * * Handler must be created in request scope by passing protocol implementation * (which can also request-scoped). */ export declare abstract class HttpProtocolHandler

implements HttpHandler { logger: Logger; abstract protocol: ProtocolIndex

; abstract protocolImpl: P; prefix: string; methodStats: Event; handle(ctx: HttpContext, next: HttpNext): Promise; protected parsePath(path: string): string[]; protected parseParams(ctx: HttpContext): Promise; }