/** * HTTP Message Signature verification. * * Runtime-neutral verification using SignatureVerifier function type. * WebCrypto is used internally but NOT exposed in public API. */ import { SignatureVerifier, SignatureRequest, VerifyOptions, VerificationResult, ParsedSignatureParams } from './types.js'; /** * Verify an HTTP Message Signature. * * @param request - Request data with headers * @param options - Verification options including key resolver * @returns Verification result */ export declare function verifySignature(request: SignatureRequest, options: VerifyOptions): Promise; /** * Check if signature is expired. * * @param params - Parsed signature parameters * @param now - Current Unix timestamp (defaults to current time) * @returns true if signature is expired */ export declare function isExpired(params: ParsedSignatureParams, now?: number): boolean; /** * Check if signature was created in the future (accounting for clock skew). * * @param params - Parsed signature parameters * @param now - Current Unix timestamp (defaults to current time) * @param skewSeconds - Allowed clock skew in seconds (defaults to 60) * @returns true if signature is from the future */ export declare function isCreatedInFuture(params: ParsedSignatureParams, now?: number, skewSeconds?: number): boolean; /** * Check if Ed25519 WebCrypto is supported in current runtime. * * @returns true if Ed25519 WebCrypto is available */ export declare function isEd25519WebCryptoSupported(): Promise; /** * Create a SignatureVerifier from a WebCrypto CryptoKey. * * This is a helper for consumers who have CryptoKey objects. * The function is runtime-neutral as it accepts unknown and casts internally. * * @param key - WebCrypto CryptoKey (passed as unknown for runtime neutrality) * @returns SignatureVerifier function */ export declare function createWebCryptoVerifier(key: unknown): SignatureVerifier; //# sourceMappingURL=verify.d.ts.map