/** * Generate a schema.org `FAQPage` JSON-LD object. * * Each FAQ item becomes a `Question` with an `acceptedAnswer` of type * `Answer`. Plain-text answers are wrapped in a single paragraph tag. * If the provided answer already contains HTML tags it will be preserved * as-is to avoid double-wrapping. * * @param props.data - Array of FAQ items with `question` and `answer` * @returns A JSON-LD `FAQPage` object */ interface FAQItem { question: string; answer: string; } interface FAQProps { data: FAQItem[]; } declare const generateFAQSchema: ({ data }: FAQProps) => { '@context': string; '@type': string; mainEntity: { '@type': string; name: string; acceptedAnswer: { '@type': string; text: string; }; }[]; }; export { generateFAQSchema };