import { CodeArtifactConfig } from './types.js'; /** * Build the CodeArtifact registry URL from configuration * * @param config - CodeArtifact configuration * @param region - AWS region * @returns Registry URL (e.g., https://paduafg-361485743373.d.codeartifact.ap-southeast-2.amazonaws.com/npm/paduafg/) */ export declare function buildCodeArtifactRegistry(config: CodeArtifactConfig, region: string): string; /** * Construct .npmrc file content with CodeArtifact configuration * * @param registry - CodeArtifact registry URL * @param token - Authorization token (JWT) * @returns Formatted .npmrc content */ export declare function constructNpmrcContent(registry: string, token: string): string; /** * Write .npmrc to project root (current working directory) * * @param content - .npmrc file content * @throws Error if write fails */ export declare function writeProjectNpmrc(content: string): void; /** * Write .npmrc to global location (~/.npmrc) * * @param content - .npmrc file content * @throws Error if write fails */ export declare function writeGlobalNpmrc(content: string): void; /** * Test whether a line is managed by Padua (CodeArtifact config). * Matches @paduafg scoped registry and codeartifact host lines. */ export declare function isPaduaManagedLine(line: string): boolean; /** * Merge new CodeArtifact content with existing .npmrc content, * preserving non-Padua lines (e.g. npmjs.org auth tokens). */ export declare function mergeNpmrcContent(existingContent: string | null, newContent: string): string; /** * Read .npmrc from project root (current working directory) * * @returns .npmrc content if exists, null otherwise */ export declare function readProjectNpmrc(): string | null; /** * Read .npmrc from global location (~/.npmrc) * * @returns .npmrc content if exists, null otherwise */ export declare function readGlobalNpmrc(): string | null; /** * Check if .gitignore exists and contains .npmrc * * @returns true if .npmrc is in .gitignore or .gitignore doesn't exist, false otherwise */ export declare function isNpmrcInGitignore(): boolean; //# sourceMappingURL=npmrc.d.ts.map