import type { DecideBaseURLShape, DecideBaseURLTransform } from "../../types/index.js";
export declare function normalizeBaseURL(raw: string, transforms: readonly DecideBaseURLTransform[]): string;
/** Whether a `URL.hostname` is this machine, so a plain-http request to it never leaves it. */
export declare function isLoopbackHost(hostname: string): boolean;
/**
 * Why a parsed base URL may not be used, or undefined: a plain-http URL that
 * is not loopback would send the bearer key and the decision body in cleartext.
 * The message names no part of the URL.
 */
export declare function cleartextBaseURLProblem(url: URL, displayName: string, fix: string): string | undefined;
/** Why a normalised base URL fails the shape, or undefined when it passes. */
export declare function baseURLShapeProblem(shape: DecideBaseURLShape, baseURL: string, displayName: string, fix: string): string | undefined;
