Generates headers for filter lists and sources. Follows Single Responsibility Principle - only handles header generation.
prepareHeader: (config: IConfiguration,options?: HeaderOptions,) => string[]
Static convenience method to prepare a filter list header
prepareSourceHeader: (source: ISource) => string[]
Static convenience method to prepare a source header
generateDiffHeader(diff: { added: number; removed: number; unchanged: number; previousVersion?: string; }): string[]
Generates a diff summary header
generateListHeader(configuration: IConfiguration,options?: HeaderOptions,): string[]
Generates the main list header with metadata.
generateSectionSeparator(title?: string): string[]
Generates a section separator with optional title
generateSourceHeader(source: ISource): string[]
Generates the source header.
generateStatsHeader(stats: { totalRules: number; sourceCount: number; transformationCount: number; compilationTimeMs: number; }): string[]
Generates statistics header lines
parseHeader(lines: string[]): Record<string, string>
Parses an existing header to extract metadata