export = ServerController; /** * @class ServerController */ declare class ServerController extends NativeController { constructor(); _info: { elasticsearch: any; redis: any; }; /** * Init ServerController * Used to perform asynchronous initialization safely: the funnel will wait * for all controllers to be initialized before accepting requests. * * @returns {Promise} */ init(): Promise; /** * Returns the statistics frame from a date * * @param {Request} request * @returns {Promise} * * @deprecated */ getStats(request: Request): Promise; /** * Returns the last statistics frame * * @returns {Promise} * * @deprecated */ getLastStats(): Promise; /** * Returns all stored statistics frames * * @returns {Promise} * * @deprecated */ getAllStats(): Promise; /** * Returns the Kuzzle configuration * * @returns {Promise} */ getConfig(): Promise; /** * Returns the Kuzzle capabilities * @returns {Promise} */ capabilities(): Promise; /** * Checks if an admin user Exists * * @returns {Promise} */ adminExists(): Promise; /** * @returns {Promise} */ now(): Promise; /** * @returns {Promise} */ healthCheck(request: any): Promise; /** * @returns {Promise} */ info(): Promise; publicApi(): Promise<{}>; openapi(request: any): Promise; /** * Fetches and returns Kuzzle core metrics * @returns {Promise} */ metrics(): Promise; _buildApiDefinition(controllers: any, httpRoutes: any): {}; } import { NativeController } from "./baseController";