import type { IDataObject, IExecuteFunctions, IHttpRequestMethods, ILoadOptionsFunctions, INode } from 'n8n-workflow'; import { NodeApiError } from 'n8n-workflow'; export type CreatioAuthentication = 'oAuth2' | 'usernamePassword'; export declare const CREATIO_CANONICAL_OPERATIONS: readonly ["GET", "POST", "PATCH", "DELETE", "METADATA", "TABLES", "UPLOAD", "DOWNLOAD"]; export declare const CREATIO_V2_OPERATION_MAP: Record>; export declare function resolveCreatioOperation(typeVersion: number, resource: string | undefined, operation: string): string; export declare const CREATIO_AUTH_ERROR_MESSAGE = "Creatio authentication failed"; export declare const CREATIO_AUTH_ERROR_DESCRIPTION = "Your Creatio credentials appear to be invalid or expired. Check the credential's Client ID/Secret (OAuth2) or username/password, then reconnect."; export declare function mapCreatioError(node: INode, error: any, itemIndex?: number): NodeApiError; export interface CreatioRequestOptions { json?: boolean; accept?: string; itemIndex?: number; } export declare function getCreatioBaseUrl(context: IExecuteFunctions | ILoadOptionsFunctions, authentication: CreatioAuthentication): Promise; export declare function getCreatioLegacySession(context: IExecuteFunctions | ILoadOptionsFunctions, baseUrl: string): Promise<{ cookieHeader: string; csrfToken: string; }>; export declare function creatioApiRequest(this: IExecuteFunctions | ILoadOptionsFunctions, authentication: CreatioAuthentication, method: IHttpRequestMethods, endpoint: string, body?: IDataObject | string, options?: CreatioRequestOptions): Promise; export interface CreatioFileUploadParams { fileId: string; totalFileLength: number; mimeType: string; fileName: string; columnName: string; entitySchemaName: string; parentColumnName: string; parentColumnValue: string; additionalParams?: string; } export declare function creatioFileUploadRequest(this: IExecuteFunctions, authentication: CreatioAuthentication, params: CreatioFileUploadParams, body: Buffer, options?: { itemIndex?: number; }): Promise; export declare function creatioFileDownloadRequest(this: IExecuteFunctions, authentication: CreatioAuthentication, entitySchemaName: string, fileId: string, options?: { itemIndex?: number; }): Promise;