UNPKG

analytica-frontend-lib

Version:

Repositório público dos componentes utilizados nas plataformas da Analytica Ensino

22 lines 786 B
export interface ParsedContentPart { type: 'text' | 'placeholder'; value: string; } /** * Parse content and extract text parts and placeholder IDs * Extracts {uuid} placeholders from text content, stripping HTML tags first * * @param content - String that may contain HTML and {uuid} placeholders * @returns Array of parsed parts with type ('text' or 'placeholder') and value * * @example * parseContent('Hello {uuid-1} world {uuid-2}') * // Returns: [ * // { type: 'text', value: 'Hello ' }, * // { type: 'placeholder', value: 'uuid-1' }, * // { type: 'text', value: ' world ' }, * // { type: 'placeholder', value: 'uuid-2' } * // ] */ export declare function parseContent(content: string): ParsedContentPart[]; //# sourceMappingURL=parseContent.d.ts.map