import type { ElnoraConfig } from "../types.js"; import type { TokenStore } from "./token-store.js"; /** * Validate an API key against the Elnora platform. * * Uses a short-lived cache (TTL {@link CACHE_TTL_SECONDS}s) keyed by an * HMAC of the raw key so repeated validations within the window skip the * platform round-trip. The raw key is never persisted. Only successful * validations are cached; failures always re-hit the platform so a user * who regenerates a revoked key isn't stuck with a stale 'no' answer. * * Cache errors (read or write) are logged but never block the request — * the function falls through to the direct validation path, matching * pre-cache behavior. */ export declare function validateApiKey(token: string, config: ElnoraConfig, store: Pick): Promise<{ userId: string; } | null>; //# sourceMappingURL=validate-api-key.d.ts.map