import { type Component, type Focusable, type KeybindingsManager, type SelectItem } from '@earendil-works/pi-tui'; import type { TuiModelChoice } from './tui-backend.js'; import type { PickerServices } from './tui-picker-services.js'; import type { TuiState } from './tui-types.js'; export declare function formatModelPickerHint(keybindings: KeybindingsManager): string; export declare function modelPickerSelectItems(models: TuiModelChoice[], state: Pick): SelectItem[]; export declare class ModelPickerSelectList implements Component, Focusable { private readonly keybindings?; private scope; private readonly list; private readonly allItems; private readonly scopedItems; onSelect?: (item: SelectItem) => void; onCancel?: () => void; constructor(models: TuiModelChoice[], state: Pick, scopedRefs: string[], initialQuery?: string, keybindings?: KeybindingsManager); get focused(): boolean; set focused(value: boolean); private itemsForScope; private toggleScope; getSelectedItem(): SelectItem | null; invalidate(): void; render(width: number): string[]; handleInput(keyData: string): void; } /** Ctrl+L or `/model` — pick model and apply it to the current session. */ export declare function openModelPickerOverlay(svc: PickerServices, initialSearch?: string): Promise;