declare module 'mime-types' { export function contentType(filename: string): string | false; export function extension(type: string): string | false; export function lookup(path: string): string | false; export function charset(type: string): string | false; export function contentTypeByHeader(header: string): string | false; export const extensions: string[]; export const types: string[]; } declare module 'sanitize' { export function escape(s: string): string; export function escapeHTML(s: string): string; export function escapeHTMLComment(s: string): string; export function escapeScript(s: string): string; export function escapeStyle(s: string): string; export function escapeURL(s: string): string; export function unescapeHTML(s: string): string; export function unescapeScript(s: string): string; export function unescapeURL(s: string): string; export const middleware: any; } declare module 'cookie-parser' { export default function cookieParser(secret?: string, options?: any): any; }