import * as url from 'url'; export interface ISimpleRequest { headers: {}; parsedUrl: url.URL; } export interface ISimpleResponse { headers: { [key: string]: string }; status: number; body: string | Buffer; } export type IRenderFunction = (req: ISimpleRequest) => Promise;