import type { RpcResponse } from './types'; export interface BatchItem { target: string; args: unknown[]; } export interface BatchItemOutcome { target: string; result?: unknown; error?: string; code?: number; } export interface BatchOutcome { success: boolean; completed: number; total: number; results: BatchItemOutcome[]; } export declare function is_record(value: unknown): value is Record; export declare function payload_reports_failure(payload: unknown): boolean; export declare function parse_batch_spec(raw: string): BatchItem[]; /** * Runs items sequentially, stopping at the first failure: later items * usually depend on earlier ones, so continuing past a failed create * would compound the damage. Each item goes through its own invoke so * retry classification and reload tolerance apply per item. */ export declare function run_batch(items: BatchItem[], invoke: (item: BatchItem) => Promise): Promise; //# sourceMappingURL=batch.d.ts.map