import { BaseCommand } from './baseCommand.js'; import type { Account } from '../rest/accounts.js'; export declare const selectAccount: (accounts: Array, { onCancel }: { onCancel: () => void; }) => Promise; /** * The `select_account` line an agent gets when a person has to choose the * account (`login` and `switch`). A login key works with all of the user's * accounts, so the choice can be made the default with `defaultCommand` or * used for one command only: `command` when it is known, any command otherwise. */ export declare function selectAccountLine(options: { message: string; accounts: Array<{ id: string; name: string; }>; defaultCommand: string; command?: string; extra?: Record; }): string; export default class Login extends BaseCommand { #private; static hidden: boolean; static idempotent: boolean; static description: string; static examples: string[]; static flags: { 'account-id': import("@oclif/core/interfaces").OptionFlag; 'no-browser': import("@oclif/core/interfaces").BooleanFlag; wait: import("@oclif/core/interfaces").BooleanFlag; }; run(): Promise; /** * Runs the whole login flow for the detected CLI mode and stores the * credentials. Returns false when the flow did not complete in agent mode * (the JSON error line has already been printed); throws otherwise. * Other commands call this with `inline: true` to log the user in before * they run; the login then writes to stderr so the command's own stdout * (e.g. `--output json`) stays clean, and pass their own command line as * `command` for the agent to run again. */ login(options?: { accountId?: string; openBrowser?: boolean; inline?: boolean; command?: string; wait?: boolean; }): Promise; }