import { WidgetApi, WidgetRegistration } from '@matrix-widget-toolkit/api';
import { PropsWithChildren, ReactElement } from 'react';
/**
 * Props for the {@link (MuiWidgetApiProvider:function)} component.
 */
export type MuiWidgetApiProviderProps = PropsWithChildren<{
    /**
     * Configuration to set during Widget registration.
     */
    widgetRegistration?: WidgetRegistration;
    /**
     * Result from a call to `WidgetApiImpl.create`.
     */
    widgetApiPromise: Promise<WidgetApi>;
}>;
/**
 * Provides the `WidgetApi` in the React context once it's fully
 * initialized without errors.
 * Use `useWidgetApi` to access it.
 * @param param0 - {@link MuiWidgetApiProviderProps}
 */
export declare function MuiWidgetApiProvider({ widgetRegistration, widgetApiPromise, children, }: MuiWidgetApiProviderProps): ReactElement;
