/** * API key input dialog component. * Shown when a user selects a model that doesn't have an API key configured. * Allows entering a key or cancelling to proceed without one. */ import { Box } from '@mariozechner/pi-tui'; import type { Focusable } from '@mariozechner/pi-tui'; export interface ApiKeyDialogOptions { /** Provider name shown in the title (e.g., "Google") */ providerName: string; /** Environment variable name hint (e.g., "GOOGLE_GENERATIVE_AI_API_KEY") */ apiKeyEnvVar?: string; /** Called with the entered key when the user submits */ onSubmit: (key: string) => void; /** Called when the user cancels */ onCancel: () => void; } export declare class ApiKeyDialogComponent extends Box implements Focusable { private input; private onSubmit; private onCancel; private _focused; get focused(): boolean; set focused(value: boolean); constructor(options: ApiKeyDialogOptions); handleInput(data: string): void; } //# sourceMappingURL=api-key-dialog.d.ts.map