import React from 'react'; /** * Valid values for the crossorigin attribute based on MDN specification */ export type CrossOrigin = 'anonymous' | 'use-credentials'; /** * Valid values for the fetchpriority attribute */ export type FetchPriority = 'high' | 'low' | 'auto'; /** * Valid values for the referrerpolicy attribute */ export type ReferrerPolicy = 'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when-cross-origin' | 'same-origin' | 'strict-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url'; /** * Valid values for the as attribute when used with preload/modulepreload */ export type AsType = 'audio' | 'document' | 'embed' | 'fetch' | 'font' | 'image' | 'object' | 'script' | 'style' | 'track' | 'video' | 'worker'; /** * Valid values for the blocking attribute */ export type BlockingType = 'render'; /** * Complete props interface for the Link component */ export interface LinkProps extends Omit, 'as' | 'crossOrigin' | 'fetchPriority' | 'referrerPolicy'> { href: string; rel: string; as?: AsType; blocking?: BlockingType; crossOrigin?: CrossOrigin; disabled?: boolean; fetchPriority?: FetchPriority; hrefLang?: string; imageSizes?: string; imageSrcSet?: string; integrity?: string; media?: string; referrerPolicy?: ReferrerPolicy; sizes?: string; title?: string; type?: string; } /** * Link component that renders an HTML element with comprehensive HTML5 support. * * This component supports all standard HTML5 link element attributes including: * - Resource linking (stylesheets, icons, etc.) * - Preloading resources with rel="preload" * - Module preloading with rel="modulepreload" * - CORS handling with crossOrigin * - Security features like Subresource Integrity * - Performance hints with fetchPriority * - Media queries for conditional loading * - All modern web standards compliance * * @example * // Basic stylesheet * * * @example * // Preload font with CORS * * * @example * // Responsive stylesheet with media query * * * @example * // Icon with sizes * */ export declare function Link(props: LinkProps): React.ReactElement; /** * Convenience component for stylesheet links */ export declare function Stylesheet({ href, media, title, disabled, integrity, crossOrigin, fetchPriority, ...props }: Omit & { media?: string; title?: string; disabled?: boolean; }): React.ReactElement; /** * Convenience component for favicon links */ export declare function Favicon({ href, sizes, type, ...props }: Omit & { sizes?: string; type?: string; }): React.ReactElement; /** * Convenience component for Apple Touch Icon links */ export declare function AppleTouchIcon({ href, sizes, type, ...props }: Omit & { sizes?: string; type?: string; }): React.ReactElement; /** * Convenience component for resource preloading */ export declare function Preload({ href, as, type, crossOrigin, integrity, fetchPriority, media, imageSizes, imageSrcSet, ...props }: Omit & { as: AsType; type?: string; crossOrigin?: CrossOrigin; integrity?: string; fetchPriority?: FetchPriority; media?: string; imageSizes?: string; imageSrcSet?: string; }): React.ReactElement; /** * Convenience component for module preloading */ export declare function ModulePreload({ href, as, integrity, fetchPriority, crossOrigin, ...props }: Omit & { as?: AsType; integrity?: string; fetchPriority?: FetchPriority; crossOrigin?: CrossOrigin; }): React.ReactElement; /** * Convenience component for DNS prefetch */ export declare function DNSPrefetch({ href, ...props }: Omit): React.ReactElement; /** * Convenience component for preconnect */ export declare function Preconnect({ href, crossOrigin, ...props }: Omit & { crossOrigin?: CrossOrigin; }): React.ReactElement;