import { ConfigInterface } from '../../config'; import { AsyncAPIDocumentData } from '../../types/schema'; import { ErrorBoundaryFallbackRenderer } from '../../components/ErrorBoundary'; import { ErrorInfo, ReactNode } from 'react'; export interface IAsyncAPIProps { /** A pre-resolved AsyncAPI 3.0 document object, or one that still contains `$ref`s. */ asyncapi: AsyncAPIDocumentData; /** UI configuration: theme, which sections to show, sidebar options, and more. */ config?: ConfigInterface; /** Promise that `asyncapi` is already fully dereferenced upstream. Verified rather than trusted: `$ref`s left in place are still resolved either way, with a console warning that the promise was false. */ kind?: "resolved"; /** Custom UI shown if rendering this document throws. Defaults to a built-in fallback. */ errorFallback?: ReactNode | ErrorBoundaryFallbackRenderer; /** Called once when a render error is caught, e.g. to report it to your own logging/telemetry. */ onError?: (error: Error, errorInfo: ErrorInfo) => void; } /** * Renders a full AsyncAPI documentation page: sidebar navigation, search, * servers, operations, messages, and schemas. Pass a pre-resolved (or * `$ref`-carrying) document object; for raw YAML/JSON strings, use * `AsyncAPIRenderer` instead, which parses first. */ declare const AsyncAPI: (props: IAsyncAPIProps) => import("react").JSX.Element; export default AsyncAPI;