export = Router; /** * @class Router * @property action * @param {Kuzzle} kuzzle */ declare class Router { connections: Map; http: HttpRouter; logger: import("../../kuzzle/Logger").Logger; /** * Declares a new connection attached to a network protocol. * * @param {RequestContext} requestContext */ newConnection(requestContext: RequestContext): void; /** * Removes a connection from the connection pool. * * @param {RequestContext} requestContext */ removeConnection(requestContext: RequestContext): void; /** * Check that the provided connection id executing a request is still alive * * @param {RequestContext} requestContext */ isConnectionAlive(requestContext: RequestContext): boolean; /** * Initializes the HTTP routes for the Kuzzle HTTP API. */ init(): void; /** * Returns the metrics of the router * @returns {Object} */ metrics(): any; /** * Transmit HTTP requests to the funnel controller and forward its response * back to the client * * @param {String} verb * @param {Request} request - includes URL and POST query data * @param {function} cb - callback to invoke with the result */ _executeFromHttp(verb: string, request: Request, cb: Function): void; } import HttpRouter = require("./httpRouter"); import { Request } from "../../api/request/kuzzleRequest";