import Emitter from './Emitter'; import logger from 'pino'; import { Config } from './config'; /** * The Aureolin Application class. * @class * @extends Emitter */ export declare class AureolinApplication extends Emitter { private options; /** * Koa Application Instace which acts as the base http server * @type {Application} * @memberof AureolinApplication * @private * @readonly */ private readonly server; /** * Koa Router Instance * @type {Router} * @memberof AureolinApplication * @private * @readonly */ private readonly router; /** * Http-Methods - Router Map * @type {Map} * @memberof AureolinApplication * @private * @readonly */ private readonly methods; /** * Pino Logger * @type {Logger} * @memberof AureolinApplication * @private * @readonly */ logger: logger.Logger; /** * Aureolin Application Constructor * @param {CreateOptions} options - Options to create the application * @memberof AureolinApplication * @constructor */ constructor(options: Config); /** * Get the path prefixed with the root directory * @param {string} path - Path to be prefixed * @returns {string} dir - Path prefixed with the root directory */ private path; /** * Starts the application * @memberof AureolinApplication * @returns {Promise} * @public * @async */ start: () => Promise; private configureMiddleware; /** * Loads the providers * @memberof AureolinApplication * @returns {Promise} * @private * @async */ private loadProviders; /** * Loads the controllers * @memberof AureolinApplication * @returns {Promise} * @private * @async */ private loadControllers; private getPath; /** * Configures the routers * @memberof AureolinApplication * @returns {void} * @private */ private configureRouters; /** * Creates a new instance of AureolinApplication * @param {Config} options - Options for the application * @returns {AureolinApplication} - New instance of AureolinApplication */ static create: (options: Config) => AureolinApplication; }