UNPKG

tm-text

Version:

Trackmania and Maniaplanet text parser and formatter

18 lines (17 loc) 620 B
import type { Block } from './modules/blockify'; import type { TmTextOptions } from './utils/options'; import type { Token } from './utils/syntax'; export interface TmText { blockify: () => Block[]; htmlify: () => string; humanize: () => string; tokenize: () => Token[]; } export declare const tmText: (input: string, options?: Partial<TmTextOptions>) => Readonly<TmText>; export * from './modules/blockify'; export * from './modules/htmlify'; export * from './modules/humanize'; export * from './modules/tokenize'; export * from './utils/options'; export * from './utils/syntax'; export default tmText;