import { Theme } from '../components/types'; import { ATTRIBUTE_TEXT } from '../constants'; export interface ElementText { [ATTRIBUTE_TEXT]: string; } export type AttributeValue = string | number | boolean; export type AttributesObject = Record; export type ElementObject = Record; export type Element = ElementObject | ElementText; export interface IXmlViewerContext { collapsible: boolean; indentSize: number; theme: Theme; initialCollapsedDepth?: number; }