/*! * Copyright Adaptavist 2023 (c) All rights reserved */ import { Blob, BufferImplementation, HeadersOption, PlatformImplementation, Response } from '@managed-api/commons-core'; import { GraphQLOperation, OperationField, OperationFields, TypeOptions } from './definitions/typeOptions'; import { ErrorStrategyOption } from './errorStrategy'; import { AssetFields } from './definitions/asset'; import { GetGlobalErrorStrategy } from './index'; import { ComplexityFields, ComplexityOption } from './definitions/complexity'; import { ApiVersions } from './definitions/apiVersions'; import { ID } from './types/id'; export declare function errorMessageBuilder(response: Response, reason?: string): Promise; export declare const getGraphQLOperation: (operation: string, operationTypeInfo: TypeOptions | undefined, operationFields: OperationFields, operationArguments?: Record | undefined, operationFragments?: Record | undefined, path?: string, version?: ApiVersions | undefined) => GraphQLOperation; export declare const constructUploadFilePayload: (mutation: 'add_file_to_update' | 'add_file_to_column', implementation: BufferImplementation, args: { update_id?: ID; item_id?: ID; column_id?: string; file: { fileName: string; content: string | ArrayBuffer; }; }, fields: AssetFields, complexity: ComplexityFields | undefined) => Promise; export declare const createQuery: (options: S, queryName: string, implementation: PlatformImplementation, getGlobalErrorStrategy: GetGlobalErrorStrategy) => Promise; export declare const createMutation: (options: S, mutation: string, implementation: PlatformImplementation, getGlobalErrorStrategy: GetGlobalErrorStrategy) => Promise; export declare const updateHeadersWithVersion: (options: S, version: string) => { 'API-Version': string; }; //# sourceMappingURL=common.d.ts.map