import React, { Component } from 'react'; import { ResolveThunks } from 'react-redux'; import { JSONSchema7Definition, JSONSchema7TypeName } from 'json-schema'; import { ConnectionType, saveSocketSettings } from '../../actions/index.js'; import { StoreState } from '../../reducers/index.js'; import { ConnectionStateOptions } from '../../reducers/connection.js'; import { IChangeEvent } from '@rjsf/core'; declare module 'json-schema' { interface JSONSchema7 { enumNames?: JSONSchema7Type[]; } } interface Schema { type: JSONSchema7TypeName; required?: string[]; properties: { [key: string]: JSONSchema7Definition; }; } type StateProps = ReturnType; type DispatchProps = ResolveThunks; type Props = StateProps & DispatchProps; interface FormData extends ConnectionStateOptions { readonly type: ConnectionType; } interface State { readonly formData: FormData; readonly type: ConnectionType; readonly schema: Schema; readonly changed: boolean | undefined; } export declare class Connection extends Component { setFormData: (type: ConnectionType, changed?: boolean) => { formData: { hostname: string; port: number; secure: boolean; type: ConnectionType; }; type: ConnectionType; schema: Schema; changed: boolean | undefined; }; state: State; shouldComponentUpdate(nextProps: Props, nextState: State): boolean; UNSAFE_componentWillReceiveProps(nextProps: Props): void; handleSave: (data: IChangeEvent) => void; handleChange: (data: IChangeEvent) => void; render(): React.JSX.Element; } declare const mapStateToProps: (state: StoreState) => import("../../reducers/connection.js").ConnectionState; declare const actionCreators: { saveSettings: typeof saveSocketSettings; }; declare const _default: import("react-redux").ConnectedComponent | undefined; context?: React.Context | null> | undefined; store?: import("redux").Store | undefined; }>; export default _default;