import { DocumentNode, GraphQLFormattedError } from 'graphql'; import { RESTFunctionDescriptor } from '@wix/sdk-types'; export type TypedQueryInput = { /** * Type to support `@graphql-typed-document-node/core` * @internal */ __apiType?: (variables: Variables) => Result; /** * Type to support `TypedQueryDocumentNode` from `graphql` * @internal */ __ensureTypesOfVariablesAndResultMatching?: (variables: Variables) => Result; }; export declare const graphql: ((query: string | String | DocumentNode | TypedQueryInput, variables?: Variables | undefined, opts?: { apiVersion: string; }) => Promise<{ data: Result; errors?: GraphQLFormattedError[] | undefined; }>) & RESTFunctionDescriptor<((query: string | String | DocumentNode | TypedQueryInput, variables?: Variables | undefined, opts?: { apiVersion: string; }) => Promise<{ data: Result; errors?: GraphQLFormattedError[] | undefined; }>)>;