import { CacheOptions, GraphQLVariables, UnauthorizedHandler } from './graphql.js'; import { TypedDocumentNode } from '@graphql-typed-document-node/core'; import { Variables } from 'graphql-request'; /** * Executes a GraphQL query against the Business Platform Destinations API. * * @param query - GraphQL query to execute. * @param token - Business Platform 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. * @returns The response of the query of generic type . */ export declare function businessPlatformRequest(query: string, token: string, variables?: GraphQLVariables, cacheOptions?: CacheOptions): Promise; /** * @param query - GraphQL query to execute. * @param token - Business Platform 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. */ export interface BusinessPlatformRequestOptions { query: TypedDocumentNode; token: string; variables?: TVariables; cacheOptions?: CacheOptions; unauthorizedHandler: UnauthorizedHandler; } /** * Executes a GraphQL query against the Business Platform Destinations API. Uses typed documents. * * @param options - The options for the request. * @returns The response of the query of generic type . */ export declare function businessPlatformRequestDoc(options: BusinessPlatformRequestOptions): Promise; export interface BusinessPlatformOrganizationsRequestNonTypedOptions { query: string; token: string; organizationId: string; unauthorizedHandler: UnauthorizedHandler; variables?: GraphQLVariables; } /** * Executes a GraphQL query against the Business Platform Organizations API. * * @param options - The options for the request. * @returns The response of the query of generic type . */ export declare function businessPlatformOrganizationsRequest(options: BusinessPlatformOrganizationsRequestNonTypedOptions): Promise; export interface BusinessPlatformOrganizationsRequestOptions extends BusinessPlatformRequestOptions { organizationId: string; } /** * Executes a GraphQL query against the Business Platform Organizations API. Uses typed documents. * * @param options - The options for the request. * @returns The response of the query of generic type . */ export declare function businessPlatformOrganizationsRequestDoc(options: BusinessPlatformOrganizationsRequestOptions): Promise;