import { URL } from 'url';
import { IRequestBaseConfig } from '../../../models/RequestConfig.js';
export interface UrlProcessorOptions {
    hosts?: IRequestBaseConfig['hosts'];
}
/**
 * Updates the `uri` property from current request URL
 */
export declare function readUrl(value: string, options?: UrlProcessorOptions): URL;
/**
 * Get host header for the request
 */
export declare function getHostHeader(url: string, options?: UrlProcessorOptions): string | undefined;
/**
 * Get redirect location
 */
export declare function getRedirectLocation(location: string, currentUrl: string): string;
/**
 * Check if redirect is a loop
 */
export declare function isRedirectLoop(location: string, redirects: {
    url: string;
}[]): boolean;
//# sourceMappingURL=UrlProcessor.d.ts.map