import { Context } from 'koa'; import { HttpRedirect as HttpRedirectContract } from '@supercharge/contracts'; export declare class HttpRedirect implements HttpRedirectContract { /** * The route context object from Koa. */ private readonly ctx; /** * Create a new instance. */ constructor(ctx: Context); /** * Redirect the request back to the previous path. */ back(options?: { fallback: string; }): this; /** * Redirect the request to the given URL `path`. */ to(path: string): this; /** * Redirects the request with HTTP status 307. This keeps the request payload * which is useful for POST/PUT requests containing content. * * More details: Details: https://developer.mozilla.org/de/docs/Web/HTTP/Status */ withPayload(): this; /** * Marks this redirect as permanent with HTTP status 301. */ permanent(): this; }