import type { SessionDescriptor, SessionPicker } from "./contract.js"; import type { PiUi } from "./ui.js"; /** The keys the picker understands (FR-9). */ export type PickerKey = "up" | "down" | "enter" | "escape"; /** Where the picker takes its keys from. Resolving with null ends the picker. */ export interface KeySource { next(): Promise; } export interface KeyPickerDeps { keys: KeySource; ui: PiUi; } /** One row of the picker: agent, home, time, title and turn count (FR-11). */ export declare function formatRow(row: SessionDescriptor): string; /** A picker driven by keys: arrow keys move, Enter selects, Escape cancels (FR-9). */ export declare function createKeyPicker(deps: KeyPickerDeps): SessionPicker;