1 | import * as React from 'react';
|
2 | import { ExtensionsProps } from '../context';
|
3 | import { ConfigurationCascadeProps, ConfigurationSubject, Settings } from '../settings';
|
4 | import { ConfiguredExtension } from './extension';
|
5 | interface Props<S extends ConfigurationSubject, C extends Settings> extends ConfigurationCascadeProps<S, C>, ExtensionsProps<S, C> {
|
6 |
|
7 | extension: ConfiguredExtension;
|
8 | disabled?: boolean;
|
9 |
|
10 | className?: string;
|
11 |
|
12 | addClassName?: string;
|
13 |
|
14 | onUpdate: () => void;
|
15 | }
|
16 |
|
17 |
|
18 |
|
19 | export declare class ExtensionToggle<S extends ConfigurationSubject, C extends Settings> extends React.PureComponent<Props<S, C>> {
|
20 | private toggles;
|
21 | private subscriptions;
|
22 | componentDidMount(): void;
|
23 | componentWillUnmount(): void;
|
24 | render(): JSX.Element | null;
|
25 | }
|
26 | export {};
|