export type JsonCommitmentScheme = 'plain-sha256' | 'salted-sha256'; export interface JsonCommitment { hash: string; salt?: string; } export interface SaltedJsonCommitment extends JsonCommitment { salt: string; } export type JsonCommitmentFor = Scheme extends 'salted-sha256' ? SaltedJsonCommitment : JsonCommitment; export type RandomBytes = (length: number) => Uint8Array; /** * Commit to a JSON value using the §8.3 JCS posture shared by middleware * and direct SDK action capture. */ export declare function createJsonCommitment(value: unknown, scheme: Scheme, randomBytes?: RandomBytes): JsonCommitmentFor; /** Hash a verbatim tool or action name using the §8.2 hashed-name posture. */ export declare function createToolNameCommitment(name: string): string; /** Replay a plain or salted §8.3 JSON commitment against supplied material. */ export declare function verifyJsonCommitment(value: unknown, commitment: { hash: string; salt?: string; }): boolean; //# sourceMappingURL=commitment.d.ts.map