import type { ElementalContent, ElementalNode } from "@/types/elemental.types"; /** * Extracts the title from Elemental elements following the same logic as the backend. * This function searches through elements to find: * 1. Meta elements with a title field * 2. Channel elements with raw.subject or raw.title * 3. Recursively searches within channel elements * 4. Fallback: First text element content (for Push/Inbox channels) */ export declare function getTitle(elements: ElementalNode[]): string; /** * Convenience function to get title from ElementalContent */ export declare function getTitleFromContent(content: ElementalContent | null | undefined): string; /** * Get title for a specific channel from ElementalContent */ export declare function getTitleForChannel(content: ElementalContent | null | undefined, channelName: string): string;