export type BatchFailMatch = "any" | "all"; export interface BatchFailRule { readonly ifFailed: readonly string[]; readonly cancel: readonly string[]; readonly match: BatchFailMatch; } export type BatchFailMode = { readonly kind: "continue"; } | { readonly kind: "cancel_pending"; } | { readonly kind: "rules"; readonly rules: readonly BatchFailRule[]; }; export interface BatchCallFailMeta { readonly id: string; readonly name: string; readonly index1: number; readonly cancelOnFail: readonly string[]; } export declare function parseBatchFailPolicy(args: Record, knownIds: ReadonlySet): BatchFailMode; export declare function compileBatchFailMode(topLevel: BatchFailMode, calls: readonly BatchCallFailMeta[], knownIds: ReadonlySet): BatchFailMode; export declare function evaluateCancelTargets(mode: BatchFailMode, failedIds: ReadonlySet, allIds: readonly string[]): Set; export declare function formatBatchCancelReason(triggerIds: readonly string[], metaById: ReadonlyMap): string; export declare function parseCancelOnFailField(entry: Record, callLabel: string): string[]; export declare function resolveBatchCallId(entry: Record, index0: number, seen: Set): string;