import { Injector, ResourceRef, Signal } from '@angular/core'; export interface ComboboxOption { label: string; description?: string; value: TValue; data?: TData; } export interface ListConfig { onMemory: ComboboxOption[]; resourceRef: ResourceRef; async: AsyncComboboxOptions; } export type AsyncComboboxOptions = ( filter: Signal, selectedValues: Signal, injector: Injector, ) => ResourceRef[]>; export type ComboboxOptions = | ComboboxOption[] | ResourceRef[]> | AsyncComboboxOptions;