interface SplitResult { /** Code that Prism will tokenize (syntax-highlighted). */ highlightCode: string; /** * Plain text that continues the last highlighted line (mid-line cut). * Should be rendered inside the same visual line as the last highlighted * token so that no extra line number is created. */ noHighlightInline: string; /** Plain-text block of complete lines that follow the highlighted portion. */ noHighlightCode: string; /** `\n`-separated line numbers for {@link noHighlightCode}. */ noHighlightLineNumbers: string; } /** * Splits `code` so only the first portion is tokenized by Prism. * * Always cuts at `maxLength`. The remainder is split at its first newline: * text before that newline continues the last highlighted line * (`noHighlightInline`), text after it forms a separate plain-text block * (`noHighlightCode`) with its own line numbers. * * @param code - The full code string. * @param maxLength - Maximum number of characters to highlight. * Defaults to {@link DEFAULT_MAX_TOKENIZATION_LENGTH}. * * @internal */ export declare function splitCodeForHighlighting(code: string, maxLength?: number): SplitResult; export {};