19 lines
742 B
TypeScript
19 lines
742 B
TypeScript
import { R as RequestHandler, m as ResponseResolutionContext } from './HttpResponse-Cw4ELwIN.mjs';
|
|
import '@mswjs/interceptors';
|
|
import './utils/internal/isIterable.mjs';
|
|
import './typeUtils.mjs';
|
|
import 'graphql';
|
|
import './utils/matching/matchRequestUrl.mjs';
|
|
|
|
/**
|
|
* Finds a response for the given request instance
|
|
* in the array of request handlers.
|
|
* @param handlers The array of request handlers.
|
|
* @param request The `Request` instance.
|
|
* @param resolutionContext Request resolution options.
|
|
* @returns {Response} A mocked response, if any.
|
|
*/
|
|
declare const getResponse: (handlers: Array<RequestHandler>, request: Request, resolutionContext?: ResponseResolutionContext) => Promise<Response | undefined>;
|
|
|
|
export { getResponse };
|