UNPKG

@osaedasia/oresume

Version:

A user-friendly library for generating complete Single Page Applications (SPAs)

31 lines (30 loc) 1.28 kB
import { IPipelineService } from "../../domain/definitions/interfaces/parser/IPipelineService"; import { ParsedHtml } from "../../domain/models/ParsedHtml"; import { APatternService } from "./pattern/APatternService"; /** * Provides functionality for managing and processing HTML parsing pipelines. * Coordinates registered pattern services and executes a sequence of processing steps * to convert template literals into parsed HTML output. * @implements {IPipelineService<APatternService, ParsedHtml>} */ export declare class HtmlPipelineService implements IPipelineService<APatternService, ParsedHtml> { /** * Collection of unique pattern services that handle specific HTML processing patterns. */ private readonly _services; /** * Ordered sequence of pipeline processing steps that transform the HTML parsing context. */ private readonly _steps; /** * Initializes the pipeline service with default processing steps: * 1. String template parsing * 2. Attribute value processing * 3. Direct content processing */ constructor(); /** @inheritDoc */ registerServices(...services: APatternService[]): void; /** @inheritDoc */ run(strings: TemplateStringsArray, ...values: unknown[]): ParsedHtml; }