/** The `.npmrc` file `gjsify login` writes to (matches `load-npmrc.ts`'s userconfig source). */
export declare function userconfigNpmrcPath(): string;
/**
 * The npm "nerf-dart" key for a registry: the URL with the protocol removed,
 * keeping the host + path with a trailing slash — `//registry.npmjs.org/`.
 */
export declare function nerfDart(registry: string): string;
/** The full `_authToken` config key for a registry. */
export declare function authTokenKey(registry: string): string;
/**
 * Upsert `<nerf-dart>:_authToken=<token>` in the userconfig `.npmrc`, preserving
 * all other lines. Returns the file path written.
 */
export declare function writeAuthToken(registry: string, token: string): string;
/**
 * Remove the `<nerf-dart>:_authToken=` line for a registry from the userconfig
 * `.npmrc`. Returns `{ path, removed }` — `removed` is false if no line matched.
 */
export declare function removeAuthToken(registry: string): {
    path: string;
    removed: boolean;
};
