///
///
import Koa from 'koa';
import { Config } from './config';
/**
* Rendertron rendering service. This runs the server which routes rendering
* requests through to the renderer.
*/
export declare class Rendertron {
app: Koa;
private config;
private renderer;
private port;
private host;
createRenderer(config: Config): Promise;
initialize(config?: Config): Promise;
/**
* Checks whether or not the URL is valid. For example, we don't want to allow
* the requester to read the file system via Chrome.
*/
restricted(href: string): boolean;
handleRenderRequest(ctx: Koa.Context, url: string): Promise;
handleScreenshotRequest(ctx: Koa.Context, url: string): Promise;
}