import type { DeepPartial } from "../../utilities/index.js"; import type { Cache, Reference, StoreObject, MissingTree } from "../../cache/index.js"; import type { ApolloClient, OperationVariables } from "../../core/index.js"; import type { NoInfer } from "../types/types.js"; export interface UseFragmentOptions extends Omit, NoInfer>, "id" | "query" | "optimistic" | "previousResult" | "returnPartialData">, Omit, "id" | "variables" | "returnPartialData"> { from: StoreObject | Reference | string; 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; } export type UseFragmentResult = { data: TData; complete: true; missing?: never; } | { data: DeepPartial; complete: false; missing?: MissingTree; }; export declare function useFragment(options: UseFragmentOptions): UseFragmentResult; //# sourceMappingURL=useFragment.d.ts.map