import { Context } from 'hono'; /** * Redirect to a new location in a way that React Router can handle. * * It follows the Single Fetch Redirect protocol. * * @deprecated Use `redirect` instead. `import { reactRouterRedirect } from "react-router-hono-server/http"` */ declare function reactRouterRedirect(location: string): Response; /** * Redirect to a new location. * * It follows the Single Fetch Redirect protocol, if the request path ends with `.data`. */ declare function redirect(c: Context, location: string): Response; /** * Get the current request path * * If the path ends with `.data` (React Router Single Fetch query), it will be removed. */ declare function getPath(c: Context): string; export { getPath, reactRouterRedirect, redirect };