export declare type Pos = number; export declare enum RangeType { HIGHLIGHT = "highlight", COMMENT = "comment" } export interface HighlightRange { readonly type: RangeType.HIGHLIGHT; readonly id: string; readonly from: Pos; readonly to: Pos; readonly attrs: { tagIds: string[]; }; } export interface CommentRange { readonly type: RangeType.COMMENT; readonly id: string; readonly from: Pos; readonly to: Pos; readonly attrs: {}; } export declare type Range = HighlightRange | CommentRange;