import * as PropTypes from 'prop-types'; import * as React from 'react'; import { ProviderArguments } from './util/ProviderArguments'; /** * React component for passing arguments of a {@link Provider} with context to {@link Registered} components * For full documentation: {@link https://www.devnet.io/libs/react-registry/docs#provider} * * @author Joe Esposito */ export interface IProviderProps { conditions?: object; registry?: string; } export default class ProviderComponent extends React.Component { static propTypes: { conditions: PropTypes.Requireable; registry: PropTypes.Requireable; }; static contextTypes: { registryProviderArgs: PropTypes.Requireable; }; static childContextTypes: { registryProviderArgs: PropTypes.Requireable; }; constructor(props: IProviderProps); getChildContext(): { registryProviderArgs: ProviderArguments; }; render(): boolean | {} | React.ReactChild | React.ReactPortal; }