import type { GraphObject, NodeObject } from 'jsonld'; import type { Frame } from 'jsonld/jsonld-spec'; import { globalHooks } from './hooks/globalHooks'; import type { ExecutionOptions } from './JsExecutor'; import type { ICodeExecutor } from './JsExecutor/types'; import type { SklEngineOptions } from './SklEngineOptions'; import type { FindAllOptions, FindOneOptions, FindOptionsWhere } from './storage/FindOptionsTypes'; import type { GroupByOptions, GroupByResponse } from './storage/GroupOptionTypes'; import type { RawQueryResult } from './storage/query-adapter/QueryAdapter'; import type { Capability, CapabilityConfig, Entity, JSONObject, JSONValue, Mapping, OrArray, SKLEngineInterface } from './util/Types'; export declare type CapabilityHandler = = OrArray>(params: JSONObject, capabilityConfig?: CapabilityConfig) => Promise; export declare type CapabilityInterface = Record; export declare type MappingResponseOption = T extends true ? JSONObject : NodeObject; export declare type WriteOptions = { bypassHooks?: boolean; }; export declare class SKLEngine implements SKLEngineInterface { private readonly queryAdapter; private readonly functions?; private readonly inputFiles?; private readonly globalCallbacks?; private readonly disableValidation?; readonly capability: CapabilityInterface; private codeExecutor; private readonly skdsEndpointUrl; private readonly scriptPath; private readonly logger; private readonly readCache?; private readonly readCachePolicy?; private readonly readCacheNamespace?; private readonly readCacheSingleflight; constructor(options: SklEngineOptions); setCodeExecutor(codeExecutor: ICodeExecutor): void; executeRawQuery(query: string): Promise; executeRawUpdate(query: string): Promise; executeRawConstructQuery(query: string, frame?: Frame): Promise; private cloneForReadCache; private wrapReadCacheValue; private isReadCacheEnvelope; private stripBypassCacheFromFindOneOptions; private stripBypassCacheFromFindAllOptions; private stripBypassCacheFromWhere; private runReadWithCache; find(options?: FindOneOptions): Promise; findBy(where: FindOptionsWhere, notFoundErrorMessage?: string): Promise; findByIfExists(options: FindOptionsWhere): Promise; findAll(options?: FindAllOptions): Promise; groupBy(options: GroupByOptions): Promise; findAllBy(where: FindOptionsWhere): Promise; exists(options?: FindAllOptions): Promise; count(options?: FindAllOptions): Promise; save(entity: Entity, options?: WriteOptions): Promise; save(entities: Entity[], options?: WriteOptions): Promise; update(id: string, attributes: Partial, options?: WriteOptions): Promise; update(ids: string[], attributes: Partial, options?: WriteOptions): Promise; validateEntitiesConformToObjectSchema(entities: Entity[]): Promise; private groupEntitiesByType; private getSuperClassesOfObject; private getSuperClassesOfObjects; private getParentsOfSelector; private validateEntityConformsToObjectSchema; private validateEntitiesWithIdsConformsToObjectSchemaForAttributes; private getObjectsAndParentObjectsOfEntity; private validateEntityWithIdConformsToObjectSchemaForAttributes; delete(id: string, options?: WriteOptions): Promise; delete(ids: string[], options?: WriteOptions): Promise; destroy(entity: Entity): Promise; destroy(entities: Entity[]): Promise; destroyAll(): Promise; performMapping(args: JSONValue, mapping: OrArray, frame?: Record, capabilityConfig?: CapabilityConfig, jsExecutionOptions?: ExecutionOptions): Promise; executeTrigger(integration: string, payload: any): Promise; private findTriggerCapabilityMapping; private executeCapabilityByName; private findCapabilityWithName; executeCapability(capability: Capability, capabilityArgs: JSONObject, capabilityConfig?: CapabilityConfig): Promise>; private findMappingForCapabilityContextually; executeMapping(mapping: Mapping, args: JSONObject, capabilityConfig?: CapabilityConfig, account?: Entity): Promise>; private shouldValidate; private executeOperationMapping; private executeSeriesMapping; private rdfListToArray; private executeSeriesFromList; private executeCapabilityMapping; private addPreProcessingMappingToArgs; private replaceTypeAndId; private updateEntityFromcapabilityArgs; private saveEntityOrEntitiesFromcapabilityArgs; private destroyEntityOrEntitiesFromcapabilityArgs; private countAndWrapValueFromcapabilityArgs; private existsAndWrapValueFromcapabilityArgs; findAndExecuteCapability(capabilityId: string, args: Record, capabilityConfig?: CapabilityConfig): Promise>; private executeParallelMapping; private findCapabilityIntegrationMapping; private performOperationMappingWithArgs; private performOperation; private axiosResponseAndParamsToOperationResponse; private performReturnValueMappingWithFrameIfDefined; private performParameterMappingOnArgsIfDefined; private getDataAtReference; private getIntegrationInterface; private findSecurityCredentialsForAccountIfDefined; private findgetOpenApiRuntimeAuthorizationCapabilityIfDefined; private findRefreshCapabilityForIntegration; private getRuntimeCredentialsWithSecurityCredentials; private createOpenApiOperationExecutorWithSpec; private findCapabilityObjectMapping; private performCapabilityMappingWithArgs; private assertCapabilityParamsMatchParameterSchemas; private performOpenapiOperationWithCredentials; private getHeadersFromRuntimeCredentials; private getAuthorizationHeaderFromRuntimeCredentials; private isInvalidTokenError; private refreshSecurityCredentials; private getOauthConfigurationFromSecurityCredentials; private assertCapabilityReturnValueMatchesReturnTypeSchema; private convertToQuadsAndValidateAgainstShape; private performOauthSecuritySchemeStageWithCredentials; private getDataFromDataSource; private getDataFromJsonDataSource; private getJsonDataFromSource; private throwValidationReportError; private validationReportToMessages; private ifCapabilityStreaming; private ifCapabilityBuffering; private isJavaScriptCode; private ensureNodeObject; private executeCodeBlocks; private executeJavaScriptMapping; get hooks(): typeof globalHooks; prepareContextForType(typeSpecOrId: any): Promise>; } //# sourceMappingURL=SklEngine.d.ts.map