import Command, { flags } from '@oclif/command'; import type Client from '@slicknode/client-node'; import { ConfigStorage } from '../api/config-storage'; import { IEnvironmentConfig, IProjectConfig } from '../types'; import * as Parser from '@oclif/parser'; export declare class BaseCommand extends Command { static flags: { dir: flags.IOptionFlag; }; /** * Runs the command */ run(): Promise; /** * Extend oclif parser to load .env files before parsing args, so flags etc. that have ENV variable name assigned * can be configured with .env file. */ protected parse(options?: Parser.Input, argv?: string[]): Parser.Output; /** * Opens the URL in the default browser of the operating system * * @param url */ openUrl(url: string): void; /** * Returns an instance of the client to the Slicknode API */ getClient(): Promise; protected getConfigStorage(): ConfigStorage; /** * @returns {Promise.} */ protected authenticate(): Promise; /** * Checks if the CLI version is too old. * If there is a newer version available, logs a message. If the current version is incompatible * with the API, returns true. */ protected updateRequired(useCache?: boolean): Promise; /** * The Returns the environment config with the given key * NULL if could not be found * * @param name * @param silent * @returns {Promise.} */ getEnvironment(name?: string, silent?: boolean): Promise; /** * Updates the environment configuration * @param name * @param config * @param targetDir * @returns {Promise.<*>} */ updateEnvironment(name: string, config: IEnvironmentConfig | null, targetDir?: string | null): Promise; /** * Returns the project config * @returns {Promise.} */ protected getConfig(dir?: string): Promise; /** * Returns the path to the project root directory */ protected getProjectRoot(): string; /** * Returns the private modules dir */ protected getDefaultModulesDir(): string; } export declare const CREATE_API_AUTH_REQUEST_MUTATION = "mutation AuthRequestMutation(\n $input: createApiAuthRequestInput!\n) {\n createApiAuthRequest(input: $input) {\n node {\n token\n }\n authUrl\n }\n}\n"; export declare const LOGIN_API_AUTH_REQUEST_MUTATION = "mutation LoginAuthRequestMutation($input: loginApiAuthRequestInput!) {\n loginApiAuthRequest(input: $input) {\n accessToken\n accessTokenLifetime\n refreshToken\n refreshTokenLifetime\n }\n}";