import type { CreateFetchFromRegistryOptions } from '@pnpm/network.fetch'; import type { OtpContext, WebAuthFetchOptions } from '@pnpm/network.web-auth'; export declare function rcOptionsTypes(): Record; export declare function parsePackageSpec(spec: string): { name: string; escapedName: string; versionRange: string | undefined; }; export declare function normalizeRegistryUrl(registryUrl: string): string; /** * Reads at most ERROR_BODY_LIMIT bytes of the response body. Registry * responses are untrusted, so the read is bounded before decoding rather * than truncated after buffering the whole body. */ export declare function readErrorBody(response: Response): Promise; export declare const WEB_AUTH_FETCH_OPTIONS: WebAuthFetchOptions; export declare function createOtpContext(opts: CreateFetchFromRegistryOptions): OtpContext;