import { AblyBaseCommand } from "./base-command.js"; import { ControlApi } from "./services/control-api.js"; import { BaseFlags } from "./types/cli.js"; export declare abstract class ControlBaseCommand extends AblyBaseCommand { static globalFlags: { "oauth-host": import("@oclif/core/interfaces").OptionFlag; "control-host": import("@oclif/core/interfaces").OptionFlag; "dashboard-host": import("@oclif/core/interfaces").OptionFlag; verbose: import("@oclif/core/interfaces").BooleanFlag; json: import("@oclif/core/interfaces").BooleanFlag; "pretty-json": import("@oclif/core/interfaces").BooleanFlag; "web-cli-help": import("@oclif/core/interfaces").BooleanFlag; }; /** * Create a Control API instance for making requests */ protected createControlApi(flags: BaseFlags): ControlApi; /** * Resolve app ID or fail the command with a standard error. * Returns the app ID string — never returns null. */ protected requireAppId(flags: BaseFlags): Promise; protected formatDate(timestamp: number): string; /** * Resolves the app ID from the flags, current configuration, or interactive prompt */ protected resolveAppId(flags: BaseFlags): Promise; /** * Resolves an app ID from a name or ID */ protected resolveAppIdFromNameOrId(appNameOrId: string, flags?: BaseFlags): Promise; /** * Resolve an account alias or ID to the account alias. * Matches by alias first (exact), then by accountId (exact). * Returns the alias string needed by configManager methods. */ protected resolveAccountAlias(aliasOrId: string, flags: BaseFlags): string; /** * Extract the appId from a key identifier. * * Accepts two formats — both embed the appId: * 1. Key name — "." (contains ".", no ":") * 2. Full key value — ".:" (contains ":" and ".") */ protected resolveAppIdForKey(keyNameOrValue: string, flags: BaseFlags): string; /** * Prompts the user to select an app */ protected promptForApp(flags?: BaseFlags): Promise; /** * Run the Control API command with standard error handling. * Returns the result directly — never returns null. */ protected runControlCommand(flags: BaseFlags, apiCall: (api: ControlApi) => Promise, errorPrefix?: string): Promise; }