import PropTypes from 'prop-types'; import React, { PropsWithChildren } from 'react'; import { Ros } from 'roslib'; interface RosConnectionProps { url?: string; autoConnect?: boolean; autoConnectTimeout?: number; authenticate?: boolean; user?: string; password?: string; } export declare const RosConnection: { ({ children, ...userProps }: PropsWithChildren>): React.JSX.Element; propTypes: { children: PropTypes.Validator>; url: PropTypes.Validator; autoConnect: PropTypes.Requireable; autoConnectTimeout: PropTypes.Requireable; authenticate: PropTypes.Requireable; user: PropTypes.Requireable; password: PropTypes.Requireable; }; }; export declare function setupConnectionCallbacks(ros: Ros, url?: string, autoConnect?: boolean, autoConnectTimeout?: number, authenticate?: boolean, user?: string, password?: string): void; export declare function connect(ros: Ros, url?: string, authenticate?: boolean, user?: string, password?: string): void; export declare function closeConnection(ros: Ros): void; export declare function useRos(): Ros; export {};