import type { Key } from 'ink'; import type { ManagerDisplayGoal } from './savedEvents.js'; import type { PendingQuestion } from './inquiryAnswer.js'; type GoalOperation = 'pause' | 'resume' | 'abort'; export type ManagerSelectionCommand = 'answer' | 'goal'; export declare const MANAGER_SELECTION_PAGE_SIZE = 10; export type ManagerSelection = { start: number; } & ({ kind: 'answer'; candidates: readonly PendingQuestion[]; index: number; } | { kind: 'goal'; candidates: readonly ManagerDisplayGoal[]; index: number; } | { kind: 'action'; target: ManagerDisplayGoal; candidates: readonly GoalOperation[]; index: number; }); export type ManagerSelectedTarget = { kind: 'answer'; target: PendingQuestion; onCancel: () => void; } | { kind: GoalOperation; target: ManagerDisplayGoal; }; export declare function isGoalSelectionCandidate(kind: GoalOperation, goal: ManagerDisplayGoal): boolean; export declare function useManagerSelection(): { selection: ManagerSelection | null; open: (kind: ManagerSelectionCommand, snapshot: { questions: readonly PendingQuestion[]; goals: readonly ManagerDisplayGoal[]; }) => boolean; refresh: (snapshot: Parameters<(kind: ManagerSelectionCommand, snapshot: { questions: readonly PendingQuestion[]; goals: readonly ManagerDisplayGoal[]; }) => boolean>[1]) => void; handleInput: (key: Key, onSelect: (target: ManagerSelectedTarget) => void) => void; }; export {}; //# sourceMappingURL=useManagerSelection.d.ts.map