/** * 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, LoadQueryOptions, PreloadedQuery} from '../ReactRelayTypes'; import {GraphQLTaggedNode, IEnvironment, OperationType, PreloadableConcreteRequest, VariablesOf} from 'relay-runtime'; export function loadQuery< TQuery extends OperationType, TEnvironmentProviderOptions extends EnvironmentProviderOptions = Record, >( environment: IEnvironment, preloadableRequest: GraphQLTaggedNode | PreloadableConcreteRequest, variables: VariablesOf, options?: LoadQueryOptions, environmentProviderOptions?: TEnvironmentProviderOptions, ): PreloadedQuery;