import type { Platform } from './types'; interface AppSummary { id: number; name: string; platform: Platform; } export interface AppTargetOptions { appId?: string; config?: string; platform?: Platform | ''; } /** The selected-app config file was missing or has no entry for the platform. */ export declare class AppNotSelectedError extends Error { readonly code = "APP_NOT_SELECTED"; constructor(platform: Platform); } /** Resolve an explicit platform or prompt for one interactively. */ export declare function getPlatform(platform?: string): Promise; /** Validate that a string names a platform supported by the update service. */ export declare function assertPlatform(platform: string): Platform; /** Read the selected app for a platform from the requested config file. */ export declare function getSelectedApp(platform: Platform, configPath?: string): Promise<{ appId: string; appKey: string; platform: Platform; }>; /** * Resolve the app an operation targets: an explicit `--appId` wins, otherwise * the app selected for the platform in `--config` (default: update.json). * Prompts for the platform only when it is needed and not given. */ export declare function resolveAppId(options?: AppTargetOptions): Promise; /** List apps, optionally filtering them to one platform. */ export declare function listApp(platform?: Platform | ''): Promise; /** Prompt until the user chooses an app belonging to the target platform. */ export declare function chooseApp(platform: Platform): Promise; /** Persist an app selection in the requested brand-aware config file. */ declare function selectApp({ args, options, }: { args: string[]; options: { platform?: Platform | ''; config?: string; }; }): Promise; /** Build the application-management command handlers used by the CLI. */ export declare function getAppCommands(): { /** Create an app and select it in the same configuration file. */ createApp: ({ options, }: { options: { name: string; downloadUrl: string; platform?: Platform | ''; config?: string; }; }) => Promise; /** Delete the specified app, or prompt for one when no ID is supplied. */ deleteApp: ({ args, options, }: { args: string[]; options: { platform: Platform; }; }) => Promise; /** List apps through the command interface. */ apps: ({ options }: { options: { platform?: Platform | ''; }; }) => Promise; selectApp: typeof selectApp; }; export {};