/** * 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. */ import {EnvironmentProviderOptions, GetEntryPointComponentFromEntryPoint, GetEntryPointParamsFromEntryPoint, IEnvironmentProvider, PreloadedEntryPoint} from '../ReactRelayTypes'; import { DisposeFn } from 'relay-runtime'; export type UseEntryPointLoaderHookType = [ PreloadedEntryPoint> | null | undefined, (entryPointParams: GetEntryPointParamsFromEntryPoint) => void, DisposeFn, ]; export function useEntryPointLoader( environmentProvider: IEnvironmentProvider, entryPoint: TEntryPoint, // Have opted to not include the TEST_ONLY__initialEntryPointData object here—as is FB internal ): UseEntryPointLoaderHookType;