import type { AnchorHTMLAttributes, ReactElement, ReactNode } from 'react';
import type { NavigationDefinition, NavigationTarget } from './codec.js';
import type { NavTarget } from './snapshot.js';
export interface LinkProps extends AnchorHTMLAttributes {
to: NavTarget;
replace?: boolean;
/** Warm the target shape ahead of navigation. Default `'intent'`. */
prefetch?: 'intent' | 'render' | false;
children: ReactNode;
}
export declare function Link(props: LinkProps): ReactElement;
export type ViewLinkProps = Omit & {
readonly navigation: Definition;
readonly to: NavigationTarget;
};
/** Codec-admitted link for one declared View location. */
export declare function ViewLink(props: ViewLinkProps): ReactElement;
export type NodeLinkProps = Omit & {
readonly to: Extract;
};
/** Canonical node-only link; use ViewLink when a View/params contract exists. */
export declare function NodeLink(props: NodeLinkProps): ReactElement;
//# sourceMappingURL=link.d.ts.map