import { type SslConfig } from '@pnpm/types'; import { type FetchFromRegistry } from '@pnpm/fetching-types'; import { type AgentOptions } from '@pnpm/network.agent'; import { type Response, type RequestInfo, type RequestInit } from './fetch'; export interface FetchWithAgentOptions extends RequestInit { agentOptions: AgentOptions; } export declare function fetchWithAgent(url: RequestInfo, opts: FetchWithAgentOptions): Promise; export type { AgentOptions }; export interface CreateFetchFromRegistryOptions extends AgentOptions { fullMetadata?: boolean; userAgent?: string; sslConfigs?: Record; } export declare function createFetchFromRegistry(defaultOpts: CreateFetchFromRegistryOptions): FetchFromRegistry;