import { type Params, type unstable_MiddlewareFunction, unstable_RouterContextProvider } from "react-router";
export declare function runMiddleware<T = Response>(middleware: unstable_MiddlewareFunction<T>, { request, context, params, next, }?: {
    request?: Request;
    params?: Params;
    context?: unstable_RouterContextProvider;
    next?: () => T | Promise<T>;
}): Promise<T>;
export declare function catchResponse<T>(promise: Promise<T>): Promise<Response>;
