import type { Theme } from "@earendil-works/pi-coding-agent"; import type { LayeredRoleRecord } from "../subagents/roles-types.js"; export type SubagentsListState = { cursor: number; scrollOffset: number; query: string; }; export type SubagentsListEntry = { kind: "create"; } | { kind: "section"; label: "Builtin" | "Custom"; } | { kind: "spacer"; } | { kind: "role"; roleKey: string; role: LayeredRoleRecord; }; export type SubagentsListAction = { type: "create"; } | { type: "open-detail"; roleKey: string; } | { type: "close"; }; export declare function buildRoleKey(role: Pick): string; export declare function buildListEntries(roles: LayeredRoleRecord[]): SubagentsListEntry[]; export declare function handleListInput(state: SubagentsListState, entries: SubagentsListEntry[], data: string): SubagentsListAction | undefined; export declare function renderList(state: SubagentsListState, entries: SubagentsListEntry[], width: number, theme: Theme, warnings?: string[]): string[]; //# sourceMappingURL=subagents-list.d.ts.map