import { BaseCommand } from './baseCommand.js'; import { Account } from '../rest/accounts.js'; import { Diagnostics } from '../constructs/diagnostics.js'; import type { Project } from '../constructs/project.js'; import type { CommandPreview } from '../helpers/command-preview.js'; /** * Exit code of a write command that stopped for confirmation in agent or CI * mode, after printing the `confirmation_required` envelope. It differs from * oclif's 2 for usage errors, so the exit code alone says whether the command * needs approval. */ export declare const CONFIRMATION_REQUIRED_EXIT_CODE = 3; export declare abstract class AuthCommand extends BaseCommand { #private; static hidden: boolean; /** Whether this run logged the user in (and had them pick an account) before the command started. */ protected loggedInInline: boolean; get account(): Account; /** * A lookup that found nothing may have searched the wrong account: a key * from `checkly login` belongs to the user and works with all of their * accounts. API key credentials belong to one account, so there is no * other to search. */ searchedAccount(): { id: string; name: string; } | undefined; protected init(): Promise; protected validateProject(project: Project, options: { configDiagnostics: Diagnostics; failureMessage?: string; }): Promise; protected confirmOrAbort(preview: CommandPreview, options: { force: boolean; dryRun?: boolean; interactiveConfirm?: () => Promise; }): Promise; }