import { ModelId } from '../core/types'; import { OpOrigin, OpShape, PersistedOpBatch } from '../command/op'; export interface BuildAgentBatchOptions { /** clientOpId(멱등 키) 발급기 — 주입 시 테스트 결정성. 기본 newId(crypto.randomUUID). */ mkClientOpId?: () => string; /** op 출처 — 기본 'agent'(감사·aggregation 트리거 분기). REST 브리지면 'rest'. */ origin?: OpOrigin; } /** * 에이전트/REST 경로의 stateless 배치 조립. * * @param diagramId 대상 diagram id(호스트 라우트가 bizModule→DBRef로 해소하므로 doc id). * @param revs base rev 스냅샷(`fromPersisted(doc).meta.revSeed.revs`). 컨테이너 modelId→rev. * @param ops resolver 산출 OpShape 배치(한 원자 단위). */ export declare function buildAgentBatch(diagramId: string, revs: Record, ops: OpShape[], options?: BuildAgentBatchOptions): PersistedOpBatch;