/** * Writes a key into the credentials file, replacing any existing entry. * Rewrites in place rather than appending, so re-authenticating does not leave * a stale token above the new one — the parser takes the last occurrence, and * relying on that is a trap. */ export declare const upsertCredential: (key: string, value: string, file?: string) => void; export interface AuthDependencies { write?: (line: string) => void; fetchImpl?: typeof fetch; /** Injected in tests so polling does not actually sleep. */ sleep?: (ms: number) => Promise; credsFile?: string; } export declare const runAuth: (argv: string[], deps?: AuthDependencies) => Promise; export declare const AuthCommand: { run(argv: string[]): Promise; }; //# sourceMappingURL=AuthCommand.d.ts.map