1 | import { Cache, Reference, StoreObject, MissingTree } from "../../cache";
|
2 | import { OperationVariables } from "../../core";
|
3 | export interface UseFragmentOptions<TData, TVars> extends Omit<Cache.DiffOptions<TData, TVars>, "id" | "query" | "optimistic" | "previousResult">, Omit<Cache.ReadFragmentOptions<TData, TVars>, "id"> {
|
4 | from: StoreObject | Reference | string;
|
5 | optimistic?: boolean;
|
6 | }
|
7 | export interface UseFragmentResult<TData> {
|
8 | data: TData | undefined;
|
9 | complete: boolean;
|
10 | missing?: MissingTree;
|
11 | }
|
12 | export declare function useFragment_experimental<TData = any, TVars = OperationVariables>(options: UseFragmentOptions<TData, TVars>): UseFragmentResult<TData>;
|
13 |
|
\ | No newline at end of file |