lyrics-structure
Version:
Parse lyrics with bracketed sections into structured parts, with slide generation for presentations
11 lines (10 loc) • 482 B
TypeScript
/**
* Splits text into natural sections based on text structure.
* Works with plain text without requiring markdown or special formatting.
* Empty lines are treated as natural separators between parts.
*
* @param text - The input text to be split into sections
* @param maxLines - Maximum number of lines to include in a single slide (default: 4)
* @returns An array of content sections
*/
export declare const getSlideParts: (text?: string, maxLines?: number) => string[];