import type { TUI } from '@earendil-works/pi-tui'; import type { Picker, PickerControls } from './pickers.js'; /** `/login` — show the provider selector, then run pi's native login flow in * the viewer. On success, notifies the broker to reload auth via reload_auth. * * Two-stage: composing the ModelRuntime and reading each provider's auth status * is async (pi 0.82), while the picker itself must be built synchronously from * the controls the overlay host hands out. So this resolves the runtime first and * returns the sync picker factory. */ export declare function buildLoginPicker(tui: TUI, agentDir: string, onAuthReloaded: () => void, notify: (msg: string) => void): Promise<(controls: PickerControls) => Picker>; /** `/logout` — show the provider selector in logout mode. On select, deletes the * provider's credential directly, then notifies the broker to reload. */ export declare function buildLogoutPicker(agentDir: string, onAuthReloaded: () => void, notify: (msg: string) => void): Promise<(controls: PickerControls) => Picker>;