/**
 * Key generation and storage utilities
 * Supports both browser (WebCrypto) and Node.js (@noble/curves)
 */
import type { X25519KeyPair, Ed25519KeyPair } from "./types.js";
/**
 * Generate X25519 keypair for encryption
 */
export declare function generateX25519KeyPair(): Promise<X25519KeyPair>;
/**
 * Generate Ed25519 keypair for signing/authentication
 */
export declare function generateEd25519KeyPair(): Promise<Ed25519KeyPair>;
/**
 * Derive bearer token from Ed25519 public key (base64url encoded)
 */
export declare function deriveBearerToken(publicKey: Uint8Array): string;
/**
 * Generate Ed25519 keypair synchronously (for tests and sync callers).
 * Returns public key and base64url-encoded public key suitable as bearer token.
 */
export declare function generateKeyPair(): {
    publicKey: Uint8Array;
    publicKeyBase64url: string;
};
/**
 * Parse bearer token back to public key
 */
export declare function parseBearerToken(token: string): Uint8Array;
//# sourceMappingURL=keys.d.ts.map