import { Command } from '@oclif/core'; import { type EnvSetupConfig, type EnvSetupResult } from '@owox/internal-helpers'; import { OWOXApiClient } from '@owox/api-client'; import { type AuthConfig } from './config-store.js'; type BaseFlags = { 'env-file'?: string; }; type SetupEnvironment = (config?: EnvSetupConfig) => EnvSetupResult; export type NormalizedCliError = { message: string; status?: number; code?: string; name?: string; details?: unknown; }; export declare function normalizeCliError(error: unknown): NormalizedCliError; export declare function setupEnvironmentFromFlags(flags: Pick, setupEnvironment?: SetupEnvironment): string | null; export declare abstract class BaseCommand extends Command { static baseFlags: { 'env-file': import("@oclif/core/interfaces").OptionFlag; }; protected createClient(config: AuthConfig): OWOXApiClient; protected loadEnvironment(flags: Pick): string | null; protected getAuthenticatedClient(): OWOXApiClient; protected writeJson(value: unknown): void; protected handleCliError(error: unknown): never; protected finally(error: Error | undefined): Promise; } export {};