import { type AnchorHTMLAttributes, type ForwardRefExoticComponent } from "react";
import { type LinkClassNameOptions } from "./styles.js";
/**
 * @since 6.0.0
 */
export type CustomLinkComponent = ForwardRefExoticComponent<{
    href: string;
}> | ForwardRefExoticComponent<{
    to: string;
}> | "a";
/**
 * @since 6.0.0 Removed the `preventMaliciousTarget` prop since browsers
 * default to `rel=noopener` after updating the {@link https://github.com/whatwg/html/issues/4078|spec}.
 * @since 6.0.0 Removed the `component` prop since all you need for link
 * behavior is `className="rmd-link"`.
 * @since 6.0.0 The `href` prop is required.
 * @since 6.0.0 Renamed `flexCentered` to `flex`.
 */
export interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement>, LinkClassNameOptions {
    /**
     * All links **must** have a valid href.
     */
    href: string;
    /**
     * Set this to `true` if your link contains icons that should be centered and
     * spaced with additional text. This is not used by default so that links can
     * correctly line wrap while rendered within paragraphs of text.
     *
     * @defaultValue `false`
     */
    flex?: boolean;
}
/**
 * @example Simple Example
 * ```tsx
 * import { Link } from "@react-md/core/link/Link";
 * import { Typography } from "@react-md/core/typography/Typography";
 * import type { ReactElement } from "react";
 *
 * function Element(): ReactElement {
 *   return (
 *     <Typography>
 *       Here is a paragraph of text with a {" "}
 *       <Link href="/some-url">link to some content</Link>.
 *     </Typography>
 *   );
 * }
 * ```
 *
 *
 * @see {@link https://react-md.dev/components/link | Link Demos}
 * @since 6.0.0 Removed the `preventMaliciousTarget` prop since browsers
 * default to `rel=noopener` after updating the {@link https://github.com/whatwg/html/issues/4078|spec}.
 * @since 6.0.0 Removed the `component` prop since all you need for link
 * behavior is `className="rmd-link"`.
 * @since 6.0.0 The `href` prop is required.
 * @since 6.0.0 Renamed `flexCentered` to `flex`.
 */
export declare const Link: ForwardRefExoticComponent<LinkProps & import("react").RefAttributes<HTMLAnchorElement>>;
