/**
 * Cryptographic utilities for Vorion
 *
 * Provides Ed25519 signing for proof records and other cryptographic operations.
 *
 * @packageDocumentation
 */
import { webcrypto } from 'node:crypto';
type CryptoKey = webcrypto.CryptoKey;
/**
 * Key pair for Ed25519 signing
 */
export interface KeyPair {
    publicKey: CryptoKey;
    privateKey: CryptoKey;
}
/**
 * Exported key pair (for storage)
 */
export interface ExportedKeyPair {
    publicKey: string;
    privateKey: string;
}
/**
 * Signature result
 */
export interface SignatureResult {
    signature: string;
    publicKey: string;
    algorithm: 'Ed25519' | 'ECDSA-P256';
    signedAt: string;
}
/**
 * Verification result
 */
export interface VerifyResult {
    valid: boolean;
    verifiedAt: string;
    error?: string;
}
/**
 * Generate a new Ed25519 key pair
 */
export declare function generateKeyPair(): Promise<KeyPair>;
/**
 * Export a key pair to base64 strings
 */
export declare function exportKeyPair(keyPair: KeyPair): Promise<ExportedKeyPair>;
/**
 * Import a key pair from base64 strings
 */
export declare function importKeyPair(exported: ExportedKeyPair): Promise<KeyPair>;
/**
 * Get or create the signing key pair
 */
export declare function getSigningKeyPair(): Promise<KeyPair>;
/**
 * Sign data with Ed25519/ECDSA
 */
export declare function sign(data: string): Promise<SignatureResult>;
/**
 * Verify a signature
 */
export declare function verify(data: string, signature: string, publicKey: string): Promise<VerifyResult>;
/**
 * Calculate SHA-256 hash
 */
export declare function sha256(data: string): Promise<string>;
export {};
//# sourceMappingURL=crypto.d.ts.map