import type { SelectOption } from './field-config.js'; import type { MaybePromise } from './field-value.js'; /** Cancellation context supplied to remote SearchSelect requests. */ export interface SearchSelectLoadContext { readonly signal: AbortSignal; } /** Loads one bounded remote option result for a search query. */ export type SearchSelectOptionLoader = (query: string, context: Readonly) => MaybePromise[]>; /** Resolves the display option for an existing remote value. */ export type SearchSelectOptionResolver = (value: TValue, context: Readonly) => MaybePromise | undefined>;