/**
 * @file SSRI ↔ hex digest conversion helpers — `hexToSsri` wraps a hex digest
 *   in `<algorithm>-<base64>` form, `ssriToHex` decodes the base64 half back to
 *   hex.
 */
/**
 * Convert hex format hash to SSRI format.
 *
 * Takes a hash in hex format and converts it to SSRI format with the specified
 * algorithm prefix (defaults to sha256).
 *
 * @example
 *   ;```typescript
 *   const ssri = hexToSsri(
 *     '76682a9fc3bbe62975176e2541f39a8168877d828d5cad8b56461fc36ac2b856',
 *   )
 *   // Returns: 'sha256-dmgqn8O75il1F24lQfOagWiHfYKNXK2LVkYfw2rCuFY='
 *   ```
 *
 * @param hex - Hash in hex format.
 * @param algorithm - Hash algorithm (default: 'sha256')
 *
 * @returns SSRI format hash (algorithm-base64)
 *
 * @throws Error if hex format is invalid
 */
export declare function hexToSsri(hex: string, algorithm?: string): string;
/**
 * Convert SSRI format hash to hex format.
 *
 * Takes a hash in SSRI format (e.g., "sha256-base64hash") and converts it to
 * standard hex format (e.g., "hexstring").
 *
 * @example
 *   ;```typescript
 *   const hex = ssriToHex(
 *     'sha256-dmgqn8O75il1F24lQfOagWiHfYKNXK2LVkYfw2rCuFY=',
 *   )
 *   // Returns: '76682a9fc3bbe62975176e2541f39a8168877d828d5cad8b56461fc36ac2b856'
 *   ```
 *
 * @param ssri - Hash in SSRI format (algorithm-base64)
 *
 * @returns Hex string representation of the hash
 *
 * @throws Error if SSRI format is invalid
 */
export declare function ssriToHex(ssri: string): string;
