import { GraphQLVariables, GraphQLResponse, CacheOptions, UnauthorizedHandler } from './graphql.js'; import { RequestModeInput } from '../http.js'; /** * Executes a GraphQL query against the Partners API. * * @param query - GraphQL query to execute. * @param token - Partners token. * @param variables - GraphQL variables to pass to the query. * @param cacheOptions - Cache options. * @param preferredBehaviour - Preferred behaviour for the request. * @param unauthorizedHandler - Optional handler for unauthorized requests. * @returns The response of the query of generic type . */ export declare function partnersRequest(query: string, token: string, variables?: GraphQLVariables, cacheOptions?: CacheOptions, preferredBehaviour?: RequestModeInput, unauthorizedHandler?: UnauthorizedHandler): Promise; /** * Sets the next deprecation date from [GraphQL response extensions](https://www.apollographql.com/docs/resources/graphql-glossary/#extensions) * if `response.extensions.deprecations` objects contain a `supportedUntilDate` (ISO 8601-formatted string). * * @param response - The response of the query. */ export declare function handleDeprecations(response: GraphQLResponse): void;