import type { PsbtDocument, PsbtMapLocation } from "./document.js"; export interface PsbtEntrySummary { readonly location: PsbtMapLocation; readonly keyType: number; readonly completeKeySha256: string; readonly keyBytes: number; readonly valueSha256: string; readonly valueBytes: number; } export interface PsbtChangedEntry { readonly location: PsbtMapLocation; readonly keyType: number; readonly completeKeySha256: string; readonly keyBytes: number; readonly before: { readonly valueSha256: string; readonly valueBytes: number; }; readonly after: { readonly valueSha256: string; readonly valueBytes: number; }; } export interface PsbtSemanticDiff { readonly exactBytesEqual: boolean; readonly added: readonly PsbtEntrySummary[]; readonly removed: readonly PsbtEntrySummary[]; readonly changed: readonly PsbtChangedEntry[]; } export interface TransactionIdentityField { readonly name: string; readonly location: PsbtMapLocation; readonly keyType: number; readonly valueSha256: string; readonly valueBytes: number; } export interface TransactionIdentity { readonly psbtVersion: number; readonly sha256: string; readonly fields: readonly TransactionIdentityField[]; } export declare function diffPsbtDocuments(before: PsbtDocument, after: PsbtDocument): PsbtSemanticDiff; export declare function extractTransactionIdentity(document: PsbtDocument): TransactionIdentity; //# sourceMappingURL=diff.d.ts.map