/** * Contentstack block structure */ export interface ContentstackBlock { [key: string]: any; _content_type_uid?: string; _metadata?: { uid: string; [key: string]: any; }; } /** * Processed block with extracted name and props */ export interface ProcessedBlock { name: string; props: Record; originalBlock: ContentstackBlock; } /** * Extract blocks from nested object path (e.g., 'components' or 'page.components') */ export declare function extractBlocksFromPath(data: any, path: string): ContentstackBlock[]; /** * Process a single block: extract name and props, handle CSLP replacement */ export declare function processBlock(block: ContentstackBlock, options: { autoExtractBlockName: boolean; blockNamePrefix: string; editableTags: boolean; }): ProcessedBlock; /** * Get component for a block from component mapping */ export declare function getComponentForBlock(block: ProcessedBlock, componentMap: Record, fallbackComponent: any): any; /** * Generate props for a block component */ export declare function getBlockProps(block: ProcessedBlock, blockMetadata?: any): Record; /** * Generate unique key for a block */ export declare function getBlockKey(block: ProcessedBlock, keyField: string, index: number): string; /** * Extract CSLP data attribute for a block */ export declare function getCslpData(block: ProcessedBlock, index: number): string | undefined;