import type { Response } from './Response';
import { RServerConfig } from '../@types';
import type { Request } from './Request';
export declare class Logger {
    private config;
    private errorLogHandle;
    private accessLogHandle;
    constructor(config: RServerConfig);
    /**
     * log warning message to the console
     */
    warn(message: string): this;
    /**
     * log info message to the console
     */
    info(message: string): this;
    /**
     * close the handles once the server is closed
     */
    close(): this;
    /**
     * runs the error logging
     */
    logError(err: Error): this;
    /**
     * logs access information
     */
    private logAccess;
    /**
     * log request response profile
     */
    profile(req: Request, res: Response): this;
}
