import { probeAll } from '../health/prober.js'; import { loginAccount } from '../login/login.js'; import { type CliContext } from '../context.js'; export interface LoginOptions { all?: boolean; } /** * Injected in tests so which accounts get signed in can be checked without * spawning a probe per account. Driving the real prober from a test made an * earlier one depend on a subprocess finishing, which passed on one platform * and failed on another for a reason unrelated to the rule being tested. */ export interface LoginCommandDeps { probe?: typeof probeAll; login?: typeof loginAccount; } /** Log in a stale account via the browser, or every logged-out account with --all. */ export declare function loginCommand(context: CliContext, name?: string, options?: LoginOptions, commandDeps?: LoginCommandDeps): Promise;