import { ClientMiddleware } from "../client.js"; export interface RedirectMiddlewareOptions { onError?: (error: unknown) => void; } /** * transparent redirects! * * Be aware that the client might send execute the stream (or similar, like entities or lines) factory more than once during a redirect when http 100 is not supported or enabled. * Also, permanent redirects are cached forever! * * in other words handle with care :-) */ export declare function createRedirectMiddleware(options?: RedirectMiddlewareOptions): ClientMiddleware;