| 1 | /** |
| 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. |
| 3 | * |
| 4 | * This source code is licensed under the MIT license found in the |
| 5 | * LICENSE file in the root directory of this source tree. |
| 6 | * |
| 7 | * @flow |
| 8 | */ |
| 9 | |
| 10 | import type {Request} from 'react-server/src/ReactFlightServer'; |
| 11 | import type {ReactComponentInfo} from 'shared/ReactTypes'; |
| 12 | |
| 13 | export * from '../ReactFlightServerConfigBundlerCustom'; |
| 14 | |
| 15 | export * from '../ReactFlightServerConfigDebugNoop'; |
| 16 | |
| 17 | export * from '../ReactFlightStackConfigV8'; |
| 18 | export * from '../ReactServerConsoleConfigServer'; |
| 19 | |
| 20 | export type Hints = any; |
| 21 | export type HintCode = any; |
| 22 | // eslint-disable-next-line no-unused-vars |
| 23 | export type HintModel<T: any> = any; |
| 24 | |
| 25 | export const supportsRequestStorage = false; |
| 26 | export const requestStorage: AsyncLocalStorage<Request | void> = null as any; |
| 27 | |
| 28 | export const supportsComponentStorage = false; |
| 29 | export const componentStorage: AsyncLocalStorage<ReactComponentInfo | void> = |
| 30 | null as any; |
| 31 | |
| 32 | export function createHints(): any { |
| 33 | return null; |
| 34 | } |
| 35 | |
| 36 | export type FormatContext = null; |
| 37 | |
| 38 | export function createRootFormatContext(): FormatContext { |
| 39 | return null; |
| 40 | } |
| 41 | |
| 42 | export function getChildFormatContext( |
| 43 | parentContext: FormatContext, |
| 44 | type: string, |
| 45 | props: Object, |
| 46 | ): FormatContext { |
| 47 | return parentContext; |
| 48 | } |