import * as React from 'react'; import type { ExpoRouter } from '../interfaces/router'; import { resolveHref } from './href'; /** Redirects to the href as soon as the component is mounted. */ export declare function Redirect({ href }: { href: ExpoRouter.Href; }): null; export interface LinkComponent { (props: React.PropsWithChildren): JSX.Element; /** Helper method to resolve an Href object into a string. */ resolveHref: typeof resolveHref; } /** * Component to render link to another route using a path. * Uses an anchor tag on the web. * * @param props.href Absolute path to route (e.g. `/feeds/hot`). * @param props.replace Should replace the current route without adding to the history. * @param props.push Should push the current route, always adding to the history. * @param props.asChild Forward props to child component. Useful for custom buttons. * @param props.children Child elements to render the content. * @param props.className On web, this sets the HTML `class` directly. On native, this can be used with CSS interop tools like Nativewind. */ export declare const Link: LinkComponent; //# sourceMappingURL=Link.d.ts.map