/** * Copyright (c) Nicolas Gallagher. * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type { ComponentType, Node } from 'react'; import AppContainer from './AppContainer'; import invariant from 'fbjs/lib/invariant'; import render, { hydrate } from '../render'; import StyleSheet from '../StyleSheet'; import React from 'react'; export type Application = { unmount: () => void }; declare export default function renderApplication(RootComponent: ComponentType, WrapperComponent?: ?ComponentType<*>, callback?: () => void, options: { hydrate: boolean, initialProps: Props, rootTag: any, }): Application; declare export function getApplication(RootComponent: ComponentType, initialProps: Object, WrapperComponent?: ?ComponentType<*>): {| element: Node, getStyleElement: (Object) => Node, |};