import { AccumulateConfig } from '../../types/hmsh_escalations'; export declare const ACCUMULATE_RESERVED_METADATA_KEYS: ReadonlySet; export declare const ACCUMULATE_RESERVED_ENVELOPE_KEYS: ReadonlySet; /** The stored form of an `accumulate` declaration (`envelope.accumulate_config`). */ export interface StoredAccumulateConfig { unique: boolean; resolveAtMax: boolean; } /** * Validates an item key for the accumulate ops: a non-empty string within * the shared item-key length limit. Throws synchronously so a bad key never * reaches a statement. */ export declare function assertAccumulateItemKey(itemKey: unknown): asserts itemKey is string; /** * Folds an `accumulate` declaration into the escalation's storage shape: * queryable facets in `metadata` (`accumulate_count: 0`, `accumulate_max`, * `accumulate_keys: []`) and the item store plus stored options in * `envelope` (`accumulate_items: {}`, `accumulate_config`). Pure and * deterministic, so it is safe on the replayed `condition()` path. Throws * synchronously on an invalid declaration so a bad accumulator never * reaches a durable write. */ export declare function foldAccumulateConfig; envelope?: Record; }>(config: T): Omit;