UNPKG

rtf-stream-parser

Version:

Stream Transform class to tokenize RTF, and another to de-encapsulate text or HTML

20 lines (19 loc) 770 B
import { Token } from '../tokenize'; import { GlobalStateWithGroupState, GroupState } from './handleGroupState.types'; import { WarnOption } from './types'; export declare type DestinationSet = Partial<{ [dest: string]: true; }>; export interface ControlAndDestinationGroupState extends GroupState { destination?: string; allDestinations?: DestinationSet; destIgnorableImmediate?: boolean; destIgnorable?: boolean; destDepth: number; destGroupDepth: number; } export interface ControlAndDestinationGlobalState extends GlobalStateWithGroupState<ControlAndDestinationGroupState>, WarnOption { _lastLastToken: Token | null | undefined; _lastToken: Token | null | undefined; _currToken: Token | null | undefined; }