import express = require("express");
import { RemoteCallHandlerInterface } from "@selfage/service_descriptor/remote_call_handler_interface";
export declare class BaseRemoteCallHandler {
    private allowOrigin;
    static create(allowOrigin: string): BaseRemoteCallHandler;
    constructor(allowOrigin: string);
    handle(remoteCallHandler: RemoteCallHandlerInterface, req: express.Request, res: express.Response): Promise<void>;
    private handleRequest;
    private destringify;
    private deserialize;
    private sendResponse;
}
