import { EntryHash } from "@holochain/client"; import { ConfigDimension } from "./dimension"; import { RangeValue } from "./range"; import { ConfigResourceDef } from "./resourceDef"; interface CoreCulturalContext { name: string; } export type CulturalContext = CoreCulturalContext & { resource_def_eh: EntryHash; order_by: Array<[EntryHash, OrderingKind]>; thresholds: Array; }; export type ConfigCulturalContext = CoreCulturalContext & { resource_def: ConfigResourceDef; order_by: Array<[ConfigDimension, OrderingKind]>; thresholds: Array; }; export interface ContextResult { context_eh: EntryHash; dimension_ehs: Array; result: Array<[EntryHash, Array]>; } export interface ComputeContextInput { resource_ehs: Array; context_eh: EntryHash; can_publish_result: boolean; } interface CoreThreshold { kind: ThresholdKind; value: RangeValue; } export type Threshold = CoreThreshold & { dimension_eh: EntryHash; }; export type ConfigThreshold = CoreThreshold & { dimension: ConfigDimension; }; export type OrderingKind = OrderingKindBiggest | OrderingKindSmallest; export interface OrderingKindBiggest { Biggest: null; } export interface OrderingKindSmallest { Smallest: null; } export type ThresholdKind = ThresholdKindGreaterThan | ThresholdKindLessThan | ThresholdKindEqual; export interface ThresholdKindGreaterThan { GreaterThan: null; } export interface ThresholdKindLessThan { LessThan: null; } export interface ThresholdKindEqual { Equal: null; } export {}; //# sourceMappingURL=culturalContext.d.ts.map