import { Capability, WidgetEventCapability } from 'matrix-widget-api'; import { PropsWithChildren, ReactElement } from 'react'; /** * Props for the {@link MuiCapabilitiesGuard} component. */ export type MuiCapabilitiesGuardProps = PropsWithChildren<{ /** * Required capabilities to display the `children`. */ capabilities: Array; }>; /** * A guard that ask the user for capabilities and only shows the `children` * if all capabilities were accepted. * If capabilities are denied, a message and a button to retry is displayed * instead. * @param param0 - {@link MuiCapabilitiesGuardProps} */ export declare function MuiCapabilitiesGuard({ capabilities, children, }: MuiCapabilitiesGuardProps): ReactElement;