/** * Shared helper: prompt user for an API key when they select a model without one. */ import type { TUI } from '@mariozechner/pi-tui'; import type { AuthStorage } from '../auth/storage.js'; import type { ModelItem } from './components/model-selector.js'; /** * If the selected model doesn't have an API key, show a dialog to enter one. * Returns the model ID on success or when cancelled (same behavior — cancelling * just means no key was stored, but the model is still selected). * * Resolves after the user submits or cancels the dialog. */ export declare function promptForApiKeyIfNeeded(ui: TUI, model: ModelItem, authStorage: AuthStorage | undefined): Promise; //# sourceMappingURL=prompt-api-key.d.ts.map