UNPKG

renovate

Version:

Automated dependency updates. Flexible so you don't need to be.

7 lines (6 loc) 697 B
import type { HostRule } from '../../types'; import type { InternalHttpOptions } from './http'; import type { GotOptions } from './types'; export type HostRulesGotOptions = Pick<GotOptions & InternalHttpOptions, 'hostType' | 'url' | 'noAuth' | 'headers' | 'token' | 'username' | 'password' | 'context' | 'enabled' | 'abortOnError' | 'abortIgnoreStatusCodes' | 'timeout' | 'lookup' | 'agent' | 'http2' | 'https' | 'readOnly'>; export declare function findMatchingRule<GotOptions extends HostRulesGotOptions>(url: string, options: GotOptions): HostRule; export declare function applyHostRule<GotOptions extends HostRulesGotOptions>(url: string, options: GotOptions, hostRule: HostRule): GotOptions;