/// import { IncomingHttpHeaders } from "http"; import { AsyncContext, AsyncRowStore } from '../store/AsyncRowStore'; import { SyncContext } from '../store/SyncRowStore'; import { Connector, EntityDict, OakException } from "../types"; export declare class SimpleConnector, FrontCxt extends SyncContext> extends Connector { static ROUTER: string; private serverUrl; private makeException; private contextBuilder; constructor(serverUrl: string, makeException: (exceptionData: any) => OakException, contextBuilder: (str: string | undefined) => (store: AsyncRowStore) => Promise); callAspect(name: string, params: any, context: FrontCxt): Promise<{ result: any; opRecords: any; message: string | null; } | { result: ArrayBuffer; message: string | null; opRecords?: undefined; }>; getRouter(): string; parseRequest(headers: IncomingHttpHeaders, body: any, store: AsyncRowStore): Promise<{ name: string; params: any; context: BackCxt; }>; serializeResult(result: any, context: BackCxt, headers: IncomingHttpHeaders, body: any): { body: any; headers?: Record | undefined; }; serializeException(exception: OakException, headers: IncomingHttpHeaders, body: any): { body: any; headers?: Record | undefined; }; }