import type { GraphObject, NodeObject } from 'jsonld'; import type { Frame } from 'jsonld/jsonld-spec'; import type { FindAllOptions, FindOneOptions, FindOptionsWhere } from './storage/FindOptionsTypes'; import type { MemoryQueryAdapterOptions } from './storage/memory/MemoryQueryAdapterOptions'; import type { RawQueryResult } from './storage/QueryAdapter'; import type { SparqlQueryAdapterOptions } from './storage/sparql/SparqlQueryAdapterOptions'; import type { OrArray, Entity } from './util/Types'; import type { JSONObject } from './util/Util'; export declare type VerbHandler = (args: JSONObject) => Promise; export declare type VerbInterface = Record; export declare type MappingResponseOption = T extends true ? JSONObject : NodeObject; export declare type SkqlOptions = MemoryQueryAdapterOptions | SparqlQueryAdapterOptions; export interface ErrorMatcher { status: number; messageRegex: string; } export interface OperationResponse { data: JSONObject; } export declare class Skql { private readonly mapper; private readonly adapter; private readonly inputFiles?; readonly verb: VerbInterface; constructor(options: SkqlOptions); executeRawQuery(query: string): Promise; executeRawEntityQuery(query: string, frame?: Frame): Promise; find(options?: FindOneOptions): Promise; findBy(where: FindOptionsWhere): Promise; findAll(options?: FindAllOptions): Promise; findAllBy(where: FindOptionsWhere): Promise; exists(where: FindOptionsWhere): Promise; count(where?: FindOptionsWhere): Promise; save(entity: Entity): Promise; save(entities: Entity[]): Promise; destroy(entity: Entity): Promise; destroy(entities: Entity[]): Promise; destroyAll(): Promise; performMapping(args: JSONObject, mapping: OrArray, frame?: Record): Promise; performMappingAndConvertToJSON(args: JSONObject, mapping: OrArray, convertToJsonDeep?: boolean, frame?: Record): Promise; private handleVerb; private findVerbWithName; private handleIntegrationVerb; private findVerbIntegrationMapping; private performOperationMappingWithArgs; private performOperation; private performReturnValueMappingWithFrame; private resolveMappingReferences; private performParameterMappingOnArgsIfDefined; private getOpenApiDescriptionForIntegration; private findSecurityCredentialsForAccount; private findSecurityCredentialsForAccountIfDefined; private createOpenApiOperationExecutorWithSpec; private handleNounMappingVerb; private findVerbNounMapping; private performVerbMappingWithArgs; private assertVerbParamsMatchParameterSchemas; private performOpenapiOperationWithCredentials; private isInvalidTokenError; private refreshOpenApiToken; private getConfigurationFromSecurityCredentials; private assertVerbReturnValueMatchesReturnTypeSchema; private getReturnTypeSchemaFromVerb; private convertToQuadsAndValidateAgainstShape; private performSecuritySchemeStageWithCredentials; private getDataFromDataSource; private getDataFromJsonDataSource; private getJsonDataFromSource; }