UNPKG

@redocly/theme

Version:

Shared UI components lib

16 lines (15 loc) 709 B
import React from 'react'; import type { CodeBlockControlsProps } from '../../components/CodeBlock/CodeBlockControls'; export type PanelType = 'request' | 'responses' | 'request-samples' | 'response-samples'; export type JsonProps = { title?: CodeBlockControlsProps['title']; controls?: CodeBlockControlsProps['controls']; data: any; className?: string; expandLevel: number; startLineNumber?: number; onCopyClick?: () => void; onPanelToggle?: (isExpanded: boolean, panelType?: PanelType) => void; }; export declare const JsonViewer: React.NamedExoticComponent<JsonProps>; export declare const JsonViewerWrap: import("styled-components").StyledComponent<"div", any, {}, never>;