import * as React from 'react'; export interface SpawnerContextValue { /** * Spawn a component into the parent component * * `component` will be passed an `onDestroy` prop from the spawner. This should * be called when the component needs to be unmounted. */ spawn:

(component: React.ComponentType

, props: P & SpawnProps) => string; } export interface SpawnProps { onDestroy?: () => any; } declare const SpawnerContext: React.Context; export default SpawnerContext;