import type {
CrossOriginEnum,
PreloadImplOptions,
PreloadModuleImplOptions,
PreinitStyleOptions,
PreinitScriptOptions,
PreinitModuleScriptOptions,
} from 'react-dom/src/shared/ReactDOMTypes';
import ReactDOMSharedInternals from 'shared/ReactDOMSharedInternals';
const ReactDOMCurrentDispatcher = ReactDOMSharedInternals.Dispatcher;
import {ReactDOMFlightServerDispatcher} from './ReactDOMFlightServerHostDispatcher';
export function prepareHostDispatcher(): void {
ReactDOMCurrentDispatcher.current = ReactDOMFlightServerDispatcher;
}
export const isPrimaryRenderer = true;
type UnspecifiedPrecedence = 0;
type TypeMap = {
'D': string,
'C':
| string
| [ string, CrossOriginEnum],
'L':
| [ string, string]
| [ string, string, PreloadImplOptions],
'm':
| string
| [ string, PreloadModuleImplOptions],
'S':
| string
| [ string, string]
| [ string, string | UnspecifiedPrecedence, PreinitStyleOptions],
'X':
| string
| [ string, PreinitScriptOptions],
'M':
| string
| [ string, PreinitModuleScriptOptions],
}
export type HintCode = $Keys<TypeMap>;
export type HintModel<T: HintCode> = TypeMap[T];
export type Hints = Set<string>;
export function createHints(): Hints {
return new Set();
}