22 lines
456 B
TypeScript
22 lines
456 B
TypeScript
export type BodyRangesType = Array<{
|
|
start: number;
|
|
length: number;
|
|
mentionUuid: string;
|
|
replacementText: string;
|
|
conversationID?: string;
|
|
}>;
|
|
|
|
export type RenderTextCallbackType = (options: {
|
|
text: string;
|
|
key: number;
|
|
}) => JSX.Element | string;
|
|
|
|
export type ReplacementValuesType = {
|
|
[key: string]: string | undefined;
|
|
};
|
|
|
|
export type LocalizerType = (
|
|
key: string,
|
|
values?: Array<string | null> | ReplacementValuesType
|
|
) => string;
|