react-xml-viewer
Version:
Simple xml viewer component for React
14 lines (13 loc) • 685 B
TypeScript
import { Theme } from 'components/types';
import { AttributesObject, Element } from 'types';
export declare function getIndentationString(size: number, level: number): string;
export declare function hasBreakLines(elements: Element[] | string): boolean;
export declare function isInlineTextElement(elements: Element[] | string): boolean;
export declare function getTagType(tagKey: string): "#comment" | "#cdata" | "#text" | "DECLARATION_TAG" | "TAG";
export declare function getTagProps(element: Element): {
attributes: AttributesObject;
tagKey: string;
subElements: any;
type: string;
};
export declare function isNextThemeEqual(current: Theme, next: Theme): boolean;