import type { ReactNode } from 'react'; import type { DocumentNode, GraphQLOperation, GraphQLData, GraphQLVariables, GraphQLDeepPartial } from 'graphql-typed'; import type { QueryResult, ErrorPolicy, OperationVariables, ApolloError, ApolloClient, WatchQueryFetchPolicy } from '@apollo/client'; import type { IfEmptyObject, IfAllNullableKeys } from '@shopify/useful-types'; import type { AsyncComponentType, AsyncHookTarget } from '@shopify/react-async'; import type { QueryHookOptions } from './hooks'; export type { GraphQLData, GraphQLVariables, GraphQLDeepPartial, GraphQLOperation, }; export type VariableOptions = IfEmptyObject>; export type QueryProps = { children: (result: QueryResult) => ReactNode; fetchPolicy?: WatchQueryFetchPolicy; errorPolicy?: ErrorPolicy; notifyOnNetworkStatusChange?: boolean; pollInterval?: number; query: DocumentNode; ssr?: boolean; displayName?: string; skip?: boolean; client?: ApolloClient; context?: { [key: string]: any; }; partialRefetch?: boolean; onCompleted?: (data: Data | {}) => void; onError?: (error: ApolloError) => void; } & VariableOptions; export interface AsyncDocumentNode extends GraphQLOperation, AsyncHookTarget, {}, VariableOptions, VariableOptions & Pick, 'pollInterval'>> { } export interface AsyncQueryComponentType extends GraphQLOperation, AsyncComponentType, QueryHookOptions & Pick, 'children'>, {}, VariableOptions, VariableOptions & Pick, 'pollInterval'>> { } //# sourceMappingURL=types.d.ts.map