import { type ReactElement } from 'react'; export type JsonViewerProps = { /** * Данные в формате JSON для отображения. */ jsonData: JsonValue; }; /** * @description Тип данных для JSON */ export type JsonValue = string | number | boolean | null | JsonObject | JsonArray; /** * Тип данных для JSON объекта */ export type JsonObject = { [key: string]: JsonValue; }; /** * Тип данных для JSON массива */ export type JsonArray = JsonValue[]; /** * Тип значения */ export type ValueType = 'string' | 'number' | 'boolean' | 'null' | 'object' | 'array' | 'date' | 'unknown' | 'guid'; /** * Информация о типе */ export type TypeInfo = { /** * Тип значения */ type: ValueType; /** * Иконка */ icon: ReactElement; /** * Цвет */ color: string; };