import { HttpClient } from '@angular/common/http'; import { Subject } from 'rxjs'; import { NapResponse, NapAggregation, NAPMiddleware, NAPMiddlewaresProfiles, NAPListOptions, NAPReadOptions, NAPInsertOptions, NAPUpdateOptions, NAPDeleteOptions, NAPAggregateOptions } from './napi.interfaces'; export declare enum NapMidExecLapse { onStart = "onStart", onEnd = "onEnd", always = "always", } export declare class NAPConnectionModel { private conn; private connAuthorization; constructor(conn: NAPConnectionService, connAuthorization: string); middlewaresBeforeConn: Array; middlewareAfterConn: Array; executionBefore(o: any): any; executionAfter(o: any): any; list>>(resource: string, filter?: Array, options?: NAPListOptions): Promise; read>>(resource: string, filter?: Array, options?: NAPReadOptions): Promise; insert>(resource: string, data: T, options?: NAPInsertOptions): Promise; update>(resource: string, data: T, filter: Array, options?: NAPUpdateOptions): Promise; delete>(resource: string, filter: Array, options?: NAPDeleteOptions): Promise; aggregate>(resource: string, aggregation: NapAggregation, filter?: Array, options?: NAPAggregateOptions): Promise; with(executionOf: string | NAPMiddleware | Array, midPosition?: NapMidExecLapse): NAPConnectionModel; useAuth(authorization: string): NAPConnectionModel; } export declare class NAPConnectionService { private http; protected RURN: string; protected AURN: string; protected HOST: string; protected _AUTH_URL: string; protected _RESOURCE_URL: string; middlewaresBeforeProfile: NAPMiddlewaresProfiles; middlewaresAfterProfile: NAPMiddlewaresProfiles; defaultProfile: string; xNapPermissionOrder: Array; private _authenticated; authenticated: boolean; authenticatedChange: Subject; defaultAuthorization: string; constructor(http: HttpClient); createBeforeMiddlewareProfile(profile: string, middlewares: Array): void; createAfterMiddlewareProfile(profile: string, middlewares: Array): void; dropMiddlewareProfile(profile: string): void; makeRequest(URL: string, reqBody: Array | object): Promise>; private calcuteURLs(); setResourceURN(path: string): void; setAuthURN(path: string): void; setHost(host: string): void; makeResourceRequest(reqBody: Array | object): Promise>; makeAuthRequest(reqBody: Array | object): Promise>; getDefaultConnection(): NAPConnectionModel; list(resource: string, filter?: Array, options?: NAPListOptions): Promise>>; read(resource: string, filter?: Array, options?: NAPReadOptions): Promise>>; insert(resource: string, data: T, options?: NAPInsertOptions): Promise>; update(resource: string, data: T, filter: Array, options?: NAPUpdateOptions): Promise>; delete(resource: string, filter: Array, options?: NAPDeleteOptions): Promise>; aggregate(resource: string, aggregation: NapAggregation, filter?: Array, options?: NAPAggregateOptions): Promise>; with(executionOf: string | NAPMiddleware | Array, midPosition?: NapMidExecLapse): NAPConnectionModel; }