/** * Auth-mode selector component used between the provider selector and the login dialog * when an OAuth provider advertises more than one `authModes` entry. Lets the user pick * (for example) "Browser (local callback)" vs "Device code (headless)" without setting * an env var. */ import { Box } from '@mariozechner/pi-tui'; import type { TUI } from '@mariozechner/pi-tui'; import type { AuthMode } from '../../auth/types.js'; export declare class LoginModeSelectorComponent extends Box { private listContainer; private modes; private selectedIndex; private onSelectCallback; private onCancelCallback; constructor(providerName: string, modes: ReadonlyArray, onSelect: (modeId: string) => void, onCancel: () => void); private updateList; handleInput(keyData: string): void; } /** * Prompt the user to pick an auth mode if the provider advertises more than one. * Returns the chosen mode id, `undefined` when the provider has 0/1 modes (no prompt), * or `null` when the user cancelled. */ export declare function promptAuthMode(tui: TUI, providerName: string, modes: ReadonlyArray | undefined): Promise; //# sourceMappingURL=login-mode-selector.d.ts.map