import type { ResolvedRegistry } from './config'; import type { Credentials } from './credentials'; export interface WriteAuthResult { targetRegistry: ResolvedRegistry; credentials: Credentials; } /** * Resolve the write registry and validate credentials. * Exits with appropriate error messages on failure. */ export declare function requireWriteAuth(options: { registryFlag?: string; json?: boolean; jsonResultKey?: string; }): WriteAuthResult; /** * Handle registry write operation errors with consistent messages. */ export declare function handleRegistryWriteError(err: unknown, options: { json?: boolean; jsonResultKey?: string; actionLabel: string; }): never; //# sourceMappingURL=write-auth.d.ts.map