import type { BlockEditProps, BlockReadProps } from "../types.js"; import type { OpenApiSpecData } from "./openapi-spec.config.js"; /** * Read-only renderer for an `openapi-spec` block. Parses `data.spec` defensively * and renders a Redoc / Swagger-UI-style reference: a header (title + version + * format badge), then operations grouped by tag, each a collapsed-by-default row * that expands to the full per-operation reference. On a parse error it shows the * error plus the raw payload (never throws). */ export declare function OpenApiSpecRead({ data, blockId, title, summary, ctx, }: BlockReadProps): import("react").JSX.Element; /** * Panel editor for an `openapi-spec` block: a `title` input plus a monospace * textarea bound to the raw `spec`, with a "Format" button that pretty-prints via * `JSON.parse` → `JSON.stringify(_, null, 2)` (guarded — shows an INLINE error, * never `window.alert`). Renders BARE content (no `
`); the registry's * panel surface supplies the popover chrome. */ export declare function OpenApiSpecEdit({ data, onChange, editable, }: BlockEditProps): import("react").JSX.Element; //# sourceMappingURL=OpenApiSpecBlock.d.ts.map