import type { BlockEditProps, BlockReadProps } from "../types.js"; import { type JsonExplorerData } from "./json-explorer.config.js"; /** * Read-only renderer for a `json-explorer` block. Parses `data.json` defensively * and renders the collapsible tree; on a parse error it shows the raw payload in * a monospace block plus the error (never throws). An "Expand all / Collapse * all" control toggles every node at once via a global pulse counter. */ export declare function JsonExplorerRead({ data, blockId, title, summary, }: BlockReadProps): import("react").JSX.Element; export declare function JsonExplorerSurface({ data, className, label, }: { data: Pick; className?: string; label?: string; }): import("react").JSX.Element; /** * Panel editor for a `json-explorer` block: a monospace textarea bound to the * raw `json`, a "Format" button that pretty-prints via `JSON.parse` → * `JSON.stringify(_, null, 2)` (guarded — shows an INLINE error, never * `window.alert`), an auto-expand depth picker/input, and a `title` input. * Renders BARE content (no `
`); the registry's panel surface supplies * the popover chrome. */ export declare function JsonExplorerEdit({ data, onChange, editable, }: BlockEditProps): import("react").JSX.Element; //# sourceMappingURL=JsonExplorerBlock.d.ts.map