/// import { ServerResponse } from 'http'; export declare type RedirectCode = 300 | 301 | 302 | 303 | 304 | 307; declare const _default: (code: RedirectCode, target: string, res?: ServerResponse | undefined) => void; /** * Redirect to the target URL. * If `res` is provided, then a server-side redirect is performed using the given status code. * Otherwise, a client-side redirect is performed. */ export default _default;