File size: 521 Bytes
25f10ca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import type { SelectData } from "@gradio/utils";
import type { LoadingStatus } from "js/statustracker";

export interface HighlightedToken {
	token: string;
	class_or_confidence: string | number | null;
}

export interface HighlightedTextProps {
	value: HighlightedToken[];
	show_legend: boolean;
	show_inline_category: boolean;
	color_map: Record<string, string>;
	combine_adjacent: boolean;
	rtl: boolean;
}

export interface HighlightedTextEvents {
	change: never;
	select: SelectData;
	clear_status: LoadingStatus;
}