import { RequestPayload } from '@inertiajs/core'; import { ReactNode, ElementType } from 'react'; import { PrefetchOption, HttpMethod } from './types'; interface ModalLinkProps { href: string; method?: HttpMethod; data?: RequestPayload; as?: ElementType; headers?: Record; queryStringArrayFormat?: 'brackets' | 'indices'; onAfterLeave?: () => void; onBlur?: () => void; onClose?: () => void; onError?: (error: unknown) => void; onFocus?: () => void; onStart?: () => void; onSuccess?: () => void; onPrefetching?: () => void; onPrefetched?: () => void; navigate?: boolean; prefetch?: PrefetchOption; cacheFor?: number; children: ReactNode | ((props: { loading: boolean; }) => ReactNode); [key: string]: unknown; } declare const ModalLink: ({ href, method, data, as: Component, headers, queryStringArrayFormat, onAfterLeave, onBlur, onClose, onError, onFocus, onStart, onSuccess, onPrefetching, onPrefetched, navigate, prefetch, cacheFor, children, ...props }: ModalLinkProps) => import("react/jsx-runtime").JSX.Element; export default ModalLink;