import type { ApolloClient, DataValue, DocumentNode, OperationVariables, TypedDocumentNode } from "@apollo/client"; import type { ApolloCache } from "@apollo/client/cache"; import type { MaybeMasked } from "@apollo/client/masking"; import type { DocumentationTypes as UtilityDocumentationTypes, NoInfer, VariablesOption } from "@apollo/client/utilities/internal"; export declare namespace useSuspenseFragment { import _self = useSuspenseFragment; namespace Base { type Options = { /** * A GraphQL document created using the `gql` template string tag from * `graphql-tag` with one or more fragments which will be used to determine * the shape of data to read. If you provide more than one fragment in this * document then you must also specify `fragmentName` to select a single. */ fragment: DocumentNode | TypedDocumentNode; /** * The name of the fragment in your GraphQL document to be used. If you do * not provide a `fragmentName` and there is only one fragment in your * `fragment` document then that fragment will be used. */ fragmentName?: string; /** * An object or array containing a `__typename` and primary key fields * (such as `id`) identifying the entity object from which the fragment will * be retrieved, or a `{ __ref: "..." }` reference, or a `string` ID (uncommon). */ from: useSuspenseFragment.FromOptionValue | Array | null> | null; optimistic?: boolean; /** * The instance of `ApolloClient` to use to look up the fragment. * * By default, the instance that's passed down via context is used, but you * can provide a different instance here. * * @docGroup 1. Operation options */ client?: ApolloClient; }; } type Options = Base.Options & VariablesOption>; namespace DocumentationTypes { namespace useSuspenseFragment { interface Options extends Base.Options, UtilityDocumentationTypes.VariableOptions { } } } /** * Acceptable values provided to the `from` option. */ type FromOptionValue = ApolloCache.FromOptionValue; interface Result { data: DataValue.Complete>; } namespace DocumentationTypes { namespace useSuspenseFragment { interface Result extends _self.Result { } } } namespace DocumentationTypes { /** * #TODO documentation */ function useSuspenseFragment(options: useSuspenseFragment.Options): useSuspenseFragment.Result; } } /** #TODO documentation */ export declare function useSuspenseFragment(options: useSuspenseFragment.Options & { from: Array>; }): useSuspenseFragment.Result>; /** * #TODO documentation */ export declare function useSuspenseFragment(options: useSuspenseFragment.Options & { from: Array; }): useSuspenseFragment.Result>; /** * #TODO documentation */ export declare function useSuspenseFragment(options: useSuspenseFragment.Options & { from: Array | null>; }): useSuspenseFragment.Result>; /** * #TODO documentation */ export declare function useSuspenseFragment(options: useSuspenseFragment.Options & { from: useSuspenseFragment.FromOptionValue; }): useSuspenseFragment.Result; /** * #TODO documentation */ export declare function useSuspenseFragment(options: useSuspenseFragment.Options & { from: null; }): useSuspenseFragment.Result; /** * #TODO documentation */ export declare function useSuspenseFragment(options: useSuspenseFragment.Options & { from: useSuspenseFragment.FromOptionValue | null; }): useSuspenseFragment.Result; /** * #TODO documentation */ export declare function useSuspenseFragment(options: useSuspenseFragment.Options): useSuspenseFragment.Result; //# sourceMappingURL=useSuspenseFragment.d.ts.map