import { AppCredentials } from './find-app-info.js'; import { DeveloperPlatformClient } from '../../utilities/developer-platform-client.js'; /** * Collects a secret/api-key pair using a fallback mechanism: * - Use secret if passed as flag * - If manual: prompt and use. Return only secret * - If automatic: * - Get from .env * - Get from Partners (possible prompts for organization and app) * - prompt and use * * @param developerPlatformClient - The client to access the platform API * @param secret - secret flag * @returns a pair with client-secret, api-key (possibly empty) */ export declare function collectCredentials(developerPlatformClient: DeveloperPlatformClient, secret: string | undefined): Promise; /** * Collects api-key using a fallback mechanism: * - Get from .env * - Get from Partners (possible prompts for organization and app) * * @param developerPlatformClient - The client to access the platform API * @returns a api-key * @throws AbortError if none found */ export declare function collectApiKey(developerPlatformClient: DeveloperPlatformClient): Promise; /** * Returns passed apiVersion or prompts for an existing one * * @param developerPlatformClient - The client to access the platform API * @param apiVersion - VALID or undefined api-version * @returns api-version */ export declare function collectApiVersion(developerPlatformClient: DeveloperPlatformClient, apiVersion: string | undefined): Promise; /** * Returns passed topic if valid or prompts for an existing one * * @param developerPlatformClient - The client to access the platform API * @param apiVersion - VALID api-version * @param topic - topic or undefined * @returns topic */ export declare function collectTopic(developerPlatformClient: DeveloperPlatformClient, apiVersion: string, topic: string | undefined): Promise; /** * Expects either undefined deliveryMethod - address pairs, undefined address or a valid pair * * @param deliveryMethod - Valid delivery method * @param address - Valid address * @returns [deliveryMethod, address] */ export declare function collectAddressAndMethod(deliveryMethod: string | undefined, address: string | undefined): Promise<[string, string]>;