import type { Request } from "express"; import type { HmacVerificationRequest, HmacVerifier } from "../../../core"; import { LevrAuth, MultiAuthOptions } from "../../../core"; import type { AuthResult } from "../../types/auth.types"; export type { HmacVerifier } from "../../../core"; type HmacAuthOptions = Omit; /** * Shared HMAC authentication logic for both user and service API keys */ export declare function authenticateHmacRequest(req: Request, options: HmacAuthOptions, authType: HmacVerificationRequest["authType"], verify: HmacVerifier): Promise; /** * Handles HMAC authentication (user API keys) */ export declare function handleHmacAuth(req: Request, options: MultiAuthOptions): Promise; /** * Handles SERVICE_HMAC authentication (service-to-service API keys) */ export declare function handleServiceHmacAuth(req: Request, options: MultiAuthOptions): Promise; export declare function createHmacAuth(options: HmacAuthOptions, authType: typeof LevrAuth.HMAC | typeof LevrAuth.SERVICE_HMAC, verify: HmacVerifier): (req: Request, res: import("express").Response, next: import("express").NextFunction) => Promise; export declare function createServiceHmacAuth(options: HmacAuthOptions, verify: HmacVerifier): (req: Request, res: import("express").Response, next: import("express").NextFunction) => Promise;