UNPKG

tm-text

Version:

Trackmania and Maniaplanet text parser and formatter

9 lines (8 loc) 302 B
import type { TokenizeOptions } from '../utils/options'; import type { Token } from '../utils/syntax'; export interface Block { startIndex: number; endIndex: number; tokens: Token[]; } export declare const blockify: (input: string | Token[], options?: Partial<TokenizeOptions>) => Block[];