import { GraphQLModule, GraphQLQueryResult, GraphQLCache } from './index'; import { GraphQLModuleError } from './graphQLModuleError'; import { Signal } from '../beacon/beacon'; export type UseGraphQLModuleHookObject = { data: Q | undefined; error: GraphQLModuleError | undefined; loading: boolean; refetch: GraphQLModule['query']; }; export type UseGraphQLModuleHookReturnType = [GraphQLModule['query'], UseGraphQLModuleHookObject]; /** * Returns the GraphQL module. * @returns GraphQLModule */ export declare const useGraphQLModule: () => GraphQLModule; /** * The hook forces the component using it to re-render each time the listener is triggered. * @returns [Signal, resetFunction, GraphQL module instance] */ export declare const useGraphQLModuleTracking: () => [Signal | undefined, () => void, GraphQLModule]; /** * Mimics the useLazyQuery hook of the Apollo GraphQL library. The hook forces the component using it to re-render each time the module emits a signal. * @returns [query, {data, error, loading, refetch}] */ export declare const useGraphQL: () => UseGraphQLModuleHookReturnType;