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

/**
 * 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 };
