/** * Parser interface for converting platform-specific input to ContentUnit * @module content/parser/IParser */ import type { ContentUnit } from '../types.js'; /** * Generic parser interface * * Implementations: * - MarkupParser: HTML string → ContentUnit (core) * - JSXParser: ReactNode → ContentUnit (react package) * * @typeParam TInput - Platform-specific input type * * @example * ```typescript * class MarkupParser implements IParser { * parse(html: string): ContentUnit { * // Convert , , etc. to indexed tags * } * } * ``` */ export interface IParser { /** * Parse input into ContentUnit * * @param input - Platform-specific input (string, ReactNode, etc.) * @returns Normalized ContentUnit with indexed tags and styles */ parse(input: TInput): ContentUnit; } //# sourceMappingURL=IParser.d.ts.map