/** * Region selection utility for CLI commands * * Provides interactive region selection using @clack/prompts */ /** * Result of region selection */ export interface RegionSelectionResult { /** Whether selection was successful (not cancelled) */ success: boolean; /** Selected API host URL */ apiHost?: string; /** Selected region name (for display) */ regionName?: string; /** Whether user cancelled */ cancelled?: boolean; } /** * Prompt user to select a Tinybird region * * Fetches available regions from the API and presents an interactive selection. * Falls back to hardcoded regions if the API call fails. * * @param defaultApiHost - Optional API host to pre-select in the prompt * @returns Selected region info or cancellation result */ export declare function selectRegion(defaultApiHost?: string): Promise; /** * Get API host from config file or prompt for region selection * * @param configPath - Path to config file (or null if no config) * @returns API host URL and source, or null if cancelled */ export declare function getApiHostWithRegionSelection(configPath: string | null): Promise<{ apiHost: string; fromConfig: boolean; } | null>; //# sourceMappingURL=region-selector.d.ts.map