export default function urlToRequest(url: string, root?: string | boolean): string;