/** * Serializer interface for converting ContentUnit to platform-specific output * @module content/serializer/ISerializer */ import type { ContentUnit } from '../types.js'; /** * Generic serializer interface * * Implementations: * - HTMLSerializer: ContentUnit → HTML string (core) * - JSXSerializer: ContentUnit → ReactNode (react package) * * @typeParam TOutput - Platform-specific output type * * @example * ```typescript * class HTMLSerializer implements ISerializer { * serialize(unit: ContentUnit): string { * // Convert indexed tags back to , , etc. * } * } * ``` */ export interface ISerializer { /** * Serialize ContentUnit to platform-specific output * * @param unit - The ContentUnit to serialize * @returns Platform-specific output (HTML string, ReactNode, etc.) */ serialize(unit: ContentUnit): TOutput; } //# sourceMappingURL=ISerializer.d.ts.map