import type { ActiveView } from "../../view/stateful-view.js"; import type { ScreenKind, VoiceState } from "../state.js"; export interface BindingContext { readonly activeView: ActiveView; } export interface PerScreenBindingContext extends BindingContext { readonly kind: ScreenKind; } export type GlobalSelector

= (state: VoiceState, ctx: BindingContext) => P; export type PerScreenSelector

= (state: VoiceState, ctx: PerScreenBindingContext) => P;