/** * BaseCommand — global flags (profile / api-key / base-url / idempotency-key / * verbose), the `--json` toggle (oclif's enableJsonFlag), a uniform human/JSON * responder, and API-error → exit-code handling shared by every command. */ import { Command, type Interfaces } from '@oclif/core'; import { type ClientFlags } from './client.js'; export declare abstract class BaseCommand extends Command { static enableJsonFlag: boolean; static baseFlags: { profile: Interfaces.OptionFlag; 'api-key': Interfaces.OptionFlag; 'base-url': Interfaces.OptionFlag; 'idempotency-key': Interfaces.OptionFlag; verbose: Interfaces.BooleanFlag; }; protected flags: Interfaces.InferredFlags<(typeof BaseCommand)['baseFlags'] & T['flags']>; protected args: Interfaces.InferredArgs; init(): Promise; /** The subset of flags that select credentials/host. */ protected clientFlags(): ClientFlags; /** Render a result: raw JSON under `--json`, otherwise a human summary. */ protected respond(data: R): R; /** Parse a `--data`/`-d` JSON flag; a usage error (exit 2) on invalid JSON. */ protected parseBody(data?: string): unknown; protected catch(err: Error & { exitCode?: number; }): Promise; }