/**
 * Request authentication utilities
 * Signs HTTP requests and MCP messages with Ed25519
 */
import type { Ed25519KeyPair } from "./types.js";
/**
 * Sign HTTP request body for authentication
 * Returns signature that can be included in Authorization header or request body
 */
export declare function signRequest(body: Uint8Array | string, keyPair: Ed25519KeyPair): {
    signature: string;
    bearerToken: string;
};
/**
 * Verify request signature
 */
export declare function verifyRequest(body: Uint8Array | string, signature: string, bearerToken: string): boolean;
/**
 * Create Authorization header value with signature
 * Format: Bearer <token> Signature <signature>
 */
export declare function createAuthHeader(body: Uint8Array | string, keyPair: Ed25519KeyPair): string;
/**
 * Parse Authorization header
 */
export declare function parseAuthHeader(header: string): {
    bearerToken: string;
    signature?: string;
};
//# sourceMappingURL=auth.d.ts.map