• Present a single-select dialog (with a preselected defaultKey) and resolve to the chosen key, or null if dismissed. Side-effect-free.

    Parameters

    • title: string

      The dialog window title.

    • label: string

      The select field label.

    • choices: Record<string, string>

      The { key: label } options.

    • defaultKey: string

      The pre-selected option key.

    Returns Promise<string | null>

    The chosen key, or null if the dialog was dismissed.