export declare function attemptValidUrl(given: string, base?: string | URL): URL | false;