@ai-growth/nextjs
Version:
Seamlessly integrate Sanity CMS with Next.js applications for automated blog routing and rendering
61 lines • 1.51 kB
TypeScript
/**
* @fileoverview SEO Head Component
*
* This component provides comprehensive SEO functionality including
* meta tags, Open Graph, Twitter Cards, and JSON-LD structured data.
*/
import React from 'react';
import { SEOHeadProps, StructuredData } from '../types/seo';
/**
* SEO Head component that generates comprehensive SEO metadata
*
* @example
* ```tsx
* <SEOHead
* content={post}
* siteSettings={siteSettings}
* template="article"
* url="https://example.com/blog/post-slug"
* />
* ```
*/
export declare const SEOHead: React.FC<SEOHeadProps>;
/**
* SEO Head component with error boundary
*/
export declare const SafeSEOHead: React.FC<SEOHeadProps>;
/**
* Hook for accessing SEO data without rendering
*
* @param props - SEO Head props
* @returns Processed SEO result
*/
export declare function useSEOData(props: SEOHeadProps): import("../types").SEOResult | {
metaTags: never[];
structuredData: never[];
title: any;
description: any;
canonical: string;
image: undefined;
};
/**
* Utility component for JSON-LD structured data only
*
* @param props - Structured data props
*/
export declare const StructuredDataOnly: React.FC<{
data: StructuredData[];
}>;
/**
* Utility component for basic meta tags only
*
* @param props - Basic meta props
*/
export declare const BasicSEO: React.FC<{
title: string;
description?: string;
canonical?: string;
noIndex?: boolean;
}>;
export default SEOHead;
//# sourceMappingURL=SEOHead.d.ts.map