import { HandlerKind } from '../../handlers/common.js';
import { R as RequestHandler } from '../../HttpResponse-DQOloMJy.js';
import { WebSocketHandler } from '../../handlers/WebSocketHandler.js';
import '@mswjs/interceptors';
import './isIterable.js';
import '../../typeUtils.js';
import 'strict-event-emitter';
import '@mswjs/interceptors/WebSocket';
import '../matching/matchRequestUrl.js';

/**
 * A filter function that ensures that the provided argument
 * is a handler of the given kind. This helps differentiate
 * between different kinds of handlers, e.g. request and event handlers.
 */
declare function isHandlerKind<K extends HandlerKind>(kind: K): (input: unknown) => input is K extends "EventHandler" ? WebSocketHandler : RequestHandler;

export { isHandlerKind };
