import React, { Component } from 'react';
import { AsyncAPIDocumentInterface } from '@asyncapi/parser';
import { ErrorObject, PropsSchema, AsyncApiPlugin } from '../../types';
import { ConfigInterface } from '../../config';
import { PluginManager } from '../../helpers/pluginManager';
export interface AsyncApiProps {
    schema: PropsSchema;
    config?: Partial<ConfigInterface>;
    plugins?: AsyncApiPlugin[];
    onPluginEvent?: (eventName: string, data: unknown) => void;
    onPluginManagerReady?: (pluginManager: PluginManager) => void;
}
interface AsyncAPIState {
    asyncapi?: AsyncAPIDocumentInterface;
    error?: ErrorObject;
}
declare class AsyncApiComponent extends Component<AsyncApiProps, AsyncAPIState> {
    state: AsyncAPIState;
    componentDidMount(): Promise<void>;
    componentDidUpdate(prevProps: AsyncApiProps): Promise<void>;
    render(): React.JSX.Element;
    private parseSchema;
}
export default AsyncApiComponent;
//# sourceMappingURL=AsyncApi.d.ts.map