import type { ComponentType } from 'react';
interface FontPreload {
    /** Path to font file (e.g., '/fonts/Inter-latin.woff2') */
    href: string;
    /** Font MIME type @default 'font/woff2' */
    type?: string;
    /** Cross-origin setting @default 'anonymous' */
    crossOrigin?: 'anonymous' | 'use-credentials';
}
interface PerformanceHintsProps {
    /**
     * Additional origins to preconnect to
     * These are merged with defaults
     */
    preconnects?: string[];
    /**
     * Additional origins to dns-prefetch
     * These are merged with defaults
     */
    dnsPrefetch?: string[];
    /**
     * Additional fonts to preload (optional). Framework injects preloads at build time for Vite/Next;
     * use this prop only for extra or custom font URLs.
     * @default []
     */
    fontPreloads?: (string | FontPreload)[];
    /**
     * Disable default preconnects (use only custom ones)
     * @default false
     */
    disableDefaults?: boolean;
    /**
     * Disable default font preloads
     * @default false
     */
    disableFontPreloads?: boolean;
}
/**
 * PerformanceHints component
 *
 * Adds preconnect, dns-prefetch, and font preload hints to improve page load.
 * Automatically includes common third-party origins and critical fonts.
 *
 * @example
 * ```tsx
 * // Default: preconnect/dns-prefetch only; font preload handled by framework build (Vite/Next)
 * <PerformanceHints />
 *
 * // Add custom font preload URLs
 * <PerformanceHints fontPreloads={[customFontUrl]} />
 *
 * // Disable font preloads
 * <PerformanceHints disableFontPreloads />
 * ```
 */
declare const PerformanceHints: ComponentType<PerformanceHintsProps>;
export default PerformanceHints;
export type { FontPreload, PerformanceHintsProps };
//# sourceMappingURL=PerformanceHints.d.ts.map