import type { SubAgentToolCall } from '../../services/dispatch/sub-agent-dispatcher.js'; import type { SliceDag } from '../../services/dispatch/slice-dag.js'; import type { SliceComplexity } from '../../services/dispatch/slice-dag-types.js'; /** Everything the `--from-dag` success envelope reports, already resolved. */ export type DagEnvelopeInput = { readonly role: string; readonly ide: string; readonly fromDag: string; readonly batchId: string; readonly levelsTotal: number; readonly emittedSliceIds: readonly string[]; readonly emittedToolCalls: readonly SubAgentToolCall[]; readonly firstLevelWaves: unknown; readonly existingContractCount: number; readonly dag: SliceDag; readonly isSliceComplexity: (value: string) => value is SliceComplexity; }; /** The `ok('sub-agent.dispatch', …)` envelope for a completed `--from-dag` run. */ export declare function buildDagSuccessEnvelope(input: DagEnvelopeInput): import("peaks-loop-shared/result").ResultEnvelope<{ envelopeVersion: string; role: string; ide: string; fromDag: string; batchId: string; dispatchCount: number; levelsTotal: number; firstLevel: readonly string[]; firstLevelWaves: unknown; toolCalls: readonly SubAgentToolCall[]; existingContractCount: number; expectedCompletionSeconds: number; artifactsPublicPaths: never[]; orchestratorVisibleHint: string; sliceMeta: { id: string; foundation: boolean; upstreamSync: boolean; complexity: SliceComplexity | null; }[]; nextActions: string[]; }>;