import type { UmbApi } from '../../../../libs/extension-api/index.js'; import type { Observable } from '../../../../external/rxjs/index.js'; export interface UmbValueSummaryResolveResult { /** * The initially resolved values, in the same order as the input. */ data: ReadonlyArray; /** * Optional reactive stream that re-emits when the underlying data changes. * When provided, the coordinator subscribes and updates resolved values on each emission. */ asObservable?: () => Observable>; } /** * Batch resolver for transforming raw values to display values. * * Results must be returned in the same positional order as the input `values` array. * Implement `asObservable` on the result to opt in to reactive updates. */ export interface UmbValueSummaryResolver extends UmbApi { resolveValues(values: ReadonlyArray): Promise>; }