import type { ContextPartition, ContextPlan } from '../context-plan.js'; import type { DecisionBatchReceipt, BatchReceiptStatus } from './types.js'; export interface NewBatchReceiptInput { tenantId: string; projectId: string; batchId: string; invocationId: string; runId: string; contextPlan: ContextPlan; partition: ContextPartition; nativeBatchGroupId?: string | null; subjectHash: `sha256:${string}`; executionEnvelope: string; nowEpochMs: number; /** Optional W3C traceparent of the creating workflow span. */ traceParent?: string; } /** Integration hook for D04 native groups and D06 deterministic context partitions. */ export declare function newBatchReceipt(input: NewBatchReceiptInput): DecisionBatchReceipt; export declare function nextBatchReceipt(previous: DecisionBatchReceipt, update: { status: BatchReceiptStatus; updatedAtEpochMs: number; attempts?: DecisionBatchReceipt['attempts']; answerReferences?: DecisionBatchReceipt['answerReferences']; allocations?: DecisionBatchReceipt['allocations']; }): DecisionBatchReceipt; /** Batch receipts are portable artifacts: reject embedded keys, bearer values, private locators, and secret hashes. */ export declare function assertBatchReceiptPortable(receipt: DecisionBatchReceipt): void; /** Reference embedded by future DecisionResult writers; intentionally has no usage/cost fields. */ export interface BatchResultReference { schemaVersion: 'decision-batch-result-ref/v1'; batchId: string; receiptRevision: number; questionId: string; answerId: string; } export declare function batchResultReference(receipt: DecisionBatchReceipt, questionId: string): BatchResultReference; //# sourceMappingURL=receipt.d.ts.map