import { CacheOptions, GraphQLResponse, UnauthorizedHandler } from './graphql.js'; import { RequestModeInput } from '../http.js'; import { TypedDocumentNode } from '@graphql-typed-document-node/core'; import { Variables } from 'graphql-request'; export declare const appManagementHeaders: (token: string) => Record; export declare const appManagementAppLogsUrl: (organizationId: string, cursor?: string, filters?: { status?: string; source?: string; }) => Promise; export interface RequestOptions { requestMode: RequestModeInput; } /** * @param orgId - The organization ID. * @param query - GraphQL query to execute. * @param token - Partners token. * @param variables - GraphQL variables to pass to the query. * @param cacheOptions - Cache options for the request. If not present, the request will not be cached. * @param requestOptions - Preferred behaviour for the request. * @param unauthorizedHandler - Optional handler for unauthorized requests. */ export interface AppManagementRequestOptions { query: TypedDocumentNode; token: string; variables?: TVariables; cacheOptions?: CacheOptions; requestOptions?: RequestOptions; unauthorizedHandler: UnauthorizedHandler; } /** * Executes an org-scoped GraphQL query against the App Management API. Uses typed documents. * * @param options - The options for the request. * @returns The response of the query of generic type . */ export declare function appManagementRequestDoc(options: AppManagementRequestOptions): 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;