import { Command } from '@contentstack/cli-command'; import { ArgInput, Interfaces } from '@contentstack/cli-utilities'; export type Args = Interfaces.InferredArgs; export type Flags = Interfaces.InferredFlags<(typeof BaseCommand)['baseFlags'] & T['flags']>; export declare abstract class BaseCommand extends Command { contextDetails: { command: string; module: string; userId: string; email: string; sessionId: string; apiKey: string; orgId: string; authenticationMethod: string; }; protected args: Args; protected flags: Flags; static args: ArgInput<{ [arg: string]: any; }>; /** * The `init` function initializes the command by parsing arguments and flags, registering search * plugins, registering the configuration, and initializing the logger. */ init(): Promise; /** * The catch function is used to handle errors from a command, either by adding custom logic or * returning the parent class error handling. * @param err - The `err` parameter is of type `Error & { exitCode?: number }`. This means that it is * an object that extends the `Error` class and may also have an optional property `exitCode` of type * `number`. * @returns The parent class error handling is being returned. */ protected catch(err: Error & { exitCode?: number; }): Promise; /** * The `finally` function is called after the `run` and `catch` functions, regardless of whether or not * an error occurred. * @param {Error | undefined} _ - The parameter "_" represents an error object or undefined. * @returns The `finally` method is returning the result of calling the `finally` method of the * superclass, which is a promise. */ protected finally(_: Error | undefined): Promise; }