import { PropsWithChildren } from 'react';
import { ButtonProps } from 'react-aria-components/Button';
import { RawLinkProps } from '../../link/RawLink.js';
export interface FormContextualLinkProps extends RawLinkProps {
    /**
     * The href of the contextual link
     */
    href: string;
    onPress?: never;
}
export interface FormContextualLinkActionProps extends ButtonProps {
    /**
     * A function to open a contextual panel
     */
    onPress: () => void;
    href?: never;
}
export type TanstackRawFormContextualLinkProps = PropsWithChildren<FormContextualLinkProps | FormContextualLinkActionProps>;
/**
 * `TanstackRawFormContextualLink` renders a contextual action associated with the
 * current TanStack form field. It can render either:
 * - an anchor (`RawLink`) when `href` is provided; or
 * - a button (from `react-aria-components`) when `onPress` is provided.
 */
declare const TanstackRawFormContextualLink: import('react').ForwardRefExoticComponent<TanstackRawFormContextualLinkProps & import('react').RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
export { TanstackRawFormContextualLink };
