export interface ParsedHostHeader {
    hostname: string;
    host: string;
    port: string;
}
export interface RequestWithOriginHeaders {
    headers?: {
        host?: unknown;
        origin?: unknown;
    };
}
export declare function configuredAllowedOrigins(env?: NodeJS.ProcessEnv): string[];
export declare function configuredAllowedHosts(origins?: string[]): string[];
export declare function allowedBrowserPorts(port: number | string | null | undefined, env?: NodeJS.ProcessEnv): number[];
export declare function parseHostHeader(value: unknown): ParsedHostHeader | null;
export declare function isPrivateIpv4(hostname: unknown): boolean;
export declare function isIpLiteralHostname(hostname: unknown): boolean;
export declare function isLoopbackOrPrivateLanHost(hostname: unknown): boolean;
export declare function isAllowedBrowserHost(hostHeader: unknown, ports: number[], bindHost: string, extraAllowedOrigins: string[]): boolean;
export declare function isAllowedBrowserOrigin(origin: unknown, hostHeader: unknown, ports: number[], bindHost: string, extraAllowedOrigins: string[]): boolean;
export declare function isLocalSameOrigin(req: RequestWithOriginHeaders, port: number | string | null | undefined, env?: NodeJS.ProcessEnv): boolean;
