/** A vendor's host rule: whether a request to `hostname` (and, where the vendor shares a host, `pathname`) is its. */ export type HostRule = (hostname: string, pathname?: string) => boolean; export const VENDOR_HOSTS: Record; export function isVendorHost(hostname: string): boolean; export function vendorsOfHost(hostname: string): string[]; export function twinEnvStem(vendor: string): string; /** The vendors whose twin `env` points at, each with its origin. */ export function twinOrigins(env: Readonly>): Record; /** A pack's host rules (its descriptor's `hosts`, as data) read as the injector reads them: whether any include names a * host whatever the path, and whether a request to a host and path is the pack's. */ export function hostRules(rules: ReadonlyArray<{ host?: string; suffix?: string; hostPattern?: string; pathPattern?: string; key?: string; exclude?: true }> | undefined): { names(hostname: string): boolean; takes(hostname: string, pathname: string): boolean }; /** Resolve an active twin exactly as the proxy, first declared host/path rules, then claimed hosts. */ export function resolveTwinHost(hostname: string, map: Readonly>, pathname?: string, claimed?: Readonly | (() => ReadonlySet)>>): { vendor: string; origin: string } | null;