import { type NpmrcConfig } from '@gjsify/npm-registry';
export declare function loadNpmrc(cwd: string): Promise<NpmrcConfig>;
/**
 * True iff the parsed npmrc contains *any* `_authToken` entry. Cheap helper
 * for commands that want a clear "no token configured" error message
 * instead of a generic 401/empty response.
 */
export declare function hasAnyAuthToken(npmrc: NpmrcConfig): boolean;
/**
 * True iff the parsed npmrc has *any* credential (bearer token or basic
 * auth). Used by `gjsify whoami` to differentiate "no token configured"
 * from "token configured but rejected by the registry".
 */
export declare function hasAnyCredential(npmrc: NpmrcConfig): boolean;
