File size: 632 Bytes
bc575bc | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | import { type Context, defineService } from "@earendil-works/chord";
export interface PresentationSelectItem {
readonly value: string;
readonly label: string;
readonly description?: string;
}
/** Narrow process-local UI capabilities available to presentation facets. */
export interface PresentationUI {
select(
title: string,
items: readonly PresentationSelectItem[],
selectedValue: string | undefined,
context: Context,
): Promise<string | undefined>;
showStatus(message: string, context: Context): void;
}
export const PresentationUI = defineService<PresentationUI>("pi.local.presentation-ui", { local: true });
|