import { Command } from "@oclif/core"; /** * True for errors oclif raised deliberately (this.error, this.exit, parse * errors) and for errors that mark themselves `userError` (problems in the * user's input, such as an .apsorc that would not compile). */ export declare function isUserError(err: unknown): boolean; export default abstract class BaseCommand extends Command { /** * Report failures to Sentry + PostHog before oclif exits. The postrun hook * does not fire on error, so the flush has to happen here. */ catch(err: Error & { exitCode?: number; code?: string; oclif?: { exit?: number; }; }): Promise; runCommand(command: string, args: string[], silent?: boolean): Promise; runNpmCommand(args: string[], silent?: boolean): Promise; }