import { DocumentNode, GraphQLFormattedError } from 'graphql'; import { RESTFunctionDescriptor } from '@wix/sdk-types'; export declare const fetchWithAuth: typeof fetch & ((restModuleOpts: import("@wix/sdk-types").HttpClient) => typeof fetch); export declare const graphql: ((query: string | String | DocumentNode | TypedQueryInput, variables?: Variables, opts?: { apiVersion: string; }) => Promise<{ data: Result; errors?: GraphQLFormattedError[]; }>) & RESTFunctionDescriptor<((query: string | String | DocumentNode | TypedQueryInput, variables?: Variables, opts?: { apiVersion: string; }) => Promise<{ data: Result; errors?: GraphQLFormattedError[]; }>)>; 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; };