import { type CreateFetchFromRegistryOptions, type FetchFromRegistry } from '@pnpm/network.fetch'; import type { RegistriesByScope, RegistryConfig } from '@pnpm/types'; export declare function cliOptionsTypes(): Record; export declare function rcOptionsTypes(): Record; export interface WhoamiOptions extends CreateFetchFromRegistryOptions { configByUri?: Record; registriesByScope?: RegistriesByScope; } export declare const commandNames: string[]; export declare function help(): string; export declare function handler(opts: WhoamiOptions): Promise; export declare function fetchWhoami(registryUrl: string, fetchFromRegistry: FetchFromRegistry, authHeader: string): Promise;