/** * Envelope construction: wrap existing protocol receipts (DeltaReceipt, MasterReceipt) into * NetworkReceipts per SPEC/uvrn-receipt-v1.md §3.1. Wrapping never mutates the payload — the * base receipt stays independently verifiable forever. */ import type { DeltaReceipt, MasterReceipt } from '@uvrn/core'; import type { ClaimRef, NetworkReceipt, NetworkReceiptLink, SdkInfo, Topic } from '../types'; /** * claimIdFromText derives a stable, collision-safe claim id from claim text: * slug + 8-char sha256 suffix (the @uvrn/mcp convention). */ export declare function claimIdFromText(text: string): string; /** Common envelope options shared by the wrap helpers. */ export interface WrapOptions { /** Claim text, or a full ClaimRef when the caller already holds a stable id. */ claim: string | ClaimRef; source: string; action: string; /** Defaults to the payload's own timestamp where one exists. */ occurredAt?: string; topic?: string | Topic; tags?: string[]; narrative?: string; links?: NetworkReceiptLink[]; chainId?: string; sdk?: SdkInfo; } /** * wrapDeltaReceipt wraps a v3 DeltaReceipt byte-for-byte (including its own hash) into a * `kind: 'delta'` NetworkReceipt. */ export declare function wrapDeltaReceipt(delta: DeltaReceipt, options: WrapOptions): NetworkReceipt; /** * wrapMasterReceipt wraps a MasterReceipt into a `kind: 'master'` NetworkReceipt. * `narrative` is required for masters (SPEC §3); when omitted it is generated from the * vocabulary template so even the raw stored narrative is human-first. */ export declare function wrapMasterReceipt(master: MasterReceipt, options: WrapOptions): NetworkReceipt; //# sourceMappingURL=index.d.ts.map