import { type FaqServiceConfig, type FaqEntry } from '../../services/index.js';
export interface RootProps {
children: React.ReactNode;
faqServiceConfig: FaqServiceConfig;
}
/**
* Root component that provides the FAQ service context to its children for a category's FAQs.
* This component sets up the necessary services for rendering and managing FAQ entries within a category.
*
* @component
* @example
* ```tsx
* import { FaqList } from '@wix/faq/components';
*
* function FaqListPage() {
* return (
*
*
* {({ hasFaqs, faqs }) => (
*
{hasFaqs ? `${faqs.length} FAQs` : 'No FAQs'}
* )}
*
*
* );
* }
* ```
*/
export declare function Root(props: RootProps): React.ReactNode;
/**
* Props for FaqListFaqs headless component
*/
export interface FaqListFaqsProps {
/** Render prop function that receives FAQ data */
children: (props: FaqListFaqsRenderProps) => React.ReactNode;
}
/**
* Render props for FaqListFaqs component
*/
export interface FaqListFaqsRenderProps {
/** Whether there are FAQs to display */
hasFaqs: boolean;
/** Array of FAQ entries */
faqs: FaqEntry[];
}
/**
* Headless component for FAQ category's FAQs list display
*
* @component
* @example
* ```tsx
* import { FaqList } from '@wix/faq/components';
*
* function FaqsListItems() {
* return (
*
* {({ hasFaqs, faqs }) => (
*