Router
export declare class Router {
static prefixSlash(value: string): string;
getError(module?: string): string;
hasError(): boolean;
setError(route: string): void;
addRules(rules: Array<RouteRuleConfig>): void;
addRule(Class: TRoute, config?: RouteRuleConfig): void;
parseRequest(pathName: string, method: string, headers: Headers): Promise<IResolvedRoute>;
createUrl(routeName: string, params: Object): Promise<string>;
}