import React from "react";
import { Capability, Widget, WidgetKind } from "matrix-widget-api";
interface IProps {
    requestedCapabilities: Set<Capability>;
    widget: Widget;
    widgetKind: WidgetKind;
    onFinished(result?: {
        approved: Capability[];
        remember: boolean;
    }): void;
}
type BooleanStates = Partial<{
    [capability in Capability]: boolean;
}>;
interface IState {
    booleanStates: BooleanStates;
    rememberSelection: boolean;
}
export default class WidgetCapabilitiesPromptDialog extends React.PureComponent<IProps, IState> {
    private eventPermissionsMap;
    constructor(props: IProps);
    private onToggle;
    private onRememberSelectionChange;
    private onSubmit;
    private onReject;
    private closeAndTryRemember;
    render(): React.ReactNode;
}
export {};
