interface Rule { method: string; from: string; to: string; } export declare function rewrite(rules: string[][] | Rule[]): (req: any, res: any, next: any) => any; export {};